Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: graal error for private @Property #8542

Merged
merged 1 commit into from Dec 26, 2022
Merged

fix: graal error for private @Property #8542

merged 1 commit into from Dec 26, 2022

Conversation

sdelamo
Copy link
Collaborator

@sdelamo sdelamo commented Dec 26, 2022

Changes to inject @Property(name = "logger.config") via constructor injection.

Graal 22.3 and Micronaut 3.8.0 was throwing:

Caused by: java.lang.NoSuchFieldError: No field 'logbackXmlLocation' found for type: io.micronaut.management.endpoint.loggers.impl.LogbackLoggingSystem
195	at io.micronaut.core.reflect.ReflectionUtils.lambda$getRequiredField$2(ReflectionUtils.java:294)
196	at java.base@17.0.5/java.util.Optional.orElseThrow(Optional.java:403)
197	at io.micronaut.core.reflect.ReflectionUtils.getRequiredField(ReflectionUtils.java:294)
198	at io.micronaut.context.AbstractInitializableBeanDefinition.setFieldWithReflection(AbstractInitializableBeanDefinition.java:979)
199	... 113 common frames omitted

@sdelamo sdelamo added type: bug Something isn't working relates-to: graal labels Dec 26, 2022
@sdelamo sdelamo added this to the 3.8.0 milestone Dec 26, 2022
Changes to inject @Property(name = "logger.config") via constructor injection.

Graal 22.3 and Micronaut 3.8.0 was throwing:

```
Caused by: java.lang.NoSuchFieldError: No field 'logbackXmlLocation' found for type: io.micronaut.management.endpoint.loggers.impl.LogbackLoggingSystem
195	at io.micronaut.core.reflect.ReflectionUtils.lambda$getRequiredField$2(ReflectionUtils.java:294)
196	at java.base@17.0.5/java.util.Optional.orElseThrow(Optional.java:403)
197	at io.micronaut.core.reflect.ReflectionUtils.getRequiredField(ReflectionUtils.java:294)
198	at io.micronaut.context.AbstractInitializableBeanDefinition.setFieldWithReflection(AbstractInitializableBeanDefinition.java:979)
199	... 113 common frames omitted
```
@sonarcloud
Copy link

sonarcloud bot commented Dec 26, 2022

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell C 3 Code Smells

44.4% 44.4% Coverage
10.5% 10.5% Duplication

@sdelamo sdelamo merged commit aa69a3f into 3.8.x Dec 26, 2022
@sdelamo sdelamo deleted the fix-graalerror branch December 26, 2022 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
relates-to: graal type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant