Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Netty Native java.lang.ClassNotFoundException: org.bouncycastle.jsse.BCSSLEngine #1154

Open
vorburger opened this issue Mar 2, 2025 · 2 comments

Comments

@vorburger
Copy link
Member

$ b run //java/dev/enola/cli:native --

INFO: Analyzed target //java/dev/enola/cli:native (0 packages loaded, 3 targets configured).
ERROR: /home/vorburger/git/github.com/enola-dev/enola/java/dev/enola/cli/BUILD:21:13: Native Image [executable] (fastbuild) //java/dev/enola/cli:native failed: (Exit 1): native-image failed: error executing NativeImage command (from target //java/dev/enola/cli:native) external/rules_graalvm++graalvm+graalvm/bin/native-image @bazel-out/k8-fastbuild/bin/java/dev/enola/cli/native-bin-0.params '-EZERO_AR_DATE=1' '-EPATH=/usr/bin:/bin'

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
Mar 02, 2025 1:31:32 AM io.netty.handler.ssl.BouncyCastleAlpnSslUtils <clinit>
SEVERE: Unable to initialize BouncyCastleAlpnSslUtils.
java.lang.ClassNotFoundException: org.bouncycastle.jsse.BCSSLEngine
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageClassLoader.loadClass(NativeImageClassLoader.java:652)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
        at java.base/java.lang.Class.forName0(Native Method)
        at java.base/java.lang.Class.forName(Class.java:421)
        at java.base/java.lang.Class.forName(Class.java:412)
        at io.netty.handler.ssl.BouncyCastleAlpnSslUtils.<clinit>(BouncyCastleAlpnSslUtils.java:63)
        at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized0(Native Method)
        at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized(Unsafe.java:1160)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.classinitialization.ClassInitializationSupport.ensureClassInitialized(ClassInitializationSupport.java:177)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.classinitialization.ProvenSafeClassInitializationSupport.computeInitKindAndMaybeInitializeClass(ProvenSafeClassInitializationSupport.java:348)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.classinitialization.ProvenSafeClassInitializationSupport.computeInitKindAndMaybeInitializeClass(ProvenSafeClassInitializationSupport.java:76)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.classinitialization.ClassInitializationSupport.maybeInitializeAtBuildTime(ClassInitializationSupport.java:161)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.classinitialization.ClassInitializationSupport.maybeInitializeAtBuildTime(ClassInitializationSupport.java:150)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.SVMHost.isInitialized(SVMHost.java:318)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.meta.AnalysisType.isInitialized(AnalysisType.java:911)
        at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.maybeEagerlyInitialize(BytecodeParser.java:4444)
        at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.genInvokeStatic(BytecodeParser.java:1684)
        at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.genInvokeStatic(BytecodeParser.java:1677)
        at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.processBytecode(BytecodeParser.java:5441)
        at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.iterateBytecodesForBlock(BytecodeParser.java:3431)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.phases.SharedGraphBuilderPhase$SharedBytecodeParser.iterateBytecodesForBlock(SharedGraphBuilderPhase.java:743)
        at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.handleBytecodeBlock(BytecodeParser.java:3391)
        at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.processBlock(BytecodeParser.java:3233)
        at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.build(BytecodeParser.java:1137)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.phases.SharedGraphBuilderPhase$SharedBytecodeParser.build(SharedGraphBuilderPhase.java:162)
        at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.buildRootMethod(BytecodeParser.java:1029)
        at jdk.internal.vm.compiler/org.graalvm.compiler.java.GraphBuilderPhase$Instance.run(GraphBuilderPhase.java:101)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.phases.SharedGraphBuilderPhase.run(SharedGraphBuilderPhase.java:116)
        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:434)
        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 org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.flow.AnalysisParsedGraph.parseBytecode(AnalysisParsedGraph.java:146)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.meta.AnalysisMethod.parseGraph(AnalysisMethod.java:895)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.meta.AnalysisMethod.ensureGraphParsedHelper(AnalysisMethod.java:860)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.meta.AnalysisMethod.ensureGraphParsed(AnalysisMethod.java:843)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.flow.MethodTypeFlowBuilder.parse(MethodTypeFlowBuilder.java:186)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.flow.MethodTypeFlowBuilder.apply(MethodTypeFlowBuilder.java:621)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.flow.MethodTypeFlow.createFlowsGraph(MethodTypeFlow.java:167)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.flow.MethodTypeFlow.ensureFlowsGraphCreated(MethodTypeFlow.java:153)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.flow.MethodTypeFlow.getOrCreateMethodFlowsGraphInfo(MethodTypeFlow.java:111)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.typestate.DefaultVirtualInvokeTypeFlow.onObservedUpdate(DefaultVirtualInvokeTypeFlow.java:114)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.flow.TypeFlow.lambda$addObserver$0(TypeFlow.java:475)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.util.CompletionExecutor.executeCommand(CompletionExecutor.java:187)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.util.CompletionExecutor.lambda$executeService$0(CompletionExecutor.java:171)
        at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1423)
        at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
        at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
        at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
        at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
        at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)

Error: Classes that should be initialized at run time got initialized during image building:
 org.bouncycastle.asn1.gm.GMObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.asn1.gm.GMObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.asn1.gm.GMObjectIdentifiers
org.bouncycastle.pqc.jcajce.provider.dilithium.DilithiumKeyFactorySpi was unintentionally initialized at build time. To see why org.bouncycastle.pqc.jcajce.provider.dilithium.DilithiumKeyFactorySpi got initialized use --trace-class-initialization=org.bouncycastle.pqc.jcajce.provider.dilithium.DilithiumKeyFactorySpi
org.bouncycastle.math.Primes was unintentionally initialized at build time. To see why org.bouncycastle.math.Primes got initialized use --trace-class-initialization=org.bouncycastle.math.Primes
org.bouncycastle.crypto.CryptoServicesRegistrar was unintentionally initialized at build time. To see why org.bouncycastle.crypto.CryptoServicesRegistrar got initialized use --trace-class-initialization=org.bouncycastle.crypto.CryptoServicesRegistrar
io.netty.buffer.UnpooledDirectByteBuf the class was requested to be initialized at run time (subtype of io.netty.buffer.AbstractReferenceCountedByteBuf). To see why io.netty.buffer.UnpooledDirectByteBuf got initialized use --trace-class-initialization=io.netty.buffer.UnpooledDirectByteBuf
org.slf4j.jul.JDK14LoggerAdapter$1 was unintentionally initialized at build time. To see why org.slf4j.jul.JDK14LoggerAdapter$1 got initialized use --trace-class-initialization=org.slf4j.jul.JDK14LoggerAdapter$1
org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter was unintentionally initialized at build time. To see why org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter got initialized use --trace-class-initialization=org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter
org.bouncycastle.asn1.sec.SECObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.asn1.sec.SECObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.asn1.sec.SECObjectIdentifiers
org.bouncycastle.pqc.jcajce.provider.falcon.FalconKeyFactorySpi was unintentionally initialized at build time. To see why org.bouncycastle.pqc.jcajce.provider.falcon.FalconKeyFactorySpi got initialized use --trace-class-initialization=org.bouncycastle.pqc.jcajce.provider.falcon.FalconKeyFactorySpi
org.bouncycastle.util.Properties was unintentionally initialized at build time. To see why org.bouncycastle.util.Properties got initialized use --trace-class-initialization=org.bouncycastle.util.Properties
io.netty.buffer.UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeHeapByteBuf the class was requested to be initialized at run time (subtype of io.netty.buffer.AbstractReferenceCountedByteBuf). To see why io.netty.buffer.UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeHeapByteBuf got initialized use --trace-class-initialization=io.netty.buffer.UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeHeapByteBuf
io.netty.buffer.ByteBufUtil the class was requested to be initialized at run time (from 'META-INF/native-image/io.netty/netty-buffer/native-image.properties' in 'file:///home/vorburger/.cache/bazel/_bazel_vorburger/a3cf8df34f0c7a76e9926daaad9ffbf4/execroot/_main/bazel-out/k8-fastbuild/bin/external/rules_jvm_external++maven+maven/v1/https/repo.maven.apache.org/maven2/io/netty/netty-buffer/4.1.110.Final/processed_netty-buffer-4.1.110.Final.jar' with 'io.netty.buffer.ByteBufUtil' and from 'META-INF/native-image/io.netty/netty-buffer/native-image.properties' in 'file:///home/vorburger/.cache/bazel/_bazel_vorburger/a3cf8df34f0c7a76e9926daaad9ffbf4/execroot/_main/bazel-out/k8-fastbuild/bin/external/rules_jvm_external++maven+enola_maven/io/netty/netty-buffer/4.1.110.Final/processed_netty-buffer-4.1.110.Final.jar' with 'io.netty.buffer.ByteBufUtil'). To see why io.netty.buffer.ByteBufUtil got initialized use --trace-class-initialization=io.netty.buffer.ByteBufUtil
org.bouncycastle.internal.asn1.oiw.OIWObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.internal.asn1.oiw.OIWObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.internal.asn1.oiw.OIWObjectIdentifiers
org.bouncycastle.pqc.jcajce.provider.kyber.KyberKeyFactorySpi was unintentionally initialized at build time. To see why org.bouncycastle.pqc.jcajce.provider.kyber.KyberKeyFactorySpi got initialized use --trace-class-initialization=org.bouncycastle.pqc.jcajce.provider.kyber.KyberKeyFactorySpi
org.bouncycastle.asn1.x9.X9ObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.asn1.x9.X9ObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.asn1.x9.X9ObjectIdentifiers
io.netty.buffer.UnpooledUnsafeDirectByteBuf the class was requested to be initialized at run time (subtype of io.netty.buffer.AbstractReferenceCountedByteBuf). To see why io.netty.buffer.UnpooledUnsafeDirectByteBuf got initialized use --trace-class-initialization=io.netty.buffer.UnpooledUnsafeDirectByteBuf
org.bouncycastle.util.BigIntegers was unintentionally initialized at build time. To see why org.bouncycastle.util.BigIntegers got initialized use --trace-class-initialization=org.bouncycastle.util.BigIntegers
org.bouncycastle.util.Strings was unintentionally initialized at build time. To see why org.bouncycastle.util.Strings got initialized use --trace-class-initialization=org.bouncycastle.util.Strings
org.bouncycastle.jce.provider.BouncyCastleProvider was unintentionally initialized at build time. To see why org.bouncycastle.jce.provider.BouncyCastleProvider got initialized use --trace-class-initialization=org.bouncycastle.jce.provider.BouncyCastleProvider
io.netty.buffer.PooledByteBufAllocator the class was requested to be initialized at run time (from 'META-INF/native-image/io.netty/netty-buffer/native-image.properties' in 'file:///home/vorburger/.cache/bazel/_bazel_vorburger/a3cf8df34f0c7a76e9926daaad9ffbf4/execroot/_main/bazel-out/k8-fastbuild/bin/external/rules_jvm_external++maven+maven/v1/https/repo.maven.apache.org/maven2/io/netty/netty-buffer/4.1.110.Final/processed_netty-buffer-4.1.110.Final.jar' with 'io.netty.buffer.PooledByteBufAllocator' and from 'META-INF/native-image/io.netty/netty-buffer/native-image.properties' in 'file:///home/vorburger/.cache/bazel/_bazel_vorburger/a3cf8df34f0c7a76e9926daaad9ffbf4/execroot/_main/bazel-out/k8-fastbuild/bin/external/rules_jvm_external++maven+enola_maven/io/netty/netty-buffer/4.1.110.Final/processed_netty-buffer-4.1.110.Final.jar' with 'io.netty.buffer.PooledByteBufAllocator'). To see why io.netty.buffer.PooledByteBufAllocator got initialized use --trace-class-initialization=io.netty.buffer.PooledByteBufAllocator
org.slf4j.jul.JDK14LoggerAdapter was unintentionally initialized at build time. To see why org.slf4j.jul.JDK14LoggerAdapter got initialized use --trace-class-initialization=org.slf4j.jul.JDK14LoggerAdapter
io.netty.buffer.UnpooledUnsafeHeapByteBuf the class was requested to be initialized at run time (subtype of io.netty.buffer.AbstractReferenceCountedByteBuf). To see why io.netty.buffer.UnpooledUnsafeHeapByteBuf got initialized use --trace-class-initialization=io.netty.buffer.UnpooledUnsafeHeapByteBuf
org.bouncycastle.internal.asn1.isara.IsaraObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.internal.asn1.isara.IsaraObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.internal.asn1.isara.IsaraObjectIdentifiers
org.bouncycastle.internal.asn1.iso.ISOIECObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.internal.asn1.iso.ISOIECObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.internal.asn1.iso.ISOIECObjectIdentifiers
org.slf4j.helpers.Reporter was unintentionally initialized at build time. To see why org.slf4j.helpers.Reporter got initialized use --trace-class-initialization=org.slf4j.helpers.Reporter
org.bouncycastle.internal.asn1.gnu.GNUObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.internal.asn1.gnu.GNUObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.internal.asn1.gnu.GNUObjectIdentifiers
org.bouncycastle.util.io.pem.PemObject was unintentionally initialized at build time. To see why org.bouncycastle.util.io.pem.PemObject got initialized use --trace-class-initialization=org.bouncycastle.util.io.pem.PemObject
org.bouncycastle.asn1.cryptopro.CryptoProObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.asn1.cryptopro.CryptoProObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.asn1.cryptopro.CryptoProObjectIdentifiers
org.bouncycastle.internal.asn1.misc.MiscObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.internal.asn1.misc.MiscObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.internal.asn1.misc.MiscObjectIdentifiers
org.bouncycastle.asn1.teletrust.TeleTrusTObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.asn1.teletrust.TeleTrusTObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.asn1.teletrust.TeleTrusTObjectIdentifiers
org.bouncycastle.asn1.DLFactory was unintentionally initialized at build time. To see why org.bouncycastle.asn1.DLFactory got initialized use --trace-class-initialization=org.bouncycastle.asn1.DLFactory
org.bouncycastle.asn1.nist.NISTObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.asn1.nist.NISTObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.asn1.nist.NISTObjectIdentifiers
org.bouncycastle.jce.provider.BouncyCastleProviderConfiguration was unintentionally initialized at build time. To see why org.bouncycastle.jce.provider.BouncyCastleProviderConfiguration got initialized use --trace-class-initialization=org.bouncycastle.jce.provider.BouncyCastleProviderConfiguration
org.bouncycastle.pqc.asn1.PQCObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.pqc.asn1.PQCObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.pqc.asn1.PQCObjectIdentifiers
org.bouncycastle.asn1.bc.BCObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.asn1.bc.BCObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.asn1.bc.BCObjectIdentifiers
org.bouncycastle.asn1.x509.X509ObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.asn1.x509.X509ObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.asn1.x509.X509ObjectIdentifiers
io.netty.buffer.UnpooledHeapByteBuf the class was requested to be initialized at run time (subtype of io.netty.buffer.AbstractReferenceCountedByteBuf). To see why io.netty.buffer.UnpooledHeapByteBuf got initialized use --trace-class-initialization=io.netty.buffer.UnpooledHeapByteBuf
org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers
org.slf4j.LoggerFactory was unintentionally initialized at build time. To see why org.slf4j.LoggerFactory got initialized use --trace-class-initialization=org.slf4j.LoggerFactory
io.netty.buffer.UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeDirectByteBuf the class was requested to be initialized at run time (subtype of io.netty.buffer.AbstractReferenceCountedByteBuf). To see why io.netty.buffer.UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeDirectByteBuf got initialized use --trace-class-initialization=io.netty.buffer.UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeDirectByteBuf
io.netty.buffer.AbstractReferenceCountedByteBuf the class was requested to be initialized at run time (from 'META-INF/native-image/io.netty/netty-buffer/native-image.properties' in 'file:///home/vorburger/.cache/bazel/_bazel_vorburger/a3cf8df34f0c7a76e9926daaad9ffbf4/execroot/_main/bazel-out/k8-fastbuild/bin/external/rules_jvm_external++maven+maven/v1/https/repo.maven.apache.org/maven2/io/netty/netty-buffer/4.1.110.Final/processed_netty-buffer-4.1.110.Final.jar' with 'io.netty.buffer.AbstractReferenceCountedByteBuf' and from 'META-INF/native-image/io.netty/netty-buffer/native-image.properties' in 'file:///home/vorburger/.cache/bazel/_bazel_vorburger/a3cf8df34f0c7a76e9926daaad9ffbf4/execroot/_main/bazel-out/k8-fastbuild/bin/external/rules_jvm_external++maven+enola_maven/io/netty/netty-buffer/4.1.110.Final/processed_netty-buffer-4.1.110.Final.jar' with 'io.netty.buffer.AbstractReferenceCountedByteBuf'). To see why io.netty.buffer.AbstractReferenceCountedByteBuf got initialized use --trace-class-initialization=io.netty.buffer.AbstractReferenceCountedByteBuf
To see how the classes got initialized, use --trace-class-initialization=org.bouncycastle.asn1.gm.GMObjectIdentifiers,org.bouncycastle.pqc.jcajce.provider.dilithium.DilithiumKeyFactorySpi,org.bouncycastle.math.Primes,org.bouncycastle.crypto.CryptoServicesRegistrar,io.netty.buffer.UnpooledDirectByteBuf,org.slf4j.jul.JDK14LoggerAdapter$1,org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter,org.bouncycastle.asn1.sec.SECObjectIdentifiers,org.bouncycastle.pqc.jcajce.provider.falcon.FalconKeyFactorySpi,org.bouncycastle.util.Properties,io.netty.buffer.UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeHeapByteBuf,io.netty.buffer.ByteBufUtil,org.bouncycastle.internal.asn1.oiw.OIWObjectIdentifiers,org.bouncycastle.pqc.jcajce.provider.kyber.KyberKeyFactorySpi,org.bouncycastle.asn1.x9.X9ObjectIdentifiers,io.netty.buffer.UnpooledUnsafeDirectByteBuf,org.bouncycastle.util.BigIntegers,org.bouncycastle.util.Strings,org.bouncycastle.jce.provider.BouncyCastleProvider,io.netty.buffer.PooledByteBufAllocator,org.slf4j.jul.JDK14LoggerAdapter,io.netty.buffer.UnpooledUnsafeHeapByteBuf,org.bouncycastle.internal.asn1.isara.IsaraObjectIdentifiers,org.bouncycastle.internal.asn1.iso.ISOIECObjectIdentifiers,org.slf4j.helpers.Reporter,org.bouncycastle.internal.asn1.gnu.GNUObjectIdentifiers,org.bouncycastle.util.io.pem.PemObject,org.bouncycastle.asn1.cryptopro.CryptoProObjectIdentifiers,org.bouncycastle.internal.asn1.misc.MiscObjectIdentifiers,org.bouncycastle.asn1.teletrust.TeleTrusTObjectIdentifiers,org.bouncycastle.asn1.DLFactory,org.bouncycastle.asn1.nist.NISTObjectIdentifiers,org.bouncycastle.jce.provider.BouncyCastleProviderConfiguration,org.bouncycastle.pqc.asn1.PQCObjectIdentifiers,org.bouncycastle.asn1.bc.BCObjectIdentifiers,org.bouncycastle.asn1.x509.X509ObjectIdentifiers,io.netty.buffer.UnpooledHeapByteBuf,org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers,org.slf4j.LoggerFactory,io.netty.buffer.UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeDirectByteBuf,io.netty.buffer.AbstractReferenceCountedByteBuf
com.oracle.svm.core.util.UserError$UserException: Classes that should be initialized at run time got initialized during image building:
 org.bouncycastle.asn1.gm.GMObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.asn1.gm.GMObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.asn1.gm.GMObjectIdentifiers
org.bouncycastle.pqc.jcajce.provider.dilithium.DilithiumKeyFactorySpi was unintentionally initialized at build time. To see why org.bouncycastle.pqc.jcajce.provider.dilithium.DilithiumKeyFactorySpi got initialized use --trace-class-initialization=org.bouncycastle.pqc.jcajce.provider.dilithium.DilithiumKeyFactorySpi
org.bouncycastle.math.Primes was unintentionally initialized at build time. To see why org.bouncycastle.math.Primes got initialized use --trace-class-initialization=org.bouncycastle.math.Primes
org.bouncycastle.crypto.CryptoServicesRegistrar was unintentionally initialized at build time. To see why org.bouncycastle.crypto.CryptoServicesRegistrar got initialized use --trace-class-initialization=org.bouncycastle.crypto.CryptoServicesRegistrar
io.netty.buffer.UnpooledDirectByteBuf the class was requested to be initialized at run time (subtype of io.netty.buffer.AbstractReferenceCountedByteBuf). To see why io.netty.buffer.UnpooledDirectByteBuf got initialized use --trace-class-initialization=io.netty.buffer.UnpooledDirectByteBuf
org.slf4j.jul.JDK14LoggerAdapter$1 was unintentionally initialized at build time. To see why org.slf4j.jul.JDK14LoggerAdapter$1 got initialized use --trace-class-initialization=org.slf4j.jul.JDK14LoggerAdapter$1
org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter was unintentionally initialized at build time. To see why org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter got initialized use --trace-class-initialization=org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter
org.bouncycastle.asn1.sec.SECObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.asn1.sec.SECObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.asn1.sec.SECObjectIdentifiers
org.bouncycastle.pqc.jcajce.provider.falcon.FalconKeyFactorySpi was unintentionally initialized at build time. To see why org.bouncycastle.pqc.jcajce.provider.falcon.FalconKeyFactorySpi got initialized use --trace-class-initialization=org.bouncycastle.pqc.jcajce.provider.falcon.FalconKeyFactorySpi
org.bouncycastle.util.Properties was unintentionally initialized at build time. To see why org.bouncycastle.util.Properties got initialized use --trace-class-initialization=org.bouncycastle.util.Properties
io.netty.buffer.UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeHeapByteBuf the class was requested to be initialized at run time (subtype of io.netty.buffer.AbstractReferenceCountedByteBuf). To see why io.netty.buffer.UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeHeapByteBuf got initialized use --trace-class-initialization=io.netty.buffer.UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeHeapByteBuf
io.netty.buffer.ByteBufUtil the class was requested to be initialized at run time (from 'META-INF/native-image/io.netty/netty-buffer/native-image.properties' in 'file:///home/vorburger/.cache/bazel/_bazel_vorburger/a3cf8df34f0c7a76e9926daaad9ffbf4/execroot/_main/bazel-out/k8-fastbuild/bin/external/rules_jvm_external++maven+maven/v1/https/repo.maven.apache.org/maven2/io/netty/netty-buffer/4.1.110.Final/processed_netty-buffer-4.1.110.Final.jar' with 'io.netty.buffer.ByteBufUtil' and from 'META-INF/native-image/io.netty/netty-buffer/native-image.properties' in 'file:///home/vorburger/.cache/bazel/_bazel_vorburger/a3cf8df34f0c7a76e9926daaad9ffbf4/execroot/_main/bazel-out/k8-fastbuild/bin/external/rules_jvm_external++maven+enola_maven/io/netty/netty-buffer/4.1.110.Final/processed_netty-buffer-4.1.110.Final.jar' with 'io.netty.buffer.ByteBufUtil'). To see why io.netty.buffer.ByteBufUtil got initialized use --trace-class-initialization=io.netty.buffer.ByteBufUtil
org.bouncycastle.internal.asn1.oiw.OIWObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.internal.asn1.oiw.OIWObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.internal.asn1.oiw.OIWObjectIdentifiers
org.bouncycastle.pqc.jcajce.provider.kyber.KyberKeyFactorySpi was unintentionally initialized at build time. To see why org.bouncycastle.pqc.jcajce.provider.kyber.KyberKeyFactorySpi got initialized use --trace-class-initialization=org.bouncycastle.pqc.jcajce.provider.kyber.KyberKeyFactorySpi
org.bouncycastle.asn1.x9.X9ObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.asn1.x9.X9ObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.asn1.x9.X9ObjectIdentifiers
io.netty.buffer.UnpooledUnsafeDirectByteBuf the class was requested to be initialized at run time (subtype of io.netty.buffer.AbstractReferenceCountedByteBuf). To see why io.netty.buffer.UnpooledUnsafeDirectByteBuf got initialized use --trace-class-initialization=io.netty.buffer.UnpooledUnsafeDirectByteBuf
org.bouncycastle.util.BigIntegers was unintentionally initialized at build time. To see why org.bouncycastle.util.BigIntegers got initialized use --trace-class-initialization=org.bouncycastle.util.BigIntegers
org.bouncycastle.util.Strings was unintentionally initialized at build time. To see why org.bouncycastle.util.Strings got initialized use --trace-class-initialization=org.bouncycastle.util.Strings
org.bouncycastle.jce.provider.BouncyCastleProvider was unintentionally initialized at build time. To see why org.bouncycastle.jce.provider.BouncyCastleProvider got initialized use --trace-class-initialization=org.bouncycastle.jce.provider.BouncyCastleProvider
io.netty.buffer.PooledByteBufAllocator the class was requested to be initialized at run time (from 'META-INF/native-image/io.netty/netty-buffer/native-image.properties' in 'file:///home/vorburger/.cache/bazel/_bazel_vorburger/a3cf8df34f0c7a76e9926daaad9ffbf4/execroot/_main/bazel-out/k8-fastbuild/bin/external/rules_jvm_external++maven+maven/v1/https/repo.maven.apache.org/maven2/io/netty/netty-buffer/4.1.110.Final/processed_netty-buffer-4.1.110.Final.jar' with 'io.netty.buffer.PooledByteBufAllocator' and from 'META-INF/native-image/io.netty/netty-buffer/native-image.properties' in 'file:///home/vorburger/.cache/bazel/_bazel_vorburger/a3cf8df34f0c7a76e9926daaad9ffbf4/execroot/_main/bazel-out/k8-fastbuild/bin/external/rules_jvm_external++maven+enola_maven/io/netty/netty-buffer/4.1.110.Final/processed_netty-buffer-4.1.110.Final.jar' with 'io.netty.buffer.PooledByteBufAllocator'). To see why io.netty.buffer.PooledByteBufAllocator got initialized use --trace-class-initialization=io.netty.buffer.PooledByteBufAllocator
org.slf4j.jul.JDK14LoggerAdapter was unintentionally initialized at build time. To see why org.slf4j.jul.JDK14LoggerAdapter got initialized use --trace-class-initialization=org.slf4j.jul.JDK14LoggerAdapter
io.netty.buffer.UnpooledUnsafeHeapByteBuf the class was requested to be initialized at run time (subtype of io.netty.buffer.AbstractReferenceCountedByteBuf). To see why io.netty.buffer.UnpooledUnsafeHeapByteBuf got initialized use --trace-class-initialization=io.netty.buffer.UnpooledUnsafeHeapByteBuf
org.bouncycastle.internal.asn1.isara.IsaraObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.internal.asn1.isara.IsaraObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.internal.asn1.isara.IsaraObjectIdentifiers
org.bouncycastle.internal.asn1.iso.ISOIECObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.internal.asn1.iso.ISOIECObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.internal.asn1.iso.ISOIECObjectIdentifiers
org.slf4j.helpers.Reporter was unintentionally initialized at build time. To see why org.slf4j.helpers.Reporter got initialized use --trace-class-initialization=org.slf4j.helpers.Reporter
org.bouncycastle.internal.asn1.gnu.GNUObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.internal.asn1.gnu.GNUObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.internal.asn1.gnu.GNUObjectIdentifiers
org.bouncycastle.util.io.pem.PemObject was unintentionally initialized at build time. To see why org.bouncycastle.util.io.pem.PemObject got initialized use --trace-class-initialization=org.bouncycastle.util.io.pem.PemObject
org.bouncycastle.asn1.cryptopro.CryptoProObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.asn1.cryptopro.CryptoProObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.asn1.cryptopro.CryptoProObjectIdentifiers
org.bouncycastle.internal.asn1.misc.MiscObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.internal.asn1.misc.MiscObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.internal.asn1.misc.MiscObjectIdentifiers
org.bouncycastle.asn1.teletrust.TeleTrusTObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.asn1.teletrust.TeleTrusTObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.asn1.teletrust.TeleTrusTObjectIdentifiers
org.bouncycastle.asn1.DLFactory was unintentionally initialized at build time. To see why org.bouncycastle.asn1.DLFactory got initialized use --trace-class-initialization=org.bouncycastle.asn1.DLFactory
org.bouncycastle.asn1.nist.NISTObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.asn1.nist.NISTObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.asn1.nist.NISTObjectIdentifiers
org.bouncycastle.jce.provider.BouncyCastleProviderConfiguration was unintentionally initialized at build time. To see why org.bouncycastle.jce.provider.BouncyCastleProviderConfiguration got initialized use --trace-class-initialization=org.bouncycastle.jce.provider.BouncyCastleProviderConfiguration
org.bouncycastle.pqc.asn1.PQCObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.pqc.asn1.PQCObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.pqc.asn1.PQCObjectIdentifiers
org.bouncycastle.asn1.bc.BCObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.asn1.bc.BCObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.asn1.bc.BCObjectIdentifiers
org.bouncycastle.asn1.x509.X509ObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.asn1.x509.X509ObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.asn1.x509.X509ObjectIdentifiers
io.netty.buffer.UnpooledHeapByteBuf the class was requested to be initialized at run time (subtype of io.netty.buffer.AbstractReferenceCountedByteBuf). To see why io.netty.buffer.UnpooledHeapByteBuf got initialized use --trace-class-initialization=io.netty.buffer.UnpooledHeapByteBuf
org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers
org.slf4j.LoggerFactory was unintentionally initialized at build time. To see why org.slf4j.LoggerFactory got initialized use --trace-class-initialization=org.slf4j.LoggerFactory
io.netty.buffer.UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeDirectByteBuf the class was requested to be initialized at run time (subtype of io.netty.buffer.AbstractReferenceCountedByteBuf). To see why io.netty.buffer.UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeDirectByteBuf got initialized use --trace-class-initialization=io.netty.buffer.UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeDirectByteBuf
io.netty.buffer.AbstractReferenceCountedByteBuf the class was requested to be initialized at run time (from 'META-INF/native-image/io.netty/netty-buffer/native-image.properties' in 'file:///home/vorburger/.cache/bazel/_bazel_vorburger/a3cf8df34f0c7a76e9926daaad9ffbf4/execroot/_main/bazel-out/k8-fastbuild/bin/external/rules_jvm_external++maven+maven/v1/https/repo.maven.apache.org/maven2/io/netty/netty-buffer/4.1.110.Final/processed_netty-buffer-4.1.110.Final.jar' with 'io.netty.buffer.AbstractReferenceCountedByteBuf' and from 'META-INF/native-image/io.netty/netty-buffer/native-image.properties' in 'file:///home/vorburger/.cache/bazel/_bazel_vorburger/a3cf8df34f0c7a76e9926daaad9ffbf4/execroot/_main/bazel-out/k8-fastbuild/bin/external/rules_jvm_external++maven+enola_maven/io/netty/netty-buffer/4.1.110.Final/processed_netty-buffer-4.1.110.Final.jar' with 'io.netty.buffer.AbstractReferenceCountedByteBuf'). To see why io.netty.buffer.AbstractReferenceCountedByteBuf got initialized use --trace-class-initialization=io.netty.buffer.AbstractReferenceCountedByteBuf
To see how the classes got initialized, use --trace-class-initialization=org.bouncycastle.asn1.gm.GMObjectIdentifiers,org.bouncycastle.pqc.jcajce.provider.dilithium.DilithiumKeyFactorySpi,org.bouncycastle.math.Primes,org.bouncycastle.crypto.CryptoServicesRegistrar,io.netty.buffer.UnpooledDirectByteBuf,org.slf4j.jul.JDK14LoggerAdapter$1,org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter,org.bouncycastle.asn1.sec.SECObjectIdentifiers,org.bouncycastle.pqc.jcajce.provider.falcon.FalconKeyFactorySpi,org.bouncycastle.util.Properties,io.netty.buffer.UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeHeapByteBuf,io.netty.buffer.ByteBufUtil,org.bouncycastle.internal.asn1.oiw.OIWObjectIdentifiers,org.bouncycastle.pqc.jcajce.provider.kyber.KyberKeyFactorySpi,org.bouncycastle.asn1.x9.X9ObjectIdentifiers,io.netty.buffer.UnpooledUnsafeDirectByteBuf,org.bouncycastle.util.BigIntegers,org.bouncycastle.util.Strings,org.bouncycastle.jce.provider.BouncyCastleProvider,io.netty.buffer.PooledByteBufAllocator,org.slf4j.jul.JDK14LoggerAdapter,io.netty.buffer.UnpooledUnsafeHeapByteBuf,org.bouncycastle.internal.asn1.isara.IsaraObjectIdentifiers,org.bouncycastle.internal.asn1.iso.ISOIECObjectIdentifiers,org.slf4j.helpers.Reporter,org.bouncycastle.internal.asn1.gnu.GNUObjectIdentifiers,org.bouncycastle.util.io.pem.PemObject,org.bouncycastle.asn1.cryptopro.CryptoProObjectIdentifiers,org.bouncycastle.internal.asn1.misc.MiscObjectIdentifiers,org.bouncycastle.asn1.teletrust.TeleTrusTObjectIdentifiers,org.bouncycastle.asn1.DLFactory,org.bouncycastle.asn1.nist.NISTObjectIdentifiers,org.bouncycastle.jce.provider.BouncyCastleProviderConfiguration,org.bouncycastle.pqc.asn1.PQCObjectIdentifiers,org.bouncycastle.asn1.bc.BCObjectIdentifiers,org.bouncycastle.asn1.x509.X509ObjectIdentifiers,io.netty.buffer.UnpooledHeapByteBuf,org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers,org.slf4j.LoggerFactory,io.netty.buffer.UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeDirectByteBuf,io.netty.buffer.AbstractReferenceCountedByteBuf
        at org.graalvm.nativeimage.builder/com.oracle.svm.core.util.UserError.abort(UserError.java:73)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.classinitialization.ProvenSafeClassInitializationSupport.checkDelayedInitialization(ProvenSafeClassInitializationSupport.java:277)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.classinitialization.ClassInitializationFeature.duringAnalysis(ClassInitializationFeature.java:219)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.lambda$runPointsToAnalysis$10(NativeImageGenerator.java:786)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.FeatureHandler.forEachFeature(FeatureHandler.java:90)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.lambda$runPointsToAnalysis$11(NativeImageGenerator.java:786)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.AbstractAnalysisEngine.runAnalysis(AbstractAnalysisEngine.java:181)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:783)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:592)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.run(NativeImageGenerator.java:550)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.buildImage(NativeImageGeneratorRunner.java:539)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.build(NativeImageGeneratorRunner.java:721)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.start(NativeImageGeneratorRunner.java:143)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.main(NativeImageGeneratorRunner.java:98)
Warning: The option '-H:Path=bazel-out/k8-fastbuild/bin/java/dev/enola/cli' is experimental and must be enabled via '-H:+UnlockExperimentalVMOptions' in the future.
Warning: The option '-H:Name=native-bin' is experimental and must be enabled via '-H:+UnlockExperimentalVMOptions' in the future.
Warning: The option '-H:IncludeResources=' is experimental and must be enabled via '-H:+UnlockExperimentalVMOptions' in the future.
Warning: The option '-H:-CheckToolchain' is experimental and must be enabled via '-H:+UnlockExperimentalVMOptions' in the future.
Warning: Please re-evaluate whether any experimental option is required, and either remove or unlock it. The build output lists all active experimental options, including where they come from and possible alternatives. If you think an experimental option should be considered as stable, please file an issue.
========================================================================================================================
GraalVM Native Image: Generating 'native-bin' (executable)...
========================================================================================================================
For detailed information and explanations on the build output, visit:
https://github.com/oracle/graal/blob/master/docs/reference-manual/native-image/BuildOutput.md
------------------------------------------------------------------------------------------------------------------------
[1/8] Initializing...                                                                                    (7.2s @ 0.37GB)
 Java version: 21.0.2+13, vendor version: GraalVM CE 21.0.2+13.1
 Graal compiler: optimization level: b, target machine: x86-64-v3
 C compiler: gcc (null, null, 0.0.0)
 Garbage collector: Serial GC (max heap size: 80% of RAM)
 2 user-specific feature(s):
 - com.oracle.svm.thirdparty.gson.GsonFeature
 - org.eclipse.angus.activation.nativeimage.AngusActivationFeature
------------------------------------------------------------------------------------------------------------------------
 4 experimental option(s) unlocked:
 - '-H:Name' (alternative API option(s): -o native-bin; origin(s): command line)
 - '-H:Path' (origin(s): command line)
 - '-H:-CheckToolchain' (origin(s): command line)
 - '-H:IncludeResources' (origin(s): command line)
------------------------------------------------------------------------------------------------------------------------
Build resources:
 - 10.23GB of memory (16.4% of 62.35GB system memory, determined at start)
 - 12 thread(s) (100.0% of 12 available processor(s), determined at start)
Warning: RecomputeFieldValue.ArrayIndexScale automatic substitution failed. The automatic substitution registration was attempted because a call to jdk.internal.misc.Unsafe.arrayIndexScale(Class) was detected in the static initializer of io.netty.util.internal.shaded.org.jctools.util.UnsafeLongArrayAccess. Detailed failure reason(s): Could not determine the field where the value produced by the call to jdk.internal.misc.Unsafe.arrayIndexScale(Class) for the array index scale 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...  [*]                                                                       (47.5s @ 3.74GB)
   28,741 reachable types   (87.6% of   32,810 total)
   54,120 reachable fields  (62.4% of   86,678 total)
  138,680 reachable methods (56.5% of  245,555 total)
    7,737 types,   242 fields, and 5,013 methods registered for reflection

------------------------------------------------------------------------------------------------------------------------
                        7.5s (13.6% of total time) in 67 GCs | Peak RSS: 5.66GB | CPU load: 9.42
========================================================================================================================
Finished generating 'native-bin' in 55.0s.
Target //java/dev/enola/cli:native failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 56.889s, Critical Path: 56.62s
INFO: 5 processes: 5 internal.
ERROR: Build did NOT complete successfully
ERROR: Build failed. Not running target
@vorburger
Copy link
Member Author

#1156 fixed the problem above, but now I'm hitting:

$ b run //java/dev/enola/cli:native --

INFO: Analyzed target //java/dev/enola/cli:native (0 packages loaded, 1 target configured).
ERROR: /home/vorburger/git/github.com/enola-dev/enola/java/dev/enola/cli/BUILD:21:13: Native Image [executable] (fastbuild) //java/dev/enola/cli:native failed: (Exit 1): native-image failed: error executing NativeImage command (from target //java/dev/enola/cli:native) external/rules_graalvm++graalvm+graalvm/bin/native-image @bazel-out/k8-fastbuild/bin/java/dev/enola/cli/native-bin-0.params '-EZERO_AR_DATE=1' '-EPATH=/usr/bin:/bin'

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
Error: Classes that should be initialized at run time got initialized during image building:
 org.bouncycastle.asn1.x509.X509ObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.asn1.x509.X509ObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.asn1.x509.X509ObjectIdentifiers
org.slf4j.helpers.Reporter was unintentionally initialized at build time. To see why org.slf4j.helpers.Reporter got initialized use --trace-class-initialization=org.slf4j.helpers.Reporter
io.netty.buffer.UnpooledHeapByteBuf the class was requested to be initialized at run time (subtype of io.netty.buffer.AbstractReferenceCountedByteBuf). To see why io.netty.buffer.UnpooledHeapByteBuf got initialized use --trace-class-initialization=io.netty.buffer.UnpooledHeapByteBuf
org.bouncycastle.asn1.teletrust.TeleTrusTObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.asn1.teletrust.TeleTrusTObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.asn1.teletrust.TeleTrusTObjectIdentifiers
org.bouncycastle.util.io.pem.PemObject was unintentionally initialized at build time. To see why org.bouncycastle.util.io.pem.PemObject got initialized use --trace-class-initialization=org.bouncycastle.util.io.pem.PemObject
org.bouncycastle.jce.provider.BouncyCastleProviderConfiguration was unintentionally initialized at build time. To see why org.bouncycastle.jce.provider.BouncyCastleProviderConfiguration got initialized use --trace-class-initialization=org.bouncycastle.jce.provider.BouncyCastleProviderConfiguration
org.bouncycastle.asn1.gm.GMObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.asn1.gm.GMObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.asn1.gm.GMObjectIdentifiers
org.bouncycastle.pqc.jcajce.provider.kyber.KyberKeyFactorySpi was unintentionally initialized at build time. To see why org.bouncycastle.pqc.jcajce.provider.kyber.KyberKeyFactorySpi got initialized use --trace-class-initialization=org.bouncycastle.pqc.jcajce.provider.kyber.KyberKeyFactorySpi
org.bouncycastle.asn1.sec.SECObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.asn1.sec.SECObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.asn1.sec.SECObjectIdentifiers
io.netty.buffer.UnpooledDirectByteBuf the class was requested to be initialized at run time (subtype of io.netty.buffer.AbstractReferenceCountedByteBuf). To see why io.netty.buffer.UnpooledDirectByteBuf got initialized use --trace-class-initialization=io.netty.buffer.UnpooledDirectByteBuf
org.bouncycastle.asn1.bc.BCObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.asn1.bc.BCObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.asn1.bc.BCObjectIdentifiers
org.bouncycastle.pqc.jcajce.provider.falcon.FalconKeyFactorySpi was unintentionally initialized at build time. To see why org.bouncycastle.pqc.jcajce.provider.falcon.FalconKeyFactorySpi got initialized use --trace-class-initialization=org.bouncycastle.pqc.jcajce.provider.falcon.FalconKeyFactorySpi
org.bouncycastle.asn1.x9.X9ObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.asn1.x9.X9ObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.asn1.x9.X9ObjectIdentifiers
org.bouncycastle.math.Primes was unintentionally initialized at build time. To see why org.bouncycastle.math.Primes got initialized use --trace-class-initialization=org.bouncycastle.math.Primes
io.netty.buffer.AbstractReferenceCountedByteBuf the class was requested to be initialized at run time (from 'META-INF/native-image/io.netty/netty-buffer/native-image.properties' in 'file:///home/vorburger/.cache/bazel/_bazel_vorburger/a3cf8df34f0c7a76e9926daaad9ffbf4/execroot/_main/bazel-out/k8-fastbuild/bin/external/rules_jvm_external++maven+maven/v1/https/repo.maven.apache.org/maven2/io/netty/netty-buffer/4.1.110.Final/processed_netty-buffer-4.1.110.Final.jar' with 'io.netty.buffer.AbstractReferenceCountedByteBuf' and from 'META-INF/native-image/io.netty/netty-buffer/native-image.properties' in 'file:///home/vorburger/.cache/bazel/_bazel_vorburger/a3cf8df34f0c7a76e9926daaad9ffbf4/execroot/_main/bazel-out/k8-fastbuild/bin/external/rules_jvm_external++maven+enola_maven/io/netty/netty-buffer/4.1.110.Final/processed_netty-buffer-4.1.110.Final.jar' with 'io.netty.buffer.AbstractReferenceCountedByteBuf'). To see why io.netty.buffer.AbstractReferenceCountedByteBuf got initialized use --trace-class-initialization=io.netty.buffer.AbstractReferenceCountedByteBuf
org.bouncycastle.util.Strings was unintentionally initialized at build time. To see why org.bouncycastle.util.Strings got initialized use --trace-class-initialization=org.bouncycastle.util.Strings
org.bouncycastle.util.Properties was unintentionally initialized at build time. To see why org.bouncycastle.util.Properties got initialized use --trace-class-initialization=org.bouncycastle.util.Properties
io.netty.buffer.UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeHeapByteBuf the class was requested to be initialized at run time (subtype of io.netty.buffer.AbstractReferenceCountedByteBuf). To see why io.netty.buffer.UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeHeapByteBuf got initialized use --trace-class-initialization=io.netty.buffer.UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeHeapByteBuf
org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers
org.bouncycastle.util.BigIntegers was unintentionally initialized at build time. To see why org.bouncycastle.util.BigIntegers got initialized use --trace-class-initialization=org.bouncycastle.util.BigIntegers
org.bouncycastle.jce.provider.BouncyCastleProvider was unintentionally initialized at build time. To see why org.bouncycastle.jce.provider.BouncyCastleProvider got initialized use --trace-class-initialization=org.bouncycastle.jce.provider.BouncyCastleProvider
org.slf4j.jul.JDK14LoggerAdapter was unintentionally initialized at build time. To see why org.slf4j.jul.JDK14LoggerAdapter got initialized use --trace-class-initialization=org.slf4j.jul.JDK14LoggerAdapter
io.netty.buffer.ByteBufUtil the class was requested to be initialized at run time (from 'META-INF/native-image/io.netty/netty-buffer/native-image.properties' in 'file:///home/vorburger/.cache/bazel/_bazel_vorburger/a3cf8df34f0c7a76e9926daaad9ffbf4/execroot/_main/bazel-out/k8-fastbuild/bin/external/rules_jvm_external++maven+maven/v1/https/repo.maven.apache.org/maven2/io/netty/netty-buffer/4.1.110.Final/processed_netty-buffer-4.1.110.Final.jar' with 'io.netty.buffer.ByteBufUtil' and from 'META-INF/native-image/io.netty/netty-buffer/native-image.properties' in 'file:///home/vorburger/.cache/bazel/_bazel_vorburger/a3cf8df34f0c7a76e9926daaad9ffbf4/execroot/_main/bazel-out/k8-fastbuild/bin/external/rules_jvm_external++maven+enola_maven/io/netty/netty-buffer/4.1.110.Final/processed_netty-buffer-4.1.110.Final.jar' with 'io.netty.buffer.ByteBufUtil'). To see why io.netty.buffer.ByteBufUtil got initialized use --trace-class-initialization=io.netty.buffer.ByteBufUtil
org.slf4j.LoggerFactory was unintentionally initialized at build time. To see why org.slf4j.LoggerFactory got initialized use --trace-class-initialization=org.slf4j.LoggerFactory
io.netty.buffer.UnpooledUnsafeDirectByteBuf the class was requested to be initialized at run time (subtype of io.netty.buffer.AbstractReferenceCountedByteBuf). To see why io.netty.buffer.UnpooledUnsafeDirectByteBuf got initialized use --trace-class-initialization=io.netty.buffer.UnpooledUnsafeDirectByteBuf
io.netty.buffer.UnpooledUnsafeHeapByteBuf the class was requested to be initialized at run time (subtype of io.netty.buffer.AbstractReferenceCountedByteBuf). To see why io.netty.buffer.UnpooledUnsafeHeapByteBuf got initialized use --trace-class-initialization=io.netty.buffer.UnpooledUnsafeHeapByteBuf
org.bouncycastle.asn1.cryptopro.CryptoProObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.asn1.cryptopro.CryptoProObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.asn1.cryptopro.CryptoProObjectIdentifiers
org.bouncycastle.internal.asn1.oiw.OIWObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.internal.asn1.oiw.OIWObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.internal.asn1.oiw.OIWObjectIdentifiers
io.netty.buffer.UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeDirectByteBuf the class was requested to be initialized at run time (subtype of io.netty.buffer.AbstractReferenceCountedByteBuf). To see why io.netty.buffer.UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeDirectByteBuf got initialized use --trace-class-initialization=io.netty.buffer.UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeDirectByteBuf
org.bouncycastle.internal.asn1.isara.IsaraObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.internal.asn1.isara.IsaraObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.internal.asn1.isara.IsaraObjectIdentifiers
org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter was unintentionally initialized at build time. To see why org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter got initialized use --trace-class-initialization=org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter
org.bouncycastle.pqc.jcajce.provider.dilithium.DilithiumKeyFactorySpi was unintentionally initialized at build time. To see why org.bouncycastle.pqc.jcajce.provider.dilithium.DilithiumKeyFactorySpi got initialized use --trace-class-initialization=org.bouncycastle.pqc.jcajce.provider.dilithium.DilithiumKeyFactorySpi
org.bouncycastle.pqc.asn1.PQCObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.pqc.asn1.PQCObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.pqc.asn1.PQCObjectIdentifiers
io.netty.buffer.PooledByteBufAllocator the class was requested to be initialized at run time (from 'META-INF/native-image/io.netty/netty-buffer/native-image.properties' in 'file:///home/vorburger/.cache/bazel/_bazel_vorburger/a3cf8df34f0c7a76e9926daaad9ffbf4/execroot/_main/bazel-out/k8-fastbuild/bin/external/rules_jvm_external++maven+maven/v1/https/repo.maven.apache.org/maven2/io/netty/netty-buffer/4.1.110.Final/processed_netty-buffer-4.1.110.Final.jar' with 'io.netty.buffer.PooledByteBufAllocator' and from 'META-INF/native-image/io.netty/netty-buffer/native-image.properties' in 'file:///home/vorburger/.cache/bazel/_bazel_vorburger/a3cf8df34f0c7a76e9926daaad9ffbf4/execroot/_main/bazel-out/k8-fastbuild/bin/external/rules_jvm_external++maven+enola_maven/io/netty/netty-buffer/4.1.110.Final/processed_netty-buffer-4.1.110.Final.jar' with 'io.netty.buffer.PooledByteBufAllocator'). To see why io.netty.buffer.PooledByteBufAllocator got initialized use --trace-class-initialization=io.netty.buffer.PooledByteBufAllocator
org.bouncycastle.crypto.CryptoServicesRegistrar was unintentionally initialized at build time. To see why org.bouncycastle.crypto.CryptoServicesRegistrar got initialized use --trace-class-initialization=org.bouncycastle.crypto.CryptoServicesRegistrar
org.bouncycastle.asn1.DLFactory was unintentionally initialized at build time. To see why org.bouncycastle.asn1.DLFactory got initialized use --trace-class-initialization=org.bouncycastle.asn1.DLFactory
org.bouncycastle.internal.asn1.gnu.GNUObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.internal.asn1.gnu.GNUObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.internal.asn1.gnu.GNUObjectIdentifiers
org.bouncycastle.asn1.nist.NISTObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.asn1.nist.NISTObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.asn1.nist.NISTObjectIdentifiers
org.bouncycastle.internal.asn1.misc.MiscObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.internal.asn1.misc.MiscObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.internal.asn1.misc.MiscObjectIdentifiers
org.bouncycastle.internal.asn1.iso.ISOIECObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.internal.asn1.iso.ISOIECObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.internal.asn1.iso.ISOIECObjectIdentifiers
To see how the classes got initialized, use --trace-class-initialization=org.bouncycastle.asn1.x509.X509ObjectIdentifiers,org.slf4j.helpers.Reporter,io.netty.buffer.UnpooledHeapByteBuf,org.bouncycastle.asn1.teletrust.TeleTrusTObjectIdentifiers,org.bouncycastle.util.io.pem.PemObject,org.bouncycastle.jce.provider.BouncyCastleProviderConfiguration,org.bouncycastle.asn1.gm.GMObjectIdentifiers,org.bouncycastle.pqc.jcajce.provider.kyber.KyberKeyFactorySpi,org.bouncycastle.asn1.sec.SECObjectIdentifiers,io.netty.buffer.UnpooledDirectByteBuf,org.bouncycastle.asn1.bc.BCObjectIdentifiers,org.bouncycastle.pqc.jcajce.provider.falcon.FalconKeyFactorySpi,org.bouncycastle.asn1.x9.X9ObjectIdentifiers,org.bouncycastle.math.Primes,io.netty.buffer.AbstractReferenceCountedByteBuf,org.bouncycastle.util.Strings,org.bouncycastle.util.Properties,io.netty.buffer.UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeHeapByteBuf,org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers,org.bouncycastle.util.BigIntegers,org.bouncycastle.jce.provider.BouncyCastleProvider,org.slf4j.jul.JDK14LoggerAdapter,io.netty.buffer.ByteBufUtil,org.slf4j.LoggerFactory,io.netty.buffer.UnpooledUnsafeDirectByteBuf,io.netty.buffer.UnpooledUnsafeHeapByteBuf,org.bouncycastle.asn1.cryptopro.CryptoProObjectIdentifiers,org.bouncycastle.internal.asn1.oiw.OIWObjectIdentifiers,io.netty.buffer.UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeDirectByteBuf,org.bouncycastle.internal.asn1.isara.IsaraObjectIdentifiers,org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter,org.bouncycastle.pqc.jcajce.provider.dilithium.DilithiumKeyFactorySpi,org.bouncycastle.pqc.asn1.PQCObjectIdentifiers,io.netty.buffer.PooledByteBufAllocator,org.bouncycastle.crypto.CryptoServicesRegistrar,org.bouncycastle.asn1.DLFactory,org.bouncycastle.internal.asn1.gnu.GNUObjectIdentifiers,org.bouncycastle.asn1.nist.NISTObjectIdentifiers,org.bouncycastle.internal.asn1.misc.MiscObjectIdentifiers,org.bouncycastle.internal.asn1.iso.ISOIECObjectIdentifiers
com.oracle.svm.core.util.UserError$UserException: Classes that should be initialized at run time got initialized during image building:
 org.bouncycastle.asn1.x509.X509ObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.asn1.x509.X509ObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.asn1.x509.X509ObjectIdentifiers
org.slf4j.helpers.Reporter was unintentionally initialized at build time. To see why org.slf4j.helpers.Reporter got initialized use --trace-class-initialization=org.slf4j.helpers.Reporter
io.netty.buffer.UnpooledHeapByteBuf the class was requested to be initialized at run time (subtype of io.netty.buffer.AbstractReferenceCountedByteBuf). To see why io.netty.buffer.UnpooledHeapByteBuf got initialized use --trace-class-initialization=io.netty.buffer.UnpooledHeapByteBuf
org.bouncycastle.asn1.teletrust.TeleTrusTObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.asn1.teletrust.TeleTrusTObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.asn1.teletrust.TeleTrusTObjectIdentifiers
org.bouncycastle.util.io.pem.PemObject was unintentionally initialized at build time. To see why org.bouncycastle.util.io.pem.PemObject got initialized use --trace-class-initialization=org.bouncycastle.util.io.pem.PemObject
org.bouncycastle.jce.provider.BouncyCastleProviderConfiguration was unintentionally initialized at build time. To see why org.bouncycastle.jce.provider.BouncyCastleProviderConfiguration got initialized use --trace-class-initialization=org.bouncycastle.jce.provider.BouncyCastleProviderConfiguration
org.bouncycastle.asn1.gm.GMObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.asn1.gm.GMObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.asn1.gm.GMObjectIdentifiers
org.bouncycastle.pqc.jcajce.provider.kyber.KyberKeyFactorySpi was unintentionally initialized at build time. To see why org.bouncycastle.pqc.jcajce.provider.kyber.KyberKeyFactorySpi got initialized use --trace-class-initialization=org.bouncycastle.pqc.jcajce.provider.kyber.KyberKeyFactorySpi
org.bouncycastle.asn1.sec.SECObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.asn1.sec.SECObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.asn1.sec.SECObjectIdentifiers
io.netty.buffer.UnpooledDirectByteBuf the class was requested to be initialized at run time (subtype of io.netty.buffer.AbstractReferenceCountedByteBuf). To see why io.netty.buffer.UnpooledDirectByteBuf got initialized use --trace-class-initialization=io.netty.buffer.UnpooledDirectByteBuf
org.bouncycastle.asn1.bc.BCObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.asn1.bc.BCObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.asn1.bc.BCObjectIdentifiers
org.bouncycastle.pqc.jcajce.provider.falcon.FalconKeyFactorySpi was unintentionally initialized at build time. To see why org.bouncycastle.pqc.jcajce.provider.falcon.FalconKeyFactorySpi got initialized use --trace-class-initialization=org.bouncycastle.pqc.jcajce.provider.falcon.FalconKeyFactorySpi
org.bouncycastle.asn1.x9.X9ObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.asn1.x9.X9ObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.asn1.x9.X9ObjectIdentifiers
org.bouncycastle.math.Primes was unintentionally initialized at build time. To see why org.bouncycastle.math.Primes got initialized use --trace-class-initialization=org.bouncycastle.math.Primes
io.netty.buffer.AbstractReferenceCountedByteBuf the class was requested to be initialized at run time (from 'META-INF/native-image/io.netty/netty-buffer/native-image.properties' in 'file:///home/vorburger/.cache/bazel/_bazel_vorburger/a3cf8df34f0c7a76e9926daaad9ffbf4/execroot/_main/bazel-out/k8-fastbuild/bin/external/rules_jvm_external++maven+maven/v1/https/repo.maven.apache.org/maven2/io/netty/netty-buffer/4.1.110.Final/processed_netty-buffer-4.1.110.Final.jar' with 'io.netty.buffer.AbstractReferenceCountedByteBuf' and from 'META-INF/native-image/io.netty/netty-buffer/native-image.properties' in 'file:///home/vorburger/.cache/bazel/_bazel_vorburger/a3cf8df34f0c7a76e9926daaad9ffbf4/execroot/_main/bazel-out/k8-fastbuild/bin/external/rules_jvm_external++maven+enola_maven/io/netty/netty-buffer/4.1.110.Final/processed_netty-buffer-4.1.110.Final.jar' with 'io.netty.buffer.AbstractReferenceCountedByteBuf'). To see why io.netty.buffer.AbstractReferenceCountedByteBuf got initialized use --trace-class-initialization=io.netty.buffer.AbstractReferenceCountedByteBuf
org.bouncycastle.util.Strings was unintentionally initialized at build time. To see why org.bouncycastle.util.Strings got initialized use --trace-class-initialization=org.bouncycastle.util.Strings
org.bouncycastle.util.Properties was unintentionally initialized at build time. To see why org.bouncycastle.util.Properties got initialized use --trace-class-initialization=org.bouncycastle.util.Properties
io.netty.buffer.UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeHeapByteBuf the class was requested to be initialized at run time (subtype of io.netty.buffer.AbstractReferenceCountedByteBuf). To see why io.netty.buffer.UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeHeapByteBuf got initialized use --trace-class-initialization=io.netty.buffer.UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeHeapByteBuf
org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers
org.bouncycastle.util.BigIntegers was unintentionally initialized at build time. To see why org.bouncycastle.util.BigIntegers got initialized use --trace-class-initialization=org.bouncycastle.util.BigIntegers
org.bouncycastle.jce.provider.BouncyCastleProvider was unintentionally initialized at build time. To see why org.bouncycastle.jce.provider.BouncyCastleProvider got initialized use --trace-class-initialization=org.bouncycastle.jce.provider.BouncyCastleProvider
org.slf4j.jul.JDK14LoggerAdapter was unintentionally initialized at build time. To see why org.slf4j.jul.JDK14LoggerAdapter got initialized use --trace-class-initialization=org.slf4j.jul.JDK14LoggerAdapter
io.netty.buffer.ByteBufUtil the class was requested to be initialized at run time (from 'META-INF/native-image/io.netty/netty-buffer/native-image.properties' in 'file:///home/vorburger/.cache/bazel/_bazel_vorburger/a3cf8df34f0c7a76e9926daaad9ffbf4/execroot/_main/bazel-out/k8-fastbuild/bin/external/rules_jvm_external++maven+maven/v1/https/repo.maven.apache.org/maven2/io/netty/netty-buffer/4.1.110.Final/processed_netty-buffer-4.1.110.Final.jar' with 'io.netty.buffer.ByteBufUtil' and from 'META-INF/native-image/io.netty/netty-buffer/native-image.properties' in 'file:///home/vorburger/.cache/bazel/_bazel_vorburger/a3cf8df34f0c7a76e9926daaad9ffbf4/execroot/_main/bazel-out/k8-fastbuild/bin/external/rules_jvm_external++maven+enola_maven/io/netty/netty-buffer/4.1.110.Final/processed_netty-buffer-4.1.110.Final.jar' with 'io.netty.buffer.ByteBufUtil'). To see why io.netty.buffer.ByteBufUtil got initialized use --trace-class-initialization=io.netty.buffer.ByteBufUtil
org.slf4j.LoggerFactory was unintentionally initialized at build time. To see why org.slf4j.LoggerFactory got initialized use --trace-class-initialization=org.slf4j.LoggerFactory
io.netty.buffer.UnpooledUnsafeDirectByteBuf the class was requested to be initialized at run time (subtype of io.netty.buffer.AbstractReferenceCountedByteBuf). To see why io.netty.buffer.UnpooledUnsafeDirectByteBuf got initialized use --trace-class-initialization=io.netty.buffer.UnpooledUnsafeDirectByteBuf
io.netty.buffer.UnpooledUnsafeHeapByteBuf the class was requested to be initialized at run time (subtype of io.netty.buffer.AbstractReferenceCountedByteBuf). To see why io.netty.buffer.UnpooledUnsafeHeapByteBuf got initialized use --trace-class-initialization=io.netty.buffer.UnpooledUnsafeHeapByteBuf
org.bouncycastle.asn1.cryptopro.CryptoProObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.asn1.cryptopro.CryptoProObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.asn1.cryptopro.CryptoProObjectIdentifiers
org.bouncycastle.internal.asn1.oiw.OIWObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.internal.asn1.oiw.OIWObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.internal.asn1.oiw.OIWObjectIdentifiers
io.netty.buffer.UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeDirectByteBuf the class was requested to be initialized at run time (subtype of io.netty.buffer.AbstractReferenceCountedByteBuf). To see why io.netty.buffer.UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeDirectByteBuf got initialized use --trace-class-initialization=io.netty.buffer.UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeDirectByteBuf
org.bouncycastle.internal.asn1.isara.IsaraObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.internal.asn1.isara.IsaraObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.internal.asn1.isara.IsaraObjectIdentifiers
org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter was unintentionally initialized at build time. To see why org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter got initialized use --trace-class-initialization=org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter
org.bouncycastle.pqc.jcajce.provider.dilithium.DilithiumKeyFactorySpi was unintentionally initialized at build time. To see why org.bouncycastle.pqc.jcajce.provider.dilithium.DilithiumKeyFactorySpi got initialized use --trace-class-initialization=org.bouncycastle.pqc.jcajce.provider.dilithium.DilithiumKeyFactorySpi
org.bouncycastle.pqc.asn1.PQCObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.pqc.asn1.PQCObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.pqc.asn1.PQCObjectIdentifiers
io.netty.buffer.PooledByteBufAllocator the class was requested to be initialized at run time (from 'META-INF/native-image/io.netty/netty-buffer/native-image.properties' in 'file:///home/vorburger/.cache/bazel/_bazel_vorburger/a3cf8df34f0c7a76e9926daaad9ffbf4/execroot/_main/bazel-out/k8-fastbuild/bin/external/rules_jvm_external++maven+maven/v1/https/repo.maven.apache.org/maven2/io/netty/netty-buffer/4.1.110.Final/processed_netty-buffer-4.1.110.Final.jar' with 'io.netty.buffer.PooledByteBufAllocator' and from 'META-INF/native-image/io.netty/netty-buffer/native-image.properties' in 'file:///home/vorburger/.cache/bazel/_bazel_vorburger/a3cf8df34f0c7a76e9926daaad9ffbf4/execroot/_main/bazel-out/k8-fastbuild/bin/external/rules_jvm_external++maven+enola_maven/io/netty/netty-buffer/4.1.110.Final/processed_netty-buffer-4.1.110.Final.jar' with 'io.netty.buffer.PooledByteBufAllocator'). To see why io.netty.buffer.PooledByteBufAllocator got initialized use --trace-class-initialization=io.netty.buffer.PooledByteBufAllocator
org.bouncycastle.crypto.CryptoServicesRegistrar was unintentionally initialized at build time. To see why org.bouncycastle.crypto.CryptoServicesRegistrar got initialized use --trace-class-initialization=org.bouncycastle.crypto.CryptoServicesRegistrar
org.bouncycastle.asn1.DLFactory was unintentionally initialized at build time. To see why org.bouncycastle.asn1.DLFactory got initialized use --trace-class-initialization=org.bouncycastle.asn1.DLFactory
org.bouncycastle.internal.asn1.gnu.GNUObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.internal.asn1.gnu.GNUObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.internal.asn1.gnu.GNUObjectIdentifiers
org.bouncycastle.asn1.nist.NISTObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.asn1.nist.NISTObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.asn1.nist.NISTObjectIdentifiers
org.bouncycastle.internal.asn1.misc.MiscObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.internal.asn1.misc.MiscObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.internal.asn1.misc.MiscObjectIdentifiers
org.bouncycastle.internal.asn1.iso.ISOIECObjectIdentifiers was unintentionally initialized at build time. To see why org.bouncycastle.internal.asn1.iso.ISOIECObjectIdentifiers got initialized use --trace-class-initialization=org.bouncycastle.internal.asn1.iso.ISOIECObjectIdentifiers
To see how the classes got initialized, use --trace-class-initialization=org.bouncycastle.asn1.x509.X509ObjectIdentifiers,org.slf4j.helpers.Reporter,io.netty.buffer.UnpooledHeapByteBuf,org.bouncycastle.asn1.teletrust.TeleTrusTObjectIdentifiers,org.bouncycastle.util.io.pem.PemObject,org.bouncycastle.jce.provider.BouncyCastleProviderConfiguration,org.bouncycastle.asn1.gm.GMObjectIdentifiers,org.bouncycastle.pqc.jcajce.provider.kyber.KyberKeyFactorySpi,org.bouncycastle.asn1.sec.SECObjectIdentifiers,io.netty.buffer.UnpooledDirectByteBuf,org.bouncycastle.asn1.bc.BCObjectIdentifiers,org.bouncycastle.pqc.jcajce.provider.falcon.FalconKeyFactorySpi,org.bouncycastle.asn1.x9.X9ObjectIdentifiers,org.bouncycastle.math.Primes,io.netty.buffer.AbstractReferenceCountedByteBuf,org.bouncycastle.util.Strings,org.bouncycastle.util.Properties,io.netty.buffer.UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeHeapByteBuf,org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers,org.bouncycastle.util.BigIntegers,org.bouncycastle.jce.provider.BouncyCastleProvider,org.slf4j.jul.JDK14LoggerAdapter,io.netty.buffer.ByteBufUtil,org.slf4j.LoggerFactory,io.netty.buffer.UnpooledUnsafeDirectByteBuf,io.netty.buffer.UnpooledUnsafeHeapByteBuf,org.bouncycastle.asn1.cryptopro.CryptoProObjectIdentifiers,org.bouncycastle.internal.asn1.oiw.OIWObjectIdentifiers,io.netty.buffer.UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeDirectByteBuf,org.bouncycastle.internal.asn1.isara.IsaraObjectIdentifiers,org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter,org.bouncycastle.pqc.jcajce.provider.dilithium.DilithiumKeyFactorySpi,org.bouncycastle.pqc.asn1.PQCObjectIdentifiers,io.netty.buffer.PooledByteBufAllocator,org.bouncycastle.crypto.CryptoServicesRegistrar,org.bouncycastle.asn1.DLFactory,org.bouncycastle.internal.asn1.gnu.GNUObjectIdentifiers,org.bouncycastle.asn1.nist.NISTObjectIdentifiers,org.bouncycastle.internal.asn1.misc.MiscObjectIdentifiers,org.bouncycastle.internal.asn1.iso.ISOIECObjectIdentifiers
        at org.graalvm.nativeimage.builder/com.oracle.svm.core.util.UserError.abort(UserError.java:73)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.classinitialization.ProvenSafeClassInitializationSupport.checkDelayedInitialization(ProvenSafeClassInitializationSupport.java:277)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.classinitialization.ClassInitializationFeature.duringAnalysis(ClassInitializationFeature.java:219)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.lambda$runPointsToAnalysis$10(NativeImageGenerator.java:786)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.FeatureHandler.forEachFeature(FeatureHandler.java:90)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.lambda$runPointsToAnalysis$11(NativeImageGenerator.java:786)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.AbstractAnalysisEngine.runAnalysis(AbstractAnalysisEngine.java:181)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:783)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:592)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.run(NativeImageGenerator.java:550)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.buildImage(NativeImageGeneratorRunner.java:539)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.build(NativeImageGeneratorRunner.java:721)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.start(NativeImageGeneratorRunner.java:143)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.main(NativeImageGeneratorRunner.java:98)
Warning: The option '-H:Path=bazel-out/k8-fastbuild/bin/java/dev/enola/cli' is experimental and must be enabled via '-H:+UnlockExperimentalVMOptions' in the future.
Warning: The option '-H:Name=native-bin' is experimental and must be enabled via '-H:+UnlockExperimentalVMOptions' in the future.
Warning: The option '-H:IncludeResources=' is experimental and must be enabled via '-H:+UnlockExperimentalVMOptions' in the future.
Warning: The option '-H:-CheckToolchain' is experimental and must be enabled via '-H:+UnlockExperimentalVMOptions' in the future.
Warning: Please re-evaluate whether any experimental option is required, and either remove or unlock it. The build output lists all active experimental options, including where they come from and possible alternatives. If you think an experimental option should be considered as stable, please file an issue.
========================================================================================================================
GraalVM Native Image: Generating 'native-bin' (executable)...
========================================================================================================================
For detailed information and explanations on the build output, visit:
https://github.com/oracle/graal/blob/master/docs/reference-manual/native-image/BuildOutput.md
------------------------------------------------------------------------------------------------------------------------
[1/8] Initializing...                                                                                    (6.9s @ 0.35GB)
 Java version: 21.0.2+13, vendor version: GraalVM CE 21.0.2+13.1
 Graal compiler: optimization level: b, target machine: x86-64-v3
 C compiler: gcc (null, null, 0.0.0)
 Garbage collector: Serial GC (max heap size: 80% of RAM)
 2 user-specific feature(s):
 - com.oracle.svm.thirdparty.gson.GsonFeature
 - org.eclipse.angus.activation.nativeimage.AngusActivationFeature
------------------------------------------------------------------------------------------------------------------------
 4 experimental option(s) unlocked:
 - '-H:Name' (alternative API option(s): -o native-bin; origin(s): command line)
 - '-H:Path' (origin(s): command line)
 - '-H:-CheckToolchain' (origin(s): command line)
 - '-H:IncludeResources' (origin(s): command line)
------------------------------------------------------------------------------------------------------------------------
Build resources:
 - 10.18GB of memory (16.3% of 62.35GB system memory, determined at start)
 - 12 thread(s) (100.0% of 12 available processor(s), determined at start)
Warning: RecomputeFieldValue.ArrayIndexScale automatic substitution failed. The automatic substitution registration was attempted because a call to jdk.internal.misc.Unsafe.arrayIndexScale(Class) was detected in the static initializer of io.netty.util.internal.shaded.org.jctools.util.UnsafeLongArrayAccess. Detailed failure reason(s): Could not determine the field where the value produced by the call to jdk.internal.misc.Unsafe.arrayIndexScale(Class) for the array index scale 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...  [*]                                                                       (46.4s @ 3.75GB)
   28,741 reachable types   (87.6% of   32,809 total)
   54,131 reachable fields  (62.5% of   86,663 total)
  138,682 reachable methods (56.5% of  245,563 total)
    7,737 types,   242 fields, and 5,015 methods registered for reflection

------------------------------------------------------------------------------------------------------------------------
                        6.0s (11.1% of total time) in 62 GCs | Peak RSS: 5.57GB | CPU load: 9.63
========================================================================================================================
Finished generating 'native-bin' in 53.6s.
Target //java/dev/enola/cli:native failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 55.392s, Critical Path: 55.23s
INFO: 2 processes: 3 action cache hit, 2 internal.
ERROR: Build did NOT complete successfully
ERROR: Build failed. Not running target

https://www.graalvm.org/latest/reference-manual/native-image/metadata/ ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant