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

Reactive Oracle client - native build fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Critical Critical
    • None
    • 2.7.5.ER2
    • team/eng
    • Hide
      git clone git@github.com:jsmrcka/quarkus-test-suite.git
      git checkout reactive-oracle-native-reproducer
      mvn clean verify -pl sql-db/vertx-sql -Dnative -Dmaven.repo.local=.../rh-quarkus-2.7.5.GA-maven-repository/maven-repository -Dquarkus.platform.group-id=com.redhat.quarkus.platform -Dquarkus.platform.artifact-id=quarkus-bom -Dquarkus.platform.version=2.7.5.Final-redhat-00004 -Dquarkus-plugin.version=2.7.5.Final-redhat-00004
      
      Show
      git clone git@github.com:jsmrcka/quarkus-test-suite.git git checkout reactive-oracle-native-reproducer mvn clean verify -pl sql-db/vertx-sql -Dnative -Dmaven.repo. local =.../rh-quarkus-2.7.5.GA-maven-repository/maven-repository -Dquarkus.platform.group-id=com.redhat.quarkus.platform -Dquarkus.platform.artifact-id=quarkus-bom -Dquarkus.platform.version=2.7.5.Final-redhat-00004 -Dquarkus-plugin.version=2.7.5.Final-redhat-00004
    • +
    • ---

      GH issue: https://github.com/quarkusio/quarkus/issues/24788

      In an application that uses multiple reactive and JDBC clients, adding io.quarkus:quarkus-reactive-oracle-client + io.quarkus:quarkus-jdbc-oracle causes native build to fail.

      [INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildRunner] docker run --env LANG=C --rm --user 1000:1000 -v /home/jsmrcka/work/github/quarkus-qe/quarkus-test-suite/sql-db/vertx-sql/target/vertx-sql-1.0.0-SNAPSHOT-native-image-source-jar:/project:z --name build-native-rHGfP quay.io/quarkus/ubi-quarkus-mandrel:21.3-java11 -J-Dsun.nio.ch.maxUpdateArraySize=100 -J-Djava.util.logging.manager=org.jboss.logmanager.LogManager -J-Dcom.mysql.cj.disableAbandonedConnectionCleanup=true -J-DCoordinatorEnvironmentBean.transactionStatusManagerEnable=false -J-DQuarkusWithJcc=true -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=en -J-Duser.country=US -J-Dfile.encoding=UTF-8 -H:-ParseOnce -J--add-exports=java.security.jgss/sun.security.krb5=ALL-UNNAMED -J--add-opens=java.base/java.text=ALL-UNNAMED --trace-class-initialization=oracle.jdbc.driver.BlockSource\$ThreadedCachingBlockSource\$BlockReleaser,oracle.jdbc.driver.BlockSource\$ThreadedCachingBlockSource -H:InitialCollectionPolicy=com.oracle.svm.core.genscavenge.CollectionPolicy\$BySpaceAndTime -H:+JNI -H:+AllowFoldMethods -J-Djava.awt.headless=true -H:FallbackThreshold=0 --allow-incomplete-classpath -H:+ReportExceptionStackTraces -J-Xmx4g -H:+AddAllCharsets -H:EnableURLProtocols=http,https -H:-UseServiceLoaderFeature -H:+StackTrace -J--add-exports=java.base/sun.security.action=ALL-UNNAMED --exclude-config .*com\.oracle\.database\.jdbc.* /META-INF/native-image/(?:native-image\.properties|reflect-config\.json) vertx-sql-1.0.0-SNAPSHOT-runner -jar vertx-sql-1.0.0-SNAPSHOT-runner.jar
      [vertx-sql-1.0.0-SNAPSHOT-runner:57]    classlist:   6,178.12 ms,  1.19 GB
      [vertx-sql-1.0.0-SNAPSHOT-runner:57]        (cap):     926.04 ms,  1.19 GB
      [vertx-sql-1.0.0-SNAPSHOT-runner:57]        setup:   4,143.08 ms,  1.19 GB
      The bundle named: com/sun/rowset/RowSetResourceBundle, has not been found. If the bundle is part of a module, verify the bundle name is a fully qualified class name. Otherwise verify the bundle path is accessible in the classpath.
      08:59:27,826 INFO  [org.hib.val.int.uti.Version] HV000001: Hibernate Validator 6.2.2.Final
      08:59:53,540 INFO  [org.jbo.threads] JBoss Threads version 3.4.2.Final
      [vertx-sql-1.0.0-SNAPSHOT-runner:57]     (clinit):   1,640.07 ms,  2.70 GB
      [vertx-sql-1.0.0-SNAPSHOT-runner:57]   (typeflow):   6,250.20 ms,  2.70 GB
      [vertx-sql-1.0.0-SNAPSHOT-runner:57]    (objects):  82,327.07 ms,  2.70 GB
      [vertx-sql-1.0.0-SNAPSHOT-runner:57]   (features):   7,986.46 ms,  2.70 GB
      [vertx-sql-1.0.0-SNAPSHOT-runner:57]     analysis: 101,769.99 ms,  2.70 GB
      [vertx-sql-1.0.0-SNAPSHOT-runner:57]     universe:   7,004.56 ms,  2.90 GB
      [vertx-sql-1.0.0-SNAPSHOT-runner:57]      (parse):  27,081.07 ms,  3.56 GB
      [vertx-sql-1.0.0-SNAPSHOT-runner:57]     (inline):  22,528.38 ms,  3.46 GB
      [vertx-sql-1.0.0-SNAPSHOT-runner:57]    (compile):  87,516.34 ms,  3.82 GB
      [vertx-sql-1.0.0-SNAPSHOT-runner:57]      compile: 142,728.96 ms,  3.82 GB
      [vertx-sql-1.0.0-SNAPSHOT-runner:57]        image:   9,875.64 ms,  3.64 GB
      [vertx-sql-1.0.0-SNAPSHOT-runner:57]        write:   1,305.71 ms,  3.64 GB
      Error: Classes that should be initialized at run time got initialized during image building:
       oracle.jdbc.driver.BlockSource$ThreadedCachingBlockSource$BlockReleaser the class was requested to be initialized at run time (from feature io.quarkus.runner.AutoFeature.beforeAnalysis with 'BlockSource$ThreadedCachingBlockSource$BlockReleaser.class'). oracle.jdbc.driver.BlockSource$ThreadedCachingBlockSource caused initialization of this class with the following trace: 
      	at oracle.jdbc.driver.BlockSource$ThreadedCachingBlockSource$BlockReleaser.<clinit>(BlockSource.java:313)
      	at oracle.jdbc.driver.BlockSource$ThreadedCachingBlockSource.<clinit>(BlockSource.java:454)
      
      oracle.jdbc.driver.BlockSource$ThreadedCachingBlockSource the class was requested to be initialized at run time (from feature io.quarkus.runner.AutoFeature.beforeAnalysis with 'BlockSource$ThreadedCachingBlockSource.class'). oracle.jdbc.driver.BlockSource$ThreadedCachingBlockSource caused initialization of this class with the following trace: 
      	at oracle.jdbc.driver.BlockSource$ThreadedCachingBlockSource.<clinit>(BlockSource.java:288)
      	at oracle.jdbc.driver.BlockSource$ThreadedCachingBlockSource$BlockReleaserListener.handleNotification(BlockSource.java:435)
      	at sun.management.NotificationEmitterSupport.sendNotification(NotificationEmitterSupport.java:155)
      	at sun.management.MemoryImpl.createNotification(MemoryImpl.java:161)
      	at sun.management.MemoryPoolImpl$CollectionSensor.triggerAction(MemoryPoolImpl.java:326)
      	at sun.management.Sensor.trigger(Sensor.java:134)
      
      
      com.oracle.svm.core.util.UserError$UserException: Classes that should be initialized at run time got initialized during image building:
       oracle.jdbc.driver.BlockSource$ThreadedCachingBlockSource$BlockReleaser the class was requested to be initialized at run time (from feature io.quarkus.runner.AutoFeature.beforeAnalysis with 'BlockSource$ThreadedCachingBlockSource$BlockReleaser.class'). oracle.jdbc.driver.BlockSource$ThreadedCachingBlockSource caused initialization of this class with the following trace: 
      	at oracle.jdbc.driver.BlockSource$ThreadedCachingBlockSource$BlockReleaser.<clinit>(BlockSource.java:313)
      	at oracle.jdbc.driver.BlockSource$ThreadedCachingBlockSource.<clinit>(BlockSource.java:454)
      
      oracle.jdbc.driver.BlockSource$ThreadedCachingBlockSource the class was requested to be initialized at run time (from feature io.quarkus.runner.AutoFeature.beforeAnalysis with 'BlockSource$ThreadedCachingBlockSource.class'). oracle.jdbc.driver.BlockSource$ThreadedCachingBlockSource caused initialization of this class with the following trace: 
      	at oracle.jdbc.driver.BlockSource$ThreadedCachingBlockSource.<clinit>(BlockSource.java:288)
      	at oracle.jdbc.driver.BlockSource$ThreadedCachingBlockSource$BlockReleaserListener.handleNotification(BlockSource.java:435)
      	at sun.management.NotificationEmitterSupport.sendNotification(NotificationEmitterSupport.java:155)
      	at sun.management.MemoryImpl.createNotification(MemoryImpl.java:161)
      	at sun.management.MemoryPoolImpl$CollectionSensor.triggerAction(MemoryPoolImpl.java:326)
      	at sun.management.Sensor.trigger(Sensor.java:134)
      
      
      	at com.oracle.svm.core.util.UserError.abort(UserError.java:73)
      	at com.oracle.svm.hosted.classinitialization.ConfigurableClassInitialization.checkDelayedInitialization(ConfigurableClassInitialization.java:555)
      	at com.oracle.svm.hosted.classinitialization.ClassInitializationFeature.afterImageWrite(ClassInitializationFeature.java:316)
      	at com.oracle.svm.hosted.NativeImageGenerator.lambda$doRun$8(NativeImageGenerator.java:663)
      	at com.oracle.svm.hosted.FeatureHandler.forEachFeature(FeatureHandler.java:73)
      	at com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:663)
      	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)
      

            Unassigned Unassigned
            rhn-support-jsmrcka Josef Smrcka (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: