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


   ```
   Error: com.oracle.graal.pointsto.constraints.UnresolvedElementException: 
Discovered unresolved method during parsing: 
org.bouncycastle.asn1.x509.SubjectPublicKeyInfo.getPublicKeyData(). To diagnose 
the issue you can use the --allow-incomplete-classpath option. The missing 
method is then reported at run time when it is accessed the first time.
   Detailed message:
   Trace: 
        at parsing 
org.bouncycastle.openpgp.operator.jcajce.JcePublicKeyKeyEncryptionMethodGenerator.encryptSessionInfo(Unknown
 Source)
   Call path from entry point to 
org.bouncycastle.openpgp.operator.jcajce.JcePublicKeyKeyEncryptionMethodGenerator.encryptSessionInfo(PGPPublicKey,
 byte[]): 
        at 
org.bouncycastle.openpgp.operator.jcajce.JcePublicKeyKeyEncryptionMethodGenerator.encryptSessionInfo(Unknown
 Source)
        at 
org.bouncycastle.openpgp.operator.PublicKeyKeyEncryptionMethodGenerator.generate(Unknown
 Source)
        at org.bouncycastle.openpgp.PGPEncryptedDataGenerator.open(Unknown 
Source)
        at org.bouncycastle.openpgp.PGPEncryptedDataGenerator.open(Unknown 
Source)
        at 
org.apache.camel.converter.crypto.PGPKeyAccessDataFormat.marshal(PGPKeyAccessDataFormat.java:239)
        at 
com.oracle.svm.reflect.PGPKeyAccessDataFormat_marshal_f535eafffea22b513073d7635a1591138d6c4506_654.invoke(Unknown
 Source)
        at java.lang.reflect.Method.invoke(Method.java:566)
        at 
javax.xml.transform.TransformerException.printStackTrace(TransformerException.java:345)
        at 
javax.xml.transform.TransformerException.printStackTrace(TransformerException.java:285)
        at 
com.oracle.svm.jni.functions.JNIFunctions.ExceptionDescribe(JNIFunctions.java:777)
        at 
com.oracle.svm.core.code.IsolateEnterStub.JNIFunctions_ExceptionDescribe_b5412f7570bccae90b000bc37855f00408b2ad73(generated:0)
   
   com.oracle.svm.core.util.UserError$UserException: 
com.oracle.graal.pointsto.constraints.UnresolvedElementException: Discovered 
unresolved method during parsing: 
org.bouncycastle.asn1.x509.SubjectPublicKeyInfo.getPublicKeyData(). To diagnose 
the issue you can use the --allow-incomplete-classpath option. The missing 
method is then reported at run time when it is accessed the first time.
   Detailed message:
   Trace: 
        at parsing 
org.bouncycastle.openpgp.operator.jcajce.JcePublicKeyKeyEncryptionMethodGenerator.encryptSessionInfo(Unknown
 Source)
   Call path from entry point to 
org.bouncycastle.openpgp.operator.jcajce.JcePublicKeyKeyEncryptionMethodGenerator.encryptSessionInfo(PGPPublicKey,
 byte[]): 
        at 
org.bouncycastle.openpgp.operator.jcajce.JcePublicKeyKeyEncryptionMethodGenerator.encryptSessionInfo(Unknown
 Source)
        at 
org.bouncycastle.openpgp.operator.PublicKeyKeyEncryptionMethodGenerator.generate(Unknown
 Source)
        at org.bouncycastle.openpgp.PGPEncryptedDataGenerator.open(Unknown 
Source)
        at org.bouncycastle.openpgp.PGPEncryptedDataGenerator.open(Unknown 
Source)
        at 
org.apache.camel.converter.crypto.PGPKeyAccessDataFormat.marshal(PGPKeyAccessDataFormat.java:239)
        at 
com.oracle.svm.reflect.PGPKeyAccessDataFormat_marshal_f535eafffea22b513073d7635a1591138d6c4506_654.invoke(Unknown
 Source)
        at java.lang.reflect.Method.invoke(Method.java:566)
        at 
javax.xml.transform.TransformerException.printStackTrace(TransformerException.java:345)
        at 
javax.xml.transform.TransformerException.printStackTrace(TransformerException.java:285)
        at 
com.oracle.svm.jni.functions.JNIFunctions.ExceptionDescribe(JNIFunctions.java:777)
        at 
com.oracle.svm.core.code.IsolateEnterStub.JNIFunctions_ExceptionDescribe_b5412f7570bccae90b000bc37855f00408b2ad73(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:764)
        at 
com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:532)
        at 
com.oracle.svm.hosted.NativeImageGenerator.run(NativeImageGenerator.java:491)
        at 
com.oracle.svm.hosted.NativeImageGeneratorRunner.buildImage(NativeImageGeneratorRunner.java:380)
        at 
com.oracle.svm.hosted.NativeImageGeneratorRunner.build(NativeImageGeneratorRunner.java:543)
        at 
com.oracle.svm.hosted.NativeImageGeneratorRunner.main(NativeImageGeneratorRunner.java:119)
        at 
com.oracle.svm.hosted.NativeImageGeneratorRunner$JDK9Plus.main(NativeImageGeneratorRunner.java:573)
   Caused by: 
com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: 
com.oracle.graal.pointsto.constraints.UnresolvedElementException: Discovered 
unresolved method during parsing: 
org.bouncycastle.asn1.x509.SubjectPublicKeyInfo.getPublicKeyData(). To diagnose 
the issue you can use the --allow-incomplete-classpath option. The missing 
method is then reported at run time when it is accessed the first time.
   Detailed message:
   Trace: 
        at parsing 
org.bouncycastle.openpgp.operator.jcajce.JcePublicKeyKeyEncryptionMethodGenerator.encryptSessionInfo(Unknown
 Source)
   Call path from entry point to 
org.bouncycastle.openpgp.operator.jcajce.JcePublicKeyKeyEncryptionMethodGenerator.encryptSessionInfo(PGPPublicKey,
 byte[]): 
        at 
org.bouncycastle.openpgp.operator.jcajce.JcePublicKeyKeyEncryptionMethodGenerator.encryptSessionInfo(Unknown
 Source)
        at 
org.bouncycastle.openpgp.operator.PublicKeyKeyEncryptionMethodGenerator.generate(Unknown
 Source)
        at org.bouncycastle.openpgp.PGPEncryptedDataGenerator.open(Unknown 
Source)
        at org.bouncycastle.openpgp.PGPEncryptedDataGenerator.open(Unknown 
Source)
        at 
org.apache.camel.converter.crypto.PGPKeyAccessDataFormat.marshal(PGPKeyAccessDataFormat.java:239)
        at 
com.oracle.svm.reflect.PGPKeyAccessDataFormat_marshal_f535eafffea22b513073d7635a1591138d6c4506_654.invoke(Unknown
 Source)
        at java.lang.reflect.Method.invoke(Method.java:566)
        at 
javax.xml.transform.TransformerException.printStackTrace(TransformerException.java:345)
        at 
javax.xml.transform.TransformerException.printStackTrace(TransformerException.java:285)
        at 
com.oracle.svm.jni.functions.JNIFunctions.ExceptionDescribe(JNIFunctions.java:777)
        at 
com.oracle.svm.core.code.IsolateEnterStub.JNIFunctions_ExceptionDescribe_b5412f7570bccae90b000bc37855f00408b2ad73(generated:0)
   
        at 
com.oracle.graal.pointsto.constraints.UnsupportedFeatures.report(UnsupportedFeatures.java:126)
        at 
com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:761)
        ... 6 more
   Caused by: com.oracle.graal.pointsto.constraints.UnresolvedElementException: 
Discovered unresolved method during parsing: 
org.bouncycastle.asn1.x509.SubjectPublicKeyInfo.getPublicKeyData(). To diagnose 
the issue you can use the --allow-incomplete-classpath option. The missing 
method is then reported at run time when it is accessed the first time.
        at 
com.oracle.svm.hosted.phases.SharedGraphBuilderPhase$SharedBytecodeParser.reportUnresolvedElement(SharedGraphBuilderPhase.java:311)
        at 
com.oracle.svm.hosted.phases.SharedGraphBuilderPhase$SharedBytecodeParser.handleUnresolvedMethod(SharedGraphBuilderPhase.java:302)
        at 
com.oracle.svm.hosted.phases.SharedGraphBuilderPhase$SharedBytecodeParser.handleUnresolvedInvoke(SharedGraphBuilderPhase.java:256)
        at 
jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.genInvokeVirtual(BytecodeParser.java:1699)
        at 
jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.processBytecode(BytecodeParser.java:5371)
        at 
jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.iterateBytecodesForBlock(BytecodeParser.java:3431)
        at 
jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.handleBytecodeBlock(BytecodeParser.java:3391)
        at 
jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.processBlock(BytecodeParser.java:3236)
        at 
jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.build(BytecodeParser.java:1122)
        at 
jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.buildRootMethod(BytecodeParser.java:1007)
        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:81)
        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:131)
        at com.oracle.svm.hosted.SVMHost.parseBytecode(SVMHost.java:709)
        at 
com.oracle.graal.pointsto.meta.AnalysisMethod.ensureGraphParsed(AnalysisMethod.java:605)
        at 
com.oracle.graal.pointsto.flow.MethodTypeFlowBuilder.parse(MethodTypeFlowBuilder.java:163)
        at 
com.oracle.graal.pointsto.flow.MethodTypeFlowBuilder.apply(MethodTypeFlowBuilder.java:321)
        at 
com.oracle.graal.pointsto.flow.MethodTypeFlow.createTypeFlow(MethodTypeFlow.java:293)
        at 
com.oracle.graal.pointsto.flow.MethodTypeFlow.ensureTypeFlowCreated(MethodTypeFlow.java:282)
        at 
com.oracle.graal.pointsto.flow.MethodTypeFlow.addContext(MethodTypeFlow.java:103)
        at 
com.oracle.graal.pointsto.DefaultAnalysisPolicy$DefaultVirtualInvokeTypeFlow.onObservedUpdate(DefaultAnalysisPolicy.java:222)
        at 
com.oracle.graal.pointsto.flow.TypeFlow.notifyObservers(TypeFlow.java:471)
        at com.oracle.graal.pointsto.flow.TypeFlow.update(TypeFlow.java:540)
        at com.oracle.graal.pointsto.BigBang$2.run(BigBang.java:539)
        at 
com.oracle.graal.pointsto.util.CompletionExecutor.executeCommand(CompletionExecutor.java:188)
        at 
com.oracle.graal.pointsto.util.CompletionExecutor.lambda$executeService$0(CompletionExecutor.java:172)
        at 
java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1426)
        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)
   ```
   This happens on both JDK17 and JDK11. Probably is caused by camel-crypto and 
quarkus now use different bouncycastle version(1.69 VS 1.70)


-- 
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: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to