ffang opened a new issue #2906:
URL: https://github.com/apache/camel-quarkus/issues/2906


   get error like 
   ```
   Error: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: 
Detected an instance of Random/SplittableRandom class in the image heap. 
Instances created during image generation have cached seed values and don't 
behave as expected.  To see how this object got instantiated use 
--trace-object-instantiation=java.security.SecureRandom. The object was 
probably created by a class initializer and is reachable from a static field. 
You can request class initialization at image runtime by using the option 
--initialize-at-run-time=<class-name>. Or you can write your own initialization 
methods and call them explicitly from your main entry point.
   Detailed message:
   Trace: 
        at parsing 
org.apache.http.impl.auth.NTLMEngineImpl.access$000(NTLMEngineImpl.java:51)
   Call path from entry point to 
org.apache.http.impl.auth.NTLMEngineImpl.access$000(): 
        at 
org.apache.http.impl.auth.NTLMEngineImpl.access$000(NTLMEngineImpl.java:51)
        at 
org.apache.http.impl.auth.NTLMEngineImpl$Type3Message.<init>(NTLMEngineImpl.java:1505)
        at 
org.apache.http.impl.auth.NTLMEngineImpl$Type3Message.<init>(NTLMEngineImpl.java:1474)
        at 
org.apache.http.impl.auth.NTLMEngineImpl.getType3Message(NTLMEngineImpl.java:181)
        at 
org.apache.http.impl.auth.NTLMEngineImpl.generateType3Msg(NTLMEngineImpl.java:2097)
        at 
org.apache.http.impl.auth.NTLMScheme.authenticate(NTLMScheme.java:142)
        at 
org.apache.http.impl.auth.AuthSchemeBase.authenticate(AuthSchemeBase.java:136)
        at 
org.apache.http.impl.auth.HttpAuthenticator.doAuth(HttpAuthenticator.java:233)
        at 
org.apache.http.impl.auth.HttpAuthenticator.generateAuthResponse(HttpAuthenticator.java:213)
        at 
org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:262)
        at 
org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
        at 
org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
        at 
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
        at 
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108)
        at 
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
        at 
ca.uhn.fhir.rest.client.apache.ApacheHttpRequest.execute(ApacheHttpRequest.java:64)
        at 
ca.uhn.fhir.rest.client.impl.BaseClient.invokeClient(BaseClient.java:304)
        at 
ca.uhn.fhir.rest.client.impl.GenericClient$BaseClientExecutable.invoke(GenericClient.java:434)
        at 
ca.uhn.fhir.rest.client.impl.GenericClient$MetaInternal.execute(GenericClient.java:953)
        at 
org.apache.camel.component.fhir.api.FhirMeta.delete(FhirMeta.java:112)
        at 
com.oracle.svm.reflect.FhirMeta_delete_563771a81c740c9751f056082d9a668ee1a9b1a9_58.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:216)
        at 
com.oracle.svm.core.jdk.SystemPropertiesSupport.getProperty(SystemPropertiesSupport.java:169)
        at 
com.oracle.svm.core.jdk.Target_java_lang_System.getProperty(JavaLangSubstitutions.java:291)
        at 
com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VARARGS:Ljava_lang_System_2_0002egetProperty_00028Ljava_lang_String_2_00029Ljava_lang_String_2(generated:0)
   
   com.oracle.svm.core.util.UserError$UserException: 
com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: Detected an 
instance of Random/SplittableRandom class in the image heap. Instances created 
during image generation have cached seed values and don't behave as expected.  
To see how this object got instantiated use 
--trace-object-instantiation=java.security.SecureRandom. The object was 
probably created by a class initializer and is reachable from a static field. 
You can request class initialization at image runtime by using the option 
--initialize-at-run-time=<class-name>. Or you can write your own initialization 
methods and call them explicitly from your main entry point.
   Detailed message:
   Trace: 
        at parsing 
org.apache.http.impl.auth.NTLMEngineImpl.access$000(NTLMEngineImpl.java:51)
   Call path from entry point to 
org.apache.http.impl.auth.NTLMEngineImpl.access$000(): 
        at 
org.apache.http.impl.auth.NTLMEngineImpl.access$000(NTLMEngineImpl.java:51)
        at 
org.apache.http.impl.auth.NTLMEngineImpl$Type3Message.<init>(NTLMEngineImpl.java:1505)
        at 
org.apache.http.impl.auth.NTLMEngineImpl$Type3Message.<init>(NTLMEngineImpl.java:1474)
        at 
org.apache.http.impl.auth.NTLMEngineImpl.getType3Message(NTLMEngineImpl.java:181)
        at 
org.apache.http.impl.auth.NTLMEngineImpl.generateType3Msg(NTLMEngineImpl.java:2097)
        at 
org.apache.http.impl.auth.NTLMScheme.authenticate(NTLMScheme.java:142)
        at 
org.apache.http.impl.auth.AuthSchemeBase.authenticate(AuthSchemeBase.java:136)
        at 
org.apache.http.impl.auth.HttpAuthenticator.doAuth(HttpAuthenticator.java:233)
        at 
org.apache.http.impl.auth.HttpAuthenticator.generateAuthResponse(HttpAuthenticator.java:213)
        at 
org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:262)
        at 
org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
        at 
org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
        at 
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
        at 
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108)
        at 
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
        at 
ca.uhn.fhir.rest.client.apache.ApacheHttpRequest.execute(ApacheHttpRequest.java:64)
        at 
ca.uhn.fhir.rest.client.impl.BaseClient.invokeClient(BaseClient.java:304)
        at 
ca.uhn.fhir.rest.client.impl.GenericClient$BaseClientExecutable.invoke(GenericClient.java:434)
        at 
ca.uhn.fhir.rest.client.impl.GenericClient$MetaInternal.execute(GenericClient.java:953)
        at 
org.apache.camel.component.fhir.api.FhirMeta.delete(FhirMeta.java:112)
        at 
com.oracle.svm.reflect.FhirMeta_delete_563771a81c740c9751f056082d9a668ee1a9b1a9_58.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:216)
        at 
com.oracle.svm.core.jdk.SystemPropertiesSupport.getProperty(SystemPropertiesSupport.java:169)
        at 
com.oracle.svm.core.jdk.Target_java_lang_System.getProperty(JavaLangSubstitutions.java:291)
        at 
com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VARARGS:Ljava_lang_System_2_0002egetProperty_00028Ljava_lang_String_2_00029Ljava_lang_String_2(generated:0)
   
        at com.oracle.svm.core.util.UserError.abort(UserError.java:82)
        at 
com.oracle.svm.hosted.FallbackFeature.reportAsFallback(FallbackFeature.java:233)
        at 
com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:798)
        at 
com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:582)
        at 
com.oracle.svm.hosted.NativeImageGenerator.lambda$run$2(NativeImageGenerator.java:495)
        at 
java.base/java.util.concurrent.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1407)
        at 
java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
        at 
java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
        at 
java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
        at 
java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
        at 
java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
   Caused by: 
com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: 
com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: Detected an 
instance of Random/SplittableRandom class in the image heap. Instances created 
during image generation have cached seed values and don't behave as expected.  
To see how this object got instantiated use 
--trace-object-instantiation=java.security.SecureRandom. The object was 
probably created by a class initializer and is reachable from a static field. 
You can request class initialization at image runtime by using the option 
--initialize-at-run-time=<class-name>. Or you can write your own initialization 
methods and call them explicitly from your main entry point.
   Detailed message:
   Trace: 
        at parsing 
org.apache.http.impl.auth.NTLMEngineImpl.access$000(NTLMEngineImpl.java:51)
   Call path from entry point to 
org.apache.http.impl.auth.NTLMEngineImpl.access$000(): 
        at 
org.apache.http.impl.auth.NTLMEngineImpl.access$000(NTLMEngineImpl.java:51)
        at 
org.apache.http.impl.auth.NTLMEngineImpl$Type3Message.<init>(NTLMEngineImpl.java:1505)
        at 
org.apache.http.impl.auth.NTLMEngineImpl$Type3Message.<init>(NTLMEngineImpl.java:1474)
        at 
org.apache.http.impl.auth.NTLMEngineImpl.getType3Message(NTLMEngineImpl.java:181)
        at 
org.apache.http.impl.auth.NTLMEngineImpl.generateType3Msg(NTLMEngineImpl.java:2097)
        at 
org.apache.http.impl.auth.NTLMScheme.authenticate(NTLMScheme.java:142)
        at 
org.apache.http.impl.auth.AuthSchemeBase.authenticate(AuthSchemeBase.java:136)
        at 
org.apache.http.impl.auth.HttpAuthenticator.doAuth(HttpAuthenticator.java:233)
        at 
org.apache.http.impl.auth.HttpAuthenticator.generateAuthResponse(HttpAuthenticator.java:213)
        at 
org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:262)
        at 
org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
        at 
org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
        at 
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
        at 
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108)
        at 
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
        at 
ca.uhn.fhir.rest.client.apache.ApacheHttpRequest.execute(ApacheHttpRequest.java:64)
        at 
ca.uhn.fhir.rest.client.impl.BaseClient.invokeClient(BaseClient.java:304)
        at 
ca.uhn.fhir.rest.client.impl.GenericClient$BaseClientExecutable.invoke(GenericClient.java:434)
        at 
ca.uhn.fhir.rest.client.impl.GenericClient$MetaInternal.execute(GenericClient.java:953)
        at 
org.apache.camel.component.fhir.api.FhirMeta.delete(FhirMeta.java:112)
        at 
com.oracle.svm.reflect.FhirMeta_delete_563771a81c740c9751f056082d9a668ee1a9b1a9_58.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:216)
        at 
com.oracle.svm.core.jdk.SystemPropertiesSupport.getProperty(SystemPropertiesSupport.java:169)
        at 
com.oracle.svm.core.jdk.Target_java_lang_System.getProperty(JavaLangSubstitutions.java:291)
        at 
com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VARARGS:Ljava_lang_System_2_0002egetProperty_00028Ljava_lang_String_2_00029Ljava_lang_String_2(generated:0)
   
        at 
com.oracle.graal.pointsto.constraints.UnsupportedFeatures.report(UnsupportedFeatures.java:126)
        at 
com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:795)
        ... 8 more
   Caused by: 
com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: Detected an 
instance of Random/SplittableRandom class in the image heap. Instances created 
during image generation have cached seed values and don't behave as expected.  
To see how this object got instantiated use 
--trace-object-instantiation=java.security.SecureRandom. The object was 
probably created by a class initializer and is reachable from a static field. 
You can request class initialization at image runtime by using the option 
--initialize-at-run-time=<class-name>. Or you can write your own initialization 
methods and call them explicitly from your main entry point.
        at 
com.oracle.svm.hosted.image.DisallowedImageHeapObjectFeature.error(DisallowedImageHeapObjectFeature.java:163)
        at 
com.oracle.svm.core.image.DisallowedImageHeapObjects.check(DisallowedImageHeapObjects.java:65)
        at 
com.oracle.svm.hosted.image.DisallowedImageHeapObjectFeature.replacer(DisallowedImageHeapObjectFeature.java:139)
        at 
com.oracle.graal.pointsto.meta.AnalysisUniverse.replaceObject(AnalysisUniverse.java:565)
        at 
com.oracle.svm.hosted.ameta.AnalysisConstantReflectionProvider.replaceObject(AnalysisConstantReflectionProvider.java:213)
        at 
com.oracle.svm.hosted.ameta.AnalysisConstantReflectionProvider.interceptValue(AnalysisConstantReflectionProvider.java:184)
        at 
com.oracle.svm.hosted.ameta.AnalysisConstantReflectionProvider.readValue(AnalysisConstantReflectionProvider.java:98)
        at 
com.oracle.svm.hosted.ameta.AnalysisConstantReflectionProvider.readFieldValue(AnalysisConstantReflectionProvider.java:77)
        at 
jdk.internal.vm.compiler/org.graalvm.compiler.nodes.util.ConstantFoldUtil$1.readValue(ConstantFoldUtil.java:51)
        at 
jdk.internal.vm.compiler/org.graalvm.compiler.core.common.spi.JavaConstantFieldProvider.readConstantField(JavaConstantFieldProvider.java:84)
        at 
com.oracle.svm.hosted.ameta.AnalysisConstantFieldProvider.readConstantField(AnalysisConstantFieldProvider.java:70)
        at 
jdk.internal.vm.compiler/org.graalvm.compiler.nodes.util.ConstantFoldUtil.tryConstantFold(ConstantFoldUtil.java:47)
        at 
com.oracle.svm.hosted.phases.ConstantFoldLoadFieldPlugin.tryConstantFold(ConstantFoldLoadFieldPlugin.java:61)
        at 
com.oracle.svm.hosted.phases.ConstantFoldLoadFieldPlugin.handleLoadStaticField(ConstantFoldLoadFieldPlugin.java:57)
        at 
jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.genGetStatic(BytecodeParser.java:4972)
        at 
jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.genGetStatic(BytecodeParser.java:4939)
        at 
jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.processBytecode(BytecodeParser.java:5442)
        at 
jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.iterateBytecodesForBlock(BytecodeParser.java:3451)
        at 
jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.processBlock(BytecodeParser.java:3258)
        at 
jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.build(BytecodeParser.java:1125)
        at 
jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.buildRootMethod(BytecodeParser.java:1019)
        at 
jdk.internal.vm.compiler/org.graalvm.compiler.java.GraphBuilderPhase$Instance.run(GraphBuilderPhase.java:84)
        at 
com.oracle.svm.hosted.phases.SharedGraphBuilderPhase.run(SharedGraphBuilderPhase.java:76)
        at 
jdk.internal.vm.compiler/org.graalvm.compiler.phases.Phase.run(Phase.java:49)
        at 
jdk.internal.vm.compiler/org.graalvm.compiler.phases.BasePhase.apply(BasePhase.java:212)
        at 
jdk.internal.vm.compiler/org.graalvm.compiler.phases.Phase.apply(Phase.java:42)
        at 
jdk.internal.vm.compiler/org.graalvm.compiler.phases.Phase.apply(Phase.java:38)
        at 
com.oracle.graal.pointsto.flow.AnalysisParsedGraph.parseBytecode(AnalysisParsedGraph.java:113)
        at com.oracle.svm.hosted.SVMHost.parseBytecode(SVMHost.java:647)
        at 
com.oracle.graal.pointsto.meta.AnalysisMethod.ensureGraphParsed(AnalysisMethod.java:592)
        at 
com.oracle.graal.pointsto.flow.MethodTypeFlowBuilder.parse(MethodTypeFlowBuilder.java:163)
        at 
com.oracle.graal.pointsto.flow.MethodTypeFlowBuilder.apply(MethodTypeFlowBuilder.java:304)
        at 
com.oracle.graal.pointsto.flow.MethodTypeFlow.createTypeFlow(MethodTypeFlow.java:313)
        at 
com.oracle.graal.pointsto.flow.MethodTypeFlow.ensureTypeFlowCreated(MethodTypeFlow.java:302)
        at 
com.oracle.graal.pointsto.flow.MethodTypeFlow.addContext(MethodTypeFlow.java:103)
        at 
com.oracle.graal.pointsto.flow.StaticInvokeTypeFlow.update(InvokeTypeFlow.java:420)
        at com.oracle.graal.pointsto.BigBang$2.run(BigBang.java:547)
        at 
com.oracle.graal.pointsto.util.CompletionExecutor.lambda$execute$0(CompletionExecutor.java:173)
        at 
java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1426)
   ```


-- 
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