zhfeng commented on a change in pull request #2272:
URL: https://github.com/apache/camel-quarkus/pull/2272#discussion_r580219255



##########
File path: integration-tests/jta/pom.xml
##########
@@ -108,6 +142,7 @@
             </activation>
             <properties>
                 <quarkus.package.type>native</quarkus.package.type>
+                
<quarkus.native.additional-build-args>--report-unsupported-elements-at-runtime</quarkus.native.additional-build-args>

Review comment:
       No, it will throw some fatal analyist erros when building the images if 
removing this option. And I have no idea how to resolve them.
   ```
   [INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Running 
Quarkus native-image plugin on GraalVM Version 20.3.0 (Java Version 
11.0.9+10-jvmci-20.3-b06)
   [INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] 
/home/zhfeng/Applications/graalvm-ce-java11-20.3.0/bin/native-image 
-J-DCoordinatorEnvironmentBean.transactionStatusManagerEnable=false 
-J-Djava.util.logging.manager=org.jboss.logmanager.LogManager 
-J-Dsun.nio.ch.maxUpdateArraySize=100 
-J-Dvertx.logger-delegate-factory-class-name=io.quarkus.vertx.core.runtime.VertxLogDelegateFactory
 -J-Dvertx.disableDnsResolver=true -J-Dio.netty.leakDetection.level=DISABLED 
-J-Dio.netty.allocator.maxOrder=1 -J-Duser.language=zh -J-Duser.country=CN 
-J-Dfile.encoding=UTF-8 --initialize-at-build-time= 
-H:InitialCollectionPolicy=com.oracle.svm.core.genscavenge.CollectionPolicy\$BySpaceAndTime
 -H:+JNI -H:+AllowFoldMethods -jar 
camel-quarkus-integration-test-jta-1.7.0-SNAPSHOT-runner.jar 
-H:FallbackThreshold=0 -H:+ReportExceptionStackTraces -H:-AddAllCharsets 
-H:EnableURLProtocols=http,https --enable-all-security-services 
-H:NativeLinkerOption=-no-pie --no-server -H:-UseServiceLoaderFeature -
 H:+StackTrace camel-quarkus-integration-test-jta-1.7.0-SNAPSHOT-runner
   [camel-quarkus-integration-test-jta-1.7.0-SNAPSHOT-runner:360709]    
classlist:   4,077.03 ms,  1.19 GB
   [camel-quarkus-integration-test-jta-1.7.0-SNAPSHOT-runner:360709]        
(cap):     663.98 ms,  1.19 GB
   [camel-quarkus-integration-test-jta-1.7.0-SNAPSHOT-runner:360709]        
setup:   2,253.91 ms,  1.19 GB
   20:35:56,403 INFO  [org.jbo.threads] JBoss Threads version 3.2.0.Final
   [camel-quarkus-integration-test-jta-1.7.0-SNAPSHOT-runner:360709]     
(clinit):   1,205.38 ms,  4.75 GB
   [camel-quarkus-integration-test-jta-1.7.0-SNAPSHOT-runner:360709]   
(typeflow):  22,947.58 ms,  4.75 GB
   [camel-quarkus-integration-test-jta-1.7.0-SNAPSHOT-runner:360709]    
(objects):  28,066.73 ms,  4.75 GB
   [camel-quarkus-integration-test-jta-1.7.0-SNAPSHOT-runner:360709]   
(features):   1,213.41 ms,  4.75 GB
   [camel-quarkus-integration-test-jta-1.7.0-SNAPSHOT-runner:360709]     
analysis:  56,323.29 ms,  4.75 GB
   Error: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported 
type jdk.internal.reflect.MethodAccessorGenerator is reachable
   To diagnose the issue, you can add the option 
--report-unsupported-elements-at-runtime. The unsupported element is then 
reported at run time when it is accessed the first time.
   Detailed message:
   Trace: 
        at parsing 
jdk.internal.reflect.ReflectionFactory.generateConstructor(ReflectionFactory.java:513)
   Call path from entry point to 
jdk.internal.reflect.ReflectionFactory.generateConstructor(Class, Constructor): 
        at 
jdk.internal.reflect.ReflectionFactory.generateConstructor(ReflectionFactory.java:513)
        at 
jdk.internal.reflect.ReflectionFactory.newConstructorForSerialization(ReflectionFactory.java:506)
        at 
java.io.ObjectStreamClass.getSerializableConstructor(ObjectStreamClass.java:1531)
        at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:509)
        at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:484)
        at 
com.oracle.svm.core.jdk.Target_java_security_AccessController.doPrivileged(SecuritySubstitutions.java:84)
        at sun.security.pkcs11.SunPKCS11.initToken(SunPKCS11.java:1028)
        at sun.security.pkcs11.SunPKCS11$TokenPoller.run(SunPKCS11.java:852)
        at java.lang.Thread.run(Thread.java:834)
        at 
com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:519)
        at 
com.oracle.svm.core.posix.thread.PosixJavaThreads.pthreadStartRoutine(PosixJavaThreads.java:192)
        at 
com.oracle.svm.core.code.IsolateEnterStub.PosixJavaThreads_pthreadStartRoutine_e1f4a8c0039f8337338252cd8734f63a79b5e3df(generated:0)
   
   com.oracle.svm.core.util.UserError$UserException: 
com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported type 
jdk.internal.reflect.MethodAccessorGenerator is reachable
   To diagnose the issue, you can add the option 
--report-unsupported-elements-at-runtime. The unsupported element is then 
reported at run time when it is accessed the first time.
   Detailed message:
   Trace: 
        at parsing 
jdk.internal.reflect.ReflectionFactory.generateConstructor(ReflectionFactory.java:513)
   Call path from entry point to 
jdk.internal.reflect.ReflectionFactory.generateConstructor(Class, Constructor): 
        at 
jdk.internal.reflect.ReflectionFactory.generateConstructor(ReflectionFactory.java:513)
        at 
jdk.internal.reflect.ReflectionFactory.newConstructorForSerialization(ReflectionFactory.java:506)
        at 
java.io.ObjectStreamClass.getSerializableConstructor(ObjectStreamClass.java:1531)
        at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:509)
        at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:484)
        at 
com.oracle.svm.core.jdk.Target_java_security_AccessController.doPrivileged(SecuritySubstitutions.java:84)
        at sun.security.pkcs11.SunPKCS11.initToken(SunPKCS11.java:1028)
        at sun.security.pkcs11.SunPKCS11$TokenPoller.run(SunPKCS11.java:852)
        at java.lang.Thread.run(Thread.java:834)
        at 
com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:519)
        at 
com.oracle.svm.core.posix.thread.PosixJavaThreads.pthreadStartRoutine(PosixJavaThreads.java:192)
        at 
com.oracle.svm.core.code.IsolateEnterStub.PosixJavaThreads_pthreadStartRoutine_e1f4a8c0039f8337338252cd8734f63a79b5e3df(generated:0)
   
        at com.oracle.svm.core.util.UserError.abort(UserError.java:82)
        at 
com.oracle.svm.hosted.FallbackFeature.reportAsFallback(FallbackFeature.java:217)
        at 
com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:768)
        at 
com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:558)
        at 
com.oracle.svm.hosted.NativeImageGenerator.lambda$run$0(NativeImageGenerator.java:471)
        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.svm.hosted.substitute.DeletedElementException: Unsupported type 
jdk.internal.reflect.MethodAccessorGenerator is reachable
   To diagnose the issue, you can add the option 
--report-unsupported-elements-at-runtime. The unsupported element is then 
reported at run time when it is accessed the first time.
   Detailed message:
   Trace: 
        at parsing 
jdk.internal.reflect.ReflectionFactory.generateConstructor(ReflectionFactory.java:513)
   Call path from entry point to 
jdk.internal.reflect.ReflectionFactory.generateConstructor(Class, Constructor): 
        at 
jdk.internal.reflect.ReflectionFactory.generateConstructor(ReflectionFactory.java:513)
        at 
jdk.internal.reflect.ReflectionFactory.newConstructorForSerialization(ReflectionFactory.java:506)
        at 
java.io.ObjectStreamClass.getSerializableConstructor(ObjectStreamClass.java:1531)
        at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:509)
        at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:484)
        at 
com.oracle.svm.core.jdk.Target_java_security_AccessController.doPrivileged(SecuritySubstitutions.java:84)
        at sun.security.pkcs11.SunPKCS11.initToken(SunPKCS11.java:1028)
        at sun.security.pkcs11.SunPKCS11$TokenPoller.run(SunPKCS11.java:852)
        at java.lang.Thread.run(Thread.java:834)
        at 
com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:519)
        at 
com.oracle.svm.core.posix.thread.PosixJavaThreads.pthreadStartRoutine(PosixJavaThreads.java:192)
        at 
com.oracle.svm.core.code.IsolateEnterStub.PosixJavaThreads_pthreadStartRoutine_e1f4a8c0039f8337338252cd8734f63a79b5e3df(generated:0)
   
        at 
com.oracle.graal.pointsto.constraints.UnsupportedFeatures.report(UnsupportedFeatures.java:126)
        at 
com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:765)
        ... 8 more
   Caused by: com.oracle.svm.hosted.substitute.DeletedElementException: 
Unsupported type jdk.internal.reflect.MethodAccessorGenerator is reachable
   To diagnose the issue, you can add the option 
--report-unsupported-elements-at-runtime. The unsupported element is then 
reported at run time when it is accessed the first time.
        at 
com.oracle.svm.hosted.substitute.AnnotationSubstitutionProcessor.lookup(AnnotationSubstitutionProcessor.java:119)
        at 
com.oracle.graal.pointsto.infrastructure.SubstitutionProcessor$ChainedSubstitutionProcessor.lookup(SubstitutionProcessor.java:113)
        at 
com.oracle.graal.pointsto.infrastructure.SubstitutionProcessor$ChainedSubstitutionProcessor.lookup(SubstitutionProcessor.java:113)
        at 
com.oracle.graal.pointsto.meta.AnalysisUniverse.lookupAllowUnresolved(AnalysisUniverse.java:207)
        at 
com.oracle.graal.pointsto.infrastructure.WrappedConstantPool.lookupType(WrappedConstantPool.java:164)
        at 
jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.lookupType(BytecodeParser.java:4250)
        at 
jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.genNewInstance(BytecodeParser.java:4565)
        at 
jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.processBytecode(BytecodeParser.java:5363)
        at 
jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.iterateBytecodesForBlock(BytecodeParser.java:3399)
        at 
jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.processBlock(BytecodeParser.java:3206)
        at 
jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.build(BytecodeParser.java:1092)
        at 
jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.buildRootMethod(BytecodeParser.java:986)
        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:70)
        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.MethodTypeFlowBuilder.parse(MethodTypeFlowBuilder.java:223)
        at 
com.oracle.graal.pointsto.flow.MethodTypeFlowBuilder.apply(MethodTypeFlowBuilder.java:357)
        at 
com.oracle.graal.pointsto.flow.MethodTypeFlow.doParse(MethodTypeFlow.java:313)
        at 
com.oracle.graal.pointsto.flow.MethodTypeFlow.ensureParsed(MethodTypeFlow.java:302)
        at 
com.oracle.graal.pointsto.flow.MethodTypeFlow.addContext(MethodTypeFlow.java:103)
        at 
com.oracle.graal.pointsto.DefaultAnalysisPolicy$DefaultSpecialInvokeTypeFlow.onObservedUpdate(DefaultAnalysisPolicy.java:368)
        at 
com.oracle.graal.pointsto.flow.TypeFlow.notifyObservers(TypeFlow.java:470)
        at com.oracle.graal.pointsto.flow.TypeFlow.update(TypeFlow.java:542)
        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)
        ... 5 more
   Error: Image build request failed with exit status 1
   ```
   
   Maybe we can check it again if 
https://github.com/quarkusio/quarkus/issues/14871 get resolved in artemis 
extension ?




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

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


Reply via email to