jamesnetherton opened a new issue, #7933:
URL: https://github.com/apache/camel-quarkus/issues/7933
### Bug description
```
java.lang.ClassNotFoundException: java.security.DEREncodable
at
java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
at
org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageClassLoader.loadClass(NativeImageClassLoader.java:637)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
at
org.apache.camel.quarkus.component.xmlsecurity.it.XmlsecurityProducers_ProducerMethod_getKeyPair_Yj18a29_eqfh0ymPOh54eWpMKBk_Bean.<init>(Unknown
Source)
at io.quarkus.arc.setup.Default_ComponentsProvider.addBeans1(Unknown
Source)
at
io.quarkus.arc.setup.Default_ComponentsProvider.getComponents(Unknown Source)
at
io.quarkus.arc.impl.ArcContainerImpl.<init>(ArcContainerImpl.java:136)
at io.quarkus.arc.Arc.initialize(Arc.java:39)
at io.quarkus.arc.runtime.ArcRecorder.initContainer(ArcRecorder.java:53)
at
io.quarkus.runner.recorded.ArcProcessor$initializeContainer643029769.deploy_0(Unknown
Source)
at
io.quarkus.runner.recorded.ArcProcessor$initializeContainer643029769.deploy(Unknown
Source)
at io.quarkus.runner.ApplicationImpl.<clinit>(Unknown Source)
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)
(internal stack frames of the image generator are omitted)
```
Possibly due to compilation being done with JDK25, some bytecode is recorded
for `XmlsecurityProducers.getKeyPair` resulting in links to
`java.security.DEREncodable`. But the default native build container image uses
JDK 21.
https://docs.oracle.com/en/java/javase/25/docs/api//java.base/java/security/DEREncodable.html
--
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]