You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/11/23 14:49:38 UTC

[GitHub] [camel-quarkus] ffang opened a new issue #3323: [JDK17]main-xml-jaxb integration test failed in native mode on Mac

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


   Errors like
   ```
   Error: Class initialization of sun.lwawt.macosx.CInputMethod failed. Use the option --initialize-at-run-time=sun.lwawt.macosx.CInputMethod to explicitly request delayed initialization of this class.
   Detailed message:
   
   com.oracle.svm.core.util.UserError$UserException: Class initialization of sun.lwawt.macosx.CInputMethod failed. Use the option --initialize-at-run-time=sun.lwawt.macosx.CInputMethod to explicitly request delayed initialization of this class.
   Detailed message:
   
   	at com.oracle.svm.core.util.UserError.abort(UserError.java:87)
   	at com.oracle.svm.hosted.FallbackFeature.reportAsFallback(FallbackFeature.java:233)
   	at com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:759)
   	at com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:529)
   	at com.oracle.svm.hosted.NativeImageGenerator.run(NativeImageGenerator.java:488)
   	at com.oracle.svm.hosted.NativeImageGeneratorRunner.buildImage(NativeImageGeneratorRunner.java:403)
   	at com.oracle.svm.hosted.NativeImageGeneratorRunner.build(NativeImageGeneratorRunner.java:569)
   	at com.oracle.svm.hosted.NativeImageGeneratorRunner.main(NativeImageGeneratorRunner.java:122)
   	at com.oracle.svm.hosted.NativeImageGeneratorRunner$JDK9Plus.main(NativeImageGeneratorRunner.java:599)
   Caused by: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: Class initialization of sun.lwawt.macosx.CInputMethod failed. Use the option --initialize-at-run-time=sun.lwawt.macosx.CInputMethod to explicitly request delayed initialization of this class.
   Detailed message:
   
   	at com.oracle.graal.pointsto.constraints.UnsupportedFeatures.report(UnsupportedFeatures.java:126)
   	at com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:756)
   	... 6 more
   Caused by: java.lang.UnsatisfiedLinkError: 'void sun.lwawt.macosx.CInputMethod.nativeInit()'
   	at java.desktop/sun.lwawt.macosx.CInputMethod.nativeInit(Native Method)
   	at java.desktop/sun.lwawt.macosx.CInputMethod.<clinit>(CInputMethod.java:87)
   	at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized0(Native Method)
   	at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized(Unsafe.java:1155)
   	at jdk.unsupported/sun.misc.Unsafe.ensureClassInitialized(Unsafe.java:743)
   	at jdk.internal.vm.compiler/org.graalvm.compiler.serviceprovider.GraalUnsafeAccess.ensureClassInitialized(GraalUnsafeAccess.java:77)
   	at com.oracle.svm.hosted.classinitialization.ConfigurableClassInitialization.ensureClassInitialized(ConfigurableClassInitialization.java:178)
   	at com.oracle.svm.hosted.classinitialization.ConfigurableClassInitialization.computeInitKindAndMaybeInitializeClass(ConfigurableClassInitialization.java:648)
   	at com.oracle.svm.hosted.classinitialization.ConfigurableClassInitialization.computeInitKindAndMaybeInitializeClass(ConfigurableClassInitialization.java:131)
   	at com.oracle.svm.hosted.classinitialization.ConfigurableClassInitialization.shouldInitializeAtRuntime(ConfigurableClassInitialization.java:159)
   	at com.oracle.svm.hosted.SVMHost.isInitialized(SVMHost.java:308)
   	at com.oracle.graal.pointsto.meta.AnalysisType.isInitialized(AnalysisType.java:723)
   	at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.maybeEagerlyInitialize(BytecodeParser.java:4435)
   	at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.genInvokeStatic(BytecodeParser.java:1659)
   	at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.genInvokeStatic(BytecodeParser.java:1652)
   	at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.processBytecode(BytecodeParser.java:5419)
   	at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.iterateBytecodesForBlock(BytecodeParser.java:3477)
   	at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.handleBytecodeBlock(BytecodeParser.java:3437)
   	at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.processBlock(BytecodeParser.java:3282)
   	at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.build(BytecodeParser.java:1145)
   	at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.buildRootMethod(BytecodeParser.java:1030)
   	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:132)
   	at com.oracle.graal.pointsto.meta.AnalysisMethod.ensureGraphParsed(AnalysisMethod.java:621)
   	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:490)
   	at com.oracle.graal.pointsto.flow.TypeFlow.update(TypeFlow.java:559)
   	at com.oracle.graal.pointsto.PointsToAnalysis$2.run(PointsToAnalysis.java:595)
   	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:1395)
   	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
   	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
   	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
   	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
   	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)
   [camel-quarkus-integration-test-main-xml-jaxb-2.5.0-SNAPSHOT-runner:81165]      [total]:  48,794.51 ms,  5.96 GB
   # Printing build artifacts to: /Users/ffang/projects/camel-quarkus-new/integration-tests/main-xml-jaxb/target/camel-quarkus-integration-test-main-xml-jaxb-2.5.0-SNAPSHOT-native-image-source-jar/camel-quarkus-integration-test-main-xml-jaxb-2.5.0-SNAPSHOT-runner.build_artifacts.txt
   Error: Image build request failed with exit status 1
   ```
   
   This only happens with JDK17: GraalVM 21.3.0 Java 17 CE (Java Version 17.0.1+12-jvmci-21.3-b05), on JDK11 it's good.
   
   And from the error message I believe it's mac osx specific


-- 
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-unsubscribe@camel.apache.org

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



[GitHub] [camel-quarkus] ffang edited a comment on issue #3323: [JDK17]integration test failed in native mode on Mac which depends on quarkus-awt feature

Posted by GitBox <gi...@apache.org>.
ffang edited a comment on issue #3323:
URL: https://github.com/apache/camel-quarkus/issues/3323#issuecomment-976823947


   affected tests
   
   - azure-grouped
   - main-xml-jaxb
   - dozer
   - hazelcast
   - infinispan
   - jaxb
   - pdf


-- 
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-unsubscribe@camel.apache.org

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



[GitHub] [camel-quarkus] ffang commented on issue #3323: [JDK17]main-xml-jaxb integration test failed in native mode on Mac

Posted by GitBox <gi...@apache.org>.
ffang commented on issue #3323:
URL: https://github.com/apache/camel-quarkus/issues/3323#issuecomment-976663297


   The same issue reported on quarkus side very recently
   https://github.com/quarkusio/quarkus-quickstarts/issues/989


-- 
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-unsubscribe@camel.apache.org

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



[GitHub] [camel-quarkus] ffang commented on issue #3323: [JDK17]integration test failed in native mode on Mac which depends on quarkus-awt feature

Posted by GitBox <gi...@apache.org>.
ffang commented on issue #3323:
URL: https://github.com/apache/camel-quarkus/issues/3323#issuecomment-976823947


   affected tests
   azure-grouped
   main-xml-jaxb


-- 
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-unsubscribe@camel.apache.org

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



[GitHub] [camel-quarkus] ffang edited a comment on issue #3323: [JDK17]integration test failed in native mode on Mac which depends on quarkus-awt feature

Posted by GitBox <gi...@apache.org>.
ffang edited a comment on issue #3323:
URL: https://github.com/apache/camel-quarkus/issues/3323#issuecomment-976823947


   affected tests
   azure-grouped
   main-xml-jaxb
   dozer
   hazelcast
   infinispan
   jaxb


-- 
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-unsubscribe@camel.apache.org

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



[GitHub] [camel-quarkus] ffang edited a comment on issue #3323: [JDK17]integration test failed in native mode on Mac which depends on quarkus-awt feature

Posted by GitBox <gi...@apache.org>.
ffang edited a comment on issue #3323:
URL: https://github.com/apache/camel-quarkus/issues/3323#issuecomment-976823947


   affected tests
   azure-grouped
   main-xml-jaxb
   dozer


-- 
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-unsubscribe@camel.apache.org

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



[GitHub] [camel-quarkus] ffang edited a comment on issue #3323: [JDK17]integration test failed in native mode on Mac which depends on quarkus-awt feature

Posted by GitBox <gi...@apache.org>.
ffang edited a comment on issue #3323:
URL: https://github.com/apache/camel-quarkus/issues/3323#issuecomment-976823947


   affected tests
   
   - azure-grouped
   - main-xml-jaxb
   - dozer
   - hazelcast
   - infinispan
   - jaxb
   - pdf
   - rest
   - salesforce
   - soap


-- 
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-unsubscribe@camel.apache.org

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



[GitHub] [camel-quarkus] ffang edited a comment on issue #3323: [JDK17]integration test failed in native mode on Mac which depends on quarkus-awt feature

Posted by GitBox <gi...@apache.org>.
ffang edited a comment on issue #3323:
URL: https://github.com/apache/camel-quarkus/issues/3323#issuecomment-976823947


   affected tests
   
   - azure-grouped
   - main-xml-jaxb
   - dozer
   - hazelcast
   - infinispan
   - jaxb
   - pdf
   - rest
   - salesforce
   - soap
   - stax
   - tika


-- 
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-unsubscribe@camel.apache.org

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



[GitHub] [camel-quarkus] ffang edited a comment on issue #3323: [JDK17]integration test failed in native mode on Mac which depends on quarkus-awt feature

Posted by GitBox <gi...@apache.org>.
ffang edited a comment on issue #3323:
URL: https://github.com/apache/camel-quarkus/issues/3323#issuecomment-976823947


   affected tests
   
   - azure-grouped
   - main-xml-jaxb
   - dozer
   - hazelcast
   - infinispan
   - jaxb
   - pdf
   - rest
   - salesforce
   - soap
   - stax
   - tika
   - xstream
   - azure-eventhubs
   - azure-storage-blob
   - azure-storage-queue


-- 
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-unsubscribe@camel.apache.org

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



[GitHub] [camel-quarkus] ffang edited a comment on issue #3323: [JDK17]integration test failed in native mode on Mac which depends on quarkus-awt feature

Posted by GitBox <gi...@apache.org>.
ffang edited a comment on issue #3323:
URL: https://github.com/apache/camel-quarkus/issues/3323#issuecomment-976823947


   affected tests
   
   - azure-grouped
   - main-xml-jaxb
   - dozer
   - hazelcast
   - infinispan
   - jaxb
   - pdf
   - rest
   - salesforce
   - soap
   - stax
   - tika
   - xstream


-- 
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-unsubscribe@camel.apache.org

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



[GitHub] [camel-quarkus] ffang edited a comment on issue #3323: [JDK17]integration test failed in native mode on Mac which depends on quarkus-awt feature

Posted by GitBox <gi...@apache.org>.
ffang edited a comment on issue #3323:
URL: https://github.com/apache/camel-quarkus/issues/3323#issuecomment-976823947


   affected tests
   azure-grouped
   main-xml-jaxb
   dozer
   hazelcast


-- 
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-unsubscribe@camel.apache.org

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



[GitHub] [camel-quarkus] ffang edited a comment on issue #3323: [JDK17]integration test failed in native mode on Mac which depends on quarkus-awt feature

Posted by GitBox <gi...@apache.org>.
ffang edited a comment on issue #3323:
URL: https://github.com/apache/camel-quarkus/issues/3323#issuecomment-976823947


   affected tests
   azure-grouped
   main-xml-jaxb
   dozer
   hazelcast
   infinispan


-- 
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-unsubscribe@camel.apache.org

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



[GitHub] [camel-quarkus] ffang edited a comment on issue #3323: [JDK17]integration test failed in native mode on Mac which depends on quarkus-awt feature

Posted by GitBox <gi...@apache.org>.
ffang edited a comment on issue #3323:
URL: https://github.com/apache/camel-quarkus/issues/3323#issuecomment-976823947


   affected tests
   
   - azure-grouped
   - main-xml-jaxb
   - dozer
   - hazelcast
   - infinispan
   - jaxb
   - pdf
   - rest
   - salesforce
   - soap
   - stax
   - tika
   - xstream
   - azure-eventhubs


-- 
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-unsubscribe@camel.apache.org

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



[GitHub] [camel-quarkus] ffang edited a comment on issue #3323: [JDK17]integration test failed in native mode on Mac which depends on quarkus-awt feature

Posted by GitBox <gi...@apache.org>.
ffang edited a comment on issue #3323:
URL: https://github.com/apache/camel-quarkus/issues/3323#issuecomment-976823947


   affected tests
   
   - azure-grouped
   - main-xml-jaxb
   - dozer
   - hazelcast
   - infinispan
   - jaxb
   - pdf
   - rest
   - salesforce


-- 
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-unsubscribe@camel.apache.org

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



[GitHub] [camel-quarkus] ffang edited a comment on issue #3323: [JDK17]integration test failed in native mode on Mac which depends on quarkus-awt feature

Posted by GitBox <gi...@apache.org>.
ffang edited a comment on issue #3323:
URL: https://github.com/apache/camel-quarkus/issues/3323#issuecomment-976823947


   affected tests
   
   - azure-grouped
   - main-xml-jaxb
   - dozer
   - hazelcast
   - infinispan
   - jaxb
   - pdf
   - rest


-- 
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-unsubscribe@camel.apache.org

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



[GitHub] [camel-quarkus] ffang edited a comment on issue #3323: [JDK17]integration test failed in native mode on Mac which depends on quarkus-awt feature

Posted by GitBox <gi...@apache.org>.
ffang edited a comment on issue #3323:
URL: https://github.com/apache/camel-quarkus/issues/3323#issuecomment-976823947


   affected tests
   
   - azure-grouped
   - main-xml-jaxb
   - dozer
   - hazelcast
   - infinispan
   - jaxb
   - pdf
   - rest
   - salesforce
   - soap
   - stax


-- 
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-unsubscribe@camel.apache.org

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



[GitHub] [camel-quarkus] ffang commented on issue #3323: [JDK17]main-xml-jaxb integration test failed in native mode on Mac

Posted by GitBox <gi...@apache.org>.
ffang commented on issue #3323:
URL: https://github.com/apache/camel-quarkus/issues/3323#issuecomment-976674166


   I tried to add class sun.lwawt.macosx.CInputMethod as RuntimeInitializedClassBuildItem for camel-xml-jaxb and this can fix it.
   
   But this commit 
   https://github.com/quarkusio/quarkus/pull/21566/commits/918d4c36be669b8c110c24490b73a041436e77d8
   can fix it from quarkus-awt extension, so next time once we upgrade the quarkus version to pick up the fix, this test in camel-quarkus should be also ok.
   
   I will leave this issue open until we pick up the fix from future quarkus version


-- 
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-unsubscribe@camel.apache.org

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