zhfeng commented on issue #5006:
URL: https://github.com/apache/camel-quarkus/issues/5006#issuecomment-1612575045

   Yeah, I added 
`<quarkus.native.additional-build-args>-H:+RunReachabilityHandlersConcurrently</quarkus.native.additional-build-args>`
 in `integration-tests/google-bigquery/pom.xml`
   
   The output is like
   ```
   [INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Running 
Quarkus native-image plugin on native-image 17.0.7 2023-04-18
   OpenJDK Runtime Environment Mandrel-23.0.0.0-Final (build 17.0.7+7)
   OpenJDK 64-Bit Server VM Mandrel-23.0.0.0-Final (build 17.0.7+7, mixed mode)
   [INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildRunner] docker run 
--env LANG=C --rm --user 1000:1000 -v 
/home/zhfeng/work/zhfeng/camel-quarkus/integration-tests/google-bigquery/target/camel-quarkus-integration-test-google-bigquery-3.0.0-SNAPSHOT-native-image-source-jar:/project:z
 --name build-native-ueGYN 
quay.io/quarkus/ubi-quarkus-mandrel-builder-image:jdk-17 
-J-Dsun.nio.ch.maxUpdateArraySize=100 
-J-Djava.util.logging.manager=org.jboss.logmanager.LogManager 
-J-Dlogging.initial-configurator.min-level=500 
-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=3 -J-Duser.language=zh -J-Duser.country=CN 
-J-Dfile.encoding=UTF-8 
--features=io.quarkus.runner.Feature,io.quarkus.runtime.graal.DisableLoggingFeature
 -J--add-exports=java.security.jgss/sun.security.krb5=ALL-UNNAMED 
-J--add-opens=java.base/java.text=ALL-UNNAMED -J--ad
 d-opens=java.base/java.io=ALL-UNNAMED 
-J--add-opens=java.base/java.lang.invoke=ALL-UNNAMED 
-J--add-opens=java.base/java.util=ALL-UNNAMED 
-H:BuildOutputJSONFile=camel-quarkus-integration-test-google-bigquery-3.0.0-SNAPSHOT-runner-build-output-stats.json
 -H:+RunReachabilityHandlersConcurrently -H:+AllowFoldMethods 
-J-Djava.awt.headless=true --no-fallback --link-at-build-time 
-H:+ReportExceptionStackTraces -H:-AddAllCharsets --enable-url-protocols=http 
-H:-UseServiceLoaderFeature -H:+StackTrace 
-J--add-exports=org.graalvm.sdk/org.graalvm.nativeimage.impl=ALL-UNNAMED 
--exclude-config io\.netty\.netty-codec 
/META-INF/native-image/io\.netty/netty-codec/generated/handlers/reflect-config\.json
 --exclude-config io\.netty\.netty-handler 
/META-INF/native-image/io\.netty/netty-handler/generated/handlers/reflect-config\.json
 camel-quarkus-integration-test-google-bigquery-3.0.0-SNAPSHOT-runner -jar 
camel-quarkus-integration-test-google-bigquery-3.0.0-SNAPSHOT-runner.jar
   
========================================================================================================================
   GraalVM Native Image: Generating 
'camel-quarkus-integration-test-google-bigquery-3.0.0-SNAPSHOT-runner' 
(executable)...
   
========================================================================================================================
   [1/8] Initializing...                                                        
                            (7.2s @ 0.34GB)
    Java version: 17.0.7+7, vendor version: Mandrel-23.0.0.0-Final
    Graal compiler: optimization level: 2, target machine: x86-64-v3
    C compiler: gcc (redhat, x86_64, 8.5.0)
    Garbage collector: Serial GC (max heap size: 80% of RAM)
    8 user-specific feature(s)
    - com.google.api.gax.grpc.nativeimage.GrpcNettyFeature
    - com.google.api.gax.grpc.nativeimage.ProtobufMessageFeature
    - com.google.api.gax.nativeimage.GoogleJsonClientFeature
    - com.google.api.gax.nativeimage.OpenCensusFeature
    - com.oracle.svm.thirdparty.gson.GsonFeature
    - io.quarkus.runner.Feature: Auto-generated class by Quarkus from the 
existing extensions
    - io.quarkus.runtime.graal.DisableLoggingFeature: Disables INFO logging 
during the analysis phase
    - org.eclipse.angus.activation.nativeimage.AngusActivationFeature
   Warning: RecomputeFieldValue.FieldOffset automatic substitution failed. The 
automatic substitution registration was attempted because a call to 
sun.misc.Unsafe.objectFieldOffset(Field) was detected in the static initializer 
of com.google.protobuf.UnsafeUtil. Detailed failure reason(s): The argument of 
sun.misc.Unsafe.objectFieldOffset(java.lang.reflect.Field) is not a constant 
value or a field load that can be constant-folded., Could not determine the 
field where the value produced by the call to 
sun.misc.Unsafe.objectFieldOffset(Field) for the field offset computation is 
stored. The call is not directly followed by a field store or by a sign extend 
node followed directly by a field store. 
   [2/8] Performing analysis...  []                                             
                           (25.0s @ 3.50GB)
     16,967 (84.92%) of 19,981 types reachable
     25,097 (60.48%) of 41,495 fields reachable
     86,267 (62.59%) of 137,820 methods reachable
      5,448 types, 1,267 fields, and 8,656 methods registered for reflection
   
   
------------------------------------------------------------------------------------------------------------------------
                           2.5s (7.5% of total time) in 28 GCs | Peak RSS: 
5.53GB | CPU load: 12.11
   
------------------------------------------------------------------------------------------------------------------------
   Produced artifacts:
    /project/svm_err_b_20230629T074513.723_pid74.md (build_info)
   
========================================================================================================================
   Failed generating 
'camel-quarkus-integration-test-google-bigquery-3.0.0-SNAPSHOT-runner' after 
32.5s.
   
   The build process encountered an unexpected error:
   
   java.lang.NullPointerException: Cannot invoke "java.util.Set.iterator()" 
because "triggers" is null
        at 
org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ReachabilityHandlerFeature.processReachable(ReachabilityHandlerFeature.java:173)
        at 
org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ReachabilityHandlerFeature.duringAnalysis(ReachabilityHandlerFeature.java:128)
        at 
org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.lambda$runPointsToAnalysis$10(NativeImageGenerator.java:770)
        at 
org.graalvm.nativeimage.builder/com.oracle.svm.hosted.FeatureHandler.forEachFeature(FeatureHandler.java:86)
        at 
org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.lambda$runPointsToAnalysis$11(NativeImageGenerator.java:770)
        at 
org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.AbstractAnalysisEngine.runAnalysis(AbstractAnalysisEngine.java:179)
        at 
org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:767)
        at 
org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:582)
        at 
org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.run(NativeImageGenerator.java:539)
        at 
org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.buildImage(NativeImageGeneratorRunner.java:408)
        at 
org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.build(NativeImageGeneratorRunner.java:612)
        at 
org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.start(NativeImageGeneratorRunner.java:134)
        at 
org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.main(NativeImageGeneratorRunner.java:94)
   
   ```


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