jamesnetherton opened a new issue, #7418:
URL: https://github.com/apache/camel-quarkus/issues/7418

   Something that i noticed once on CI for the Observability example project 
native build:
   
   ```
   java.util.NoSuchElementException: SRCFG00027: Could not find a mapping for 
org.apache.camel.quarkus.jolokia.config.JolokiaBuildTimeConfig
        at 
io.smallrye.config.SmallRyeConfig.getConfigMapping(SmallRyeConfig.java:645)
        at 
io.smallrye.config.SmallRyeConfig.getConfigMapping(SmallRyeConfig.java:635)
        at 
org.apache.camel.quarkus.jolokia.restrictor.CamelJolokiaRestrictor.<clinit>(CamelJolokiaRestrictor.java:31)
        at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized0(Native 
Method)
        at 
java.base/jdk.internal.misc.Unsafe.ensureClassInitialized(Unsafe.java:1160)
        at 
org.graalvm.nativeimage.builder/com.oracle.svm.hosted.classinitialization.ClassInitializationSupport.ensureClassInitialized(ClassInitializationSupport.java:177)
   ```
   
   I cannot reproduce the issue. But maybe the `ALLOWED_DOMAINS` in 
`CamelJolokiaRestrictor` should not be static to avoid issues at native image 
build time. It probably does not need to be static given that 
`CamelJolokiaRestrictor` is only ever going to get instantiated once via the 
Jolokia internals.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to