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

[camel 3.10] NATS native image build failure #2589

Closed
jamesnetherton opened this issue May 13, 2021 · 3 comments
Closed

[camel 3.10] NATS native image build failure #2589

jamesnetherton opened this issue May 13, 2021 · 3 comments
Assignees
Milestone

Comments

@jamesnetherton
Copy link
Contributor

Error: No instances of sun.security.provider.NativePRNG are allowed in the image heap as this class should be initialized at image runtime. To see how this object got instantiated use --trace-object-instantiation=sun.security.provider.NativePRNG.
Detailed message:
Trace: Object was reached by 
	reading field java.security.SecureRandom.secureRandomSpi of
		constant java.security.SecureRandom@6b0032ba reached by 
	scanning method io.nats.client.support.SSLUtils.createOpenTLSContext(SSLUtils.java:43)
Call path from entry point to io.nats.client.support.SSLUtils.createOpenTLSContext(): 
	at io.nats.client.support.SSLUtils.createOpenTLSContext(SSLUtils.java:39)
	at io.nats.client.Options$Builder.build(Options.java:1352)
	at org.apache.camel.component.nats.NatsEndpoint.getConnection(NatsEndpoint.java:85)
	at com.oracle.svm.reflect.NatsEndpoint_getConnection_ae93cd8bd1f246593dcfa360791d8ee42ca51ac9_394.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Method.java:566)
	at java.util.ServiceLoader$ProviderImpl.invokeFactoryMethod(ServiceLoader.java:737)
	at java.util.ServiceLoader$ProviderImpl.get(ServiceLoader.java:720)
	at com.oracle.svm.core.jdk.SystemPropertiesSupport.initializeLazyValue(SystemPropertiesSupport.java:211)
	at com.oracle.svm.core.jdk.SystemPropertiesSupport.getProperty(SystemPropertiesSupport.java:164)
	at com.oracle.svm.core.jdk.Target_java_lang_System.getProperty(JavaLangSubstitutions.java:293)
	at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_ARRAY:Ljava_lang_System_2_0002egetProperty_00028Ljava_lang_String_2_00029Ljava_lang_String_2(generated:0)
@jamesnetherton
Copy link
Contributor Author

/CC @aldettinger - please can you take a look into this.

For now, I have disabled the NATS itest native build on CI in test-categories.yaml.

@aldettinger
Copy link
Contributor

Ok, I see it disabled on camel-main, let's have a look.

aldettinger added a commit to aldettinger/camel-quarkus that referenced this issue May 20, 2021
ppalaga pushed a commit to ppalaga/camel-quarkus that referenced this issue May 21, 2021
ppalaga pushed a commit to ppalaga/camel-quarkus that referenced this issue May 21, 2021
ppalaga pushed a commit to ppalaga/camel-quarkus that referenced this issue May 21, 2021
ppalaga pushed a commit to ppalaga/camel-quarkus that referenced this issue May 21, 2021
ppalaga pushed a commit to ppalaga/camel-quarkus that referenced this issue May 24, 2021
ppalaga pushed a commit to ppalaga/camel-quarkus that referenced this issue May 24, 2021
ppalaga pushed a commit to ppalaga/camel-quarkus that referenced this issue May 24, 2021
ppalaga pushed a commit to ppalaga/camel-quarkus that referenced this issue May 24, 2021
ppalaga pushed a commit to ppalaga/camel-quarkus that referenced this issue May 24, 2021
@ppalaga
Copy link
Contributor

ppalaga commented May 25, 2021

Fixed via 01110b5

@ppalaga ppalaga closed this as completed May 25, 2021
@ppalaga ppalaga added this to the 2.0.0-M1 milestone May 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants