Uploaded image for project: 'Quarkus'
  1. Quarkus
  2. QUARKUS-816

Building an application with io.quarkus:quarkus-smallrye-opentracing with Mandrel builder container fails

XMLWordPrintable

    • False
    • False
    • +
    • Undefined
    • Hide

      1. Checkout https://github.com/quarkusio/quarkus-quickstarts
      2. Run a build of `opentracing-quickstart` with RHBQ 1.11.2.ER1 Maven repository:

      ./mvnw -Pnative -pl opentracing-quickstart clean verify -V -B -Dmaven.repo.local=/path/to/unzipped/rh-quarkus-1.11.2.GA-maven-repository/maven-repository/ -Dquarkus.platform.group-id=io.quarkus -Dquarkus.platform.artifact-id=quarkus-bom -Dquarkus.platform.version=1.11.2.Final-redhat-00003 -Dquarkus-plugin.version=1.11.2.Final-redhat-00003 -Dquarkus.native.container-build=true -Dquarkus.native.container-runtime=docker -Dquarkus.native.builder-image=registry-proxy.engineering.redhat.com/rh-osbs/quarkus-quarkus-mandrel-20-rhel8:20.3 
      
      Show
      1. Checkout https://github.com/quarkusio/quarkus-quickstarts 2. Run a build of `opentracing-quickstart` with RHBQ 1.11.2.ER1 Maven repository: ./mvnw -Pnative -pl opentracing-quickstart clean verify -V -B -Dmaven.repo. local =/path/to/unzipped/rh-quarkus-1.11.2.GA-maven-repository/maven-repository/ -Dquarkus.platform.group-id=io.quarkus -Dquarkus.platform.artifact-id=quarkus-bom -Dquarkus.platform.version=1.11.2.Final-redhat-00003 -Dquarkus-plugin.version=1.11.2.Final-redhat-00003 -Dquarkus.native.container-build=true -Dquarkus.native.container-runtime=docker -Dquarkus.native.builder-image=registry-proxy.engineering.redhat.com/rh-osbs/quarkus-quarkus-mandrel-20-rhel8:20.3
    • ---

      Attempting a native build of Quarkus application with io.quarkus:quarkus-smallrye-opentracing using the Mandrel builder container fails:

      06:01:16 [INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Running Quarkus native-image plugin on GraalVM Version 20.3.1.2_0-1 (Mandrel Distribution) (Java Version 11.0.10+9-LTS)
      06:01:16 [INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] docker run -v /home/hudson/hudson_workspace/workspace/quickstarts-native-quarkus-universe-bom/quarkus-quickstarts/opentracing-quickstart/target/opentracing-quickstart-1.0.0-SNAPSHOT-native-image-source-jar:/project:z --env LANG=C --user 600:600 --rm registry-proxy.engineering.redhat.com/rh-osbs/quarkus-quarkus-mandrel-20-rhel8:20.3 -J-Dsun.nio.ch.maxUpdateArraySize=100 -J-Djava.util.logging.manager=org.jboss.logmanager.LogManager -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=en -J-Dfile.encoding=UTF-8 --initialize-at-build-time= -H:InitialCollectionPolicy=com.oracle.svm.core.genscavenge.CollectionPolicy\$BySpaceAndTime -H:+JNI -H:+AllowFoldMethods -jar opentracing-quickstart-1.0.0-SNAPSHOT-runner.jar -H:FallbackThreshold=0 -H:+ReportExceptionStackTraces -J-Xmx4g -H:-AddAllCharsets -H:EnableURLProtocols=http,https --enable-all-security-services -H:-UseServiceLoaderFeature -H:+StackTrace opentracing-quickstart-1.0.0-SNAPSHOT-runner
      06:01:21 [opentracing-quickstart-1.0.0-SNAPSHOT-runner:57]    classlist:   3,294.56 ms,  0.93 GB
      06:01:22 [opentracing-quickstart-1.0.0-SNAPSHOT-runner:57]        setup:     671.82 ms,  0.93 GB
      06:01:22 Error: One of @Delete, @Alias, or @Inject must be used: static final java.lang.String io.quarkus.smallrye.opentracing.runtime.graal.Target_org_jboss_resteasy_microprofile_config_FilterConfigSource.FILTER_CONFIG_SOURCE_NAME
      06:01:22 com.oracle.svm.core.util.UserError$UserException: One of @Delete, @Alias, or @Inject must be used: static final java.lang.String io.quarkus.smallrye.opentracing.runtime.graal.Target_org_jboss_resteasy_microprofile_config_FilterConfigSource.FILTER_CONFIG_SOURCE_NAME
      06:01:22 	at com.oracle.svm.core.util.UserError.abort(UserError.java:68)
      06:01:22 	at com.oracle.svm.core.util.UserError.guarantee(UserError.java:96)
      06:01:22 	at com.oracle.svm.hosted.substitute.AnnotationSubstitutionProcessor.handleFieldInAliasClass(AnnotationSubstitutionProcessor.java:398)
      06:01:22 	at com.oracle.svm.hosted.substitute.AnnotationSubstitutionProcessor.handleAliasClass(AnnotationSubstitutionProcessor.java:343)
      06:01:22 	at com.oracle.svm.hosted.substitute.AnnotationSubstitutionProcessor.handleClass(AnnotationSubstitutionProcessor.java:309)
      06:01:22 	at com.oracle.svm.hosted.substitute.AnnotationSubstitutionProcessor.init(AnnotationSubstitutionProcessor.java:265)
      06:01:22 	at com.oracle.svm.hosted.NativeImageGenerator.createDeclarativeSubstitutionProcessor(NativeImageGenerator.java:919)
      06:01:22 	at com.oracle.svm.hosted.NativeImageGenerator.setupNativeImage(NativeImageGenerator.java:853)
      06:01:22 	at com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:554)
      06:01:22 	at com.oracle.svm.hosted.NativeImageGenerator.lambda$run$0(NativeImageGenerator.java:469)
      06:01:22 	at java.base/java.util.concurrent.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1407)
      06:01:22 	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
      06:01:22 	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
      06:01:22 	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
      06:01:22 	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
      06:01:22 	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
      06:01:22 Error: Image build request failed with exit status 1
      

      This is a regression compared to RHBQ 1.11.0.ER1.

              fzakkak1@redhat.com Foivos Zakkak
              mjurc@redhat.com Michal Jurc
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: