Skip to content

Intermittent quarkus build failures on windows #285

@jpraet

Description

@jpraet

On my windows workstation, the quarkus build fails quite regularly with the error below:

[INFO] --- quarkus:3.30.5:build (default) @ belgif-rest-problem-quarkus-it ---
[WARNING] [io.quarkus.deployment.index] Reindexing D:\projects\rest-problem-java\belgif-rest-problem\target\belgif-rest-problem-latest.jar, at least Jandex 3.0 must be used to index an application dependency (index version is 10)
[WARNING] [io.quarkus.arc.processor.BeanArchives] Failed to index tools.jackson.databind.module.SimpleModule: Class does not exist in ClassLoader QuarkusClassLoader:Deployment Class Loader: PROD for belgif-rest-problem-quarkus-it-latest@45679a90
[INFO] [io.quarkus.arc.processor.IndexClassLookupUtils] Class for name: tools.jackson.databind.module.SimpleModule was not found in Jandex index. Please ensure the class is part of the index.
[WARNING] [io.quarkus.arc.processor.BeanArchives] Failed to index tools.jackson.databind.deser.ValueDeserializerModifier: Class does not exist in ClassLoader QuarkusClassLoader:Deployment Class Loader: PROD for belgif-rest-problem-quarkus-it-latest@45679a90
[INFO] [io.quarkus.arc.processor.IndexClassLookupUtils] Class for name: tools.jackson.databind.deser.ValueDeserializerModifier was not found in Jandex index. Please ensure the class is part of the index.
[WARNING] [io.quarkus.arc.processor.BeanArchives] Failed to index tools.jackson.databind.type.TypeModifier: Class does not exist in ClassLoader QuarkusClassLoader:Deployment Class Loader: PROD for belgif-rest-problem-quarkus-it-latest@45679a90
[INFO] [io.quarkus.arc.processor.IndexClassLookupUtils] Class for name: tools.jackson.databind.type.TypeModifier was not found in Jandex index. Please ensure the class is part of the index.
[INFO] [io.quarkus.deployment.pkg.jar.NativeImageSourceJarBuilder] Building native image source jar: D:\projects\rest-problem-java\belgif-rest-problem-it\belgif-rest-problem-quarkus-it\target\belgif-rest-problem-quarkus-it-latest-native-image-source-jar\belgif-rest-problem-quarkus-it-latest-runner.jar
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Building native image from D:\projects\rest-problem-java\belgif-rest-problem-it\belgif-rest-problem-quarkus-it\target\belgif-rest-problem-quarkus-it-latest-native-image-source-jar\belgif-rest-problem-quarkus-it-latest-runner.jar
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildContainerRunner] Using docker to run the native image builder
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildContainerRunner] Pulling builder image 'quay.io/quarkus/ubi9-quarkus-mandrel-builder-image:jdk-21'
jdk-21: Pulling from quarkus/ubi9-quarkus-mandrel-builder-image
Digest: sha256:0413fbd6f68c69c835cd00cab2b97e46f20811e07b0ba4ff6e99a42f007baf80
Status: Image is up to date for quay.io/quarkus/ubi9-quarkus-mandrel-builder-image:jdk-21
quay.io/quarkus/ubi9-quarkus-mandrel-builder-image:jdk-21
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Running Quarkus native-image plugin on MANDREL 23.1.9.0 JDK 21.0.9+10-LTS
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildRunner] docker run --env LANG=C --rm -v /d/projects/rest-problem-java/belgif-rest-problem-it/belgif-rest-problem-quarkus-it/target/belgif-rest-problem-quarkus-it-latest-native-image-source-jar:/project:z --name build-native-EZLcR quay.io/quarkus/ubi9-quarkus-mandrel-builder-image:jdk-21 -J-Dsun.nio.ch.maxUpdateArraySize=100 -J-Djava.util.logging.manager=org.jboss.logmanager.LogManager -J-Dlogging.initial-configurator.min-level=500 -J-Duser.language=en -J-Duser.country=US -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 -H:+UnlockExperimentalVMOptions -H:IncludeLocales=nl-BE,en,de-BE,fr-BE -H:-UnlockExperimentalVMOptions -J-Dfile.encoding=UTF-8 -J--add-exports=org.graalvm.nativeimage.builder/com.oracle.svm.core.jdk=ALL-UNNAMED --features=io.quarkus.hibernate.validator.runtime.DisableLoggingFeature,io.quarkus.runner.Feature,io.quarkus.runtime.graal.DisableLoggingFeature,io.quarkus.runtime.graal.JVMChecksFeature,io.quarkus.runtime.graal.SkipConsoleServiceProvidersFeature -J--add-exports=java.security.jgss/sun.security.krb5=ALL-UNNAMED -J--add-exports=java.security.jgss/sun.security.jgss=ALL-UNNAMED -J--add-opens=java.base/java.text=ALL-UNNAMED -J--add-opens=java.base/java.io=ALL-UNNAMED -J--add-opens=java.base/java.lang.invoke=ALL-UNNAMED -J--add-opens=java.base/java.util=ALL-UNNAMED -H:+UnlockExperimentalVMOptions -H:BuildOutputJSONFile=belgif-rest-problem-quarkus-it-latest-runner-build-output-stats.json -H:-UnlockExperimentalVMOptions -H:+UnlockExperimentalVMOptions -H:+GenerateBuildArtifactsFile -H:-UnlockExperimentalVMOptions --strict-image-heap --install-exit-handlers -H:+UnlockExperimentalVMOptions -H:+AllowFoldMethods -H:-UnlockExperimentalVMOptions -J-Djava.awt.headless=true --no-fallback --link-at-build-time --report-unsupported-elements-at-runtime -H:+UnlockExperimentalVMOptions -H:+ReportExceptionStackTraces -H:-UnlockExperimentalVMOptions -H:-AddAllCharsets --enable-url-protocols=http,https --enable-monitoring=heapdump -H:+UnlockExperimentalVMOptions -H:-UseServiceLoaderFeature -H:-UnlockExperimentalVMOptions -J--add-exports=org.graalvm.nativeimage/org.graalvm.nativeimage.impl=ALL-UNNAMED --exclude-config io\.netty\.netty-codec /META-INF/native-image/io\.netty/netty-codec/generated/handlers/reflect-config\.json --exclude-config io\.netty\.netty-handler /META-INF/native-image/io\.netty/netty-handler/generated/handlers/reflect-config\.json belgif-rest-problem-quarkus-it-latest-runner -jar belgif-rest-problem-quarkus-it-latest-runner.jar
========================================================================================================================
GraalVM Native Image: Generating 'belgif-rest-problem-quarkus-it-latest-runner' (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...                                                                                    (8.5s @ 0.15GB)
 Java version: 21.0.9+10-LTS, vendor version: Mandrel-23.1.9.0-Final
 Graal compiler: optimization level: 2, target machine: x86-64-v3
 C compiler: gcc (redhat, x86_64, 11.5.0)
 Garbage collector: Serial GC (max heap size: 80% of RAM)
 6 user-specific feature(s):
 - com.oracle.svm.thirdparty.gson.GsonFeature
 - io.quarkus.hibernate.validator.runtime.DisableLoggingFeature: Disables INFO logging during the analysis phase for the [org.hibernate.validator.internal.util.Version] categories
 - io.quarkus.runner.Feature: Auto-generated class by Quarkus from the existing extensions
 - io.quarkus.runtime.graal.DisableLoggingFeature: Adapts logging during the analysis phase
 - io.quarkus.runtime.graal.JVMChecksFeature
 - io.quarkus.runtime.graal.SkipConsoleServiceProvidersFeature: Skip unsupported console service providers when quarkus.native.auto-service-loader-registration is false
------------------------------------------------------------------------------------------------------------------------
 5 experimental option(s) unlocked:
 - '-H:+AllowFoldMethods' (origin(s): command line)
 - '-H:BuildOutputJSONFile' (origin(s): command line)
 - '-H:-UseServiceLoaderFeature' (origin(s): command line)
 - '-H:+GenerateBuildArtifactsFile' (origin(s): command line)
 - '-H:AddOpens' (alternative API option(s): --add-opens java.base/java.lang=ALL-UNNAMED; origin(s): command line)
------------------------------------------------------------------------------------------------------------------------
Build resources:
 - 11.90GB of memory (77.1% of 15.44GB system memory, determined at start)
 - 12 thread(s) (100.0% of 12 available processor(s), determined at start)
[2/8] Performing analysis...  []                                                                         (1.2s @ 0.17GB)
    1,078 reachable types   (45.9% of    2,351 total)
      243 reachable fields  (22.8% of    1,066 total)
      709 reachable methods (10.9% of    6,477 total)
      794 types,   176 fields, and 2,042 methods registered for reflection

Fatal error: com.oracle.graal.pointsto.util.AnalysisError$ParsingError: Error encountered while parsing io.github.belgif.rest.problem.ee.jaxrs.ProblemObjectMapperContextResolver.getContext(ProblemObjectMapperContextResolver.java:16)
Parsing context:
   at root method.(Unknown Source)

        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.util.AnalysisError.parsingError(AnalysisError.java:149)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.flow.MethodTypeFlow.createFlowsGraph(MethodTypeFlow.java:184)
        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)
Caused by: org.graalvm.compiler.java.BytecodeParser$BytecodeParserError: org.graalvm.compiler.debug.GraalError: com.oracle.svm.core.util.UserError$UserException: Class initialization of io.github.belgif.rest.problem.ee.jaxrs.ProblemObjectMapper failed. Use the option

    '--initialize-at-run-time=io.github.belgif.rest.problem.ee.jaxrs.ProblemObjectMapper'

 to explicitly request initialization of this class at run time. Exception thrown by the class initializer:

java.lang.IllegalStateException: Unable to locate CDIProvider
        at jakarta.enterprise.inject.spi.CDI.findAllProviders(CDI.java:137)
        at jakarta.enterprise.inject.spi.CDI.getCDIProvider(CDI.java:91)
        at jakarta.enterprise.inject.spi.CDI.current(CDI.java:64)
        at io.github.belgif.rest.problem.ee.CdiProblemModule.<init>(CdiProblemModule.java:16)
        at io.github.belgif.rest.problem.ee.jaxrs.ProblemObjectMapper.<init>(ProblemObjectMapper.java:15)
        at io.github.belgif.rest.problem.ee.jaxrs.ProblemObjectMapper.<clinit>(ProblemObjectMapper.java:12)
        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)
        (internal stack frames of the image generator are omitted)


        at parsing io.github.belgif.rest.problem.ee.jaxrs.ProblemObjectMapperContextResolver.getContext(ProblemObjectMapperContextResolver.java:16)
        at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.throwParserError(BytecodeParser.java:2553)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.phases.SharedGraphBuilderPhase$SharedBytecodeParser.throwParserError(SharedGraphBuilderPhase.java:182)
        at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.iterateBytecodesForBlock(BytecodeParser.java:3436)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.phases.SharedGraphBuilderPhase$SharedBytecodeParser.iterateBytecodesForBlock(SharedGraphBuilderPhase.java:751)
        at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.handleBytecodeBlock(BytecodeParser.java:3388)
        at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.processBlock(BytecodeParser.java:3230)
        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)
        ... 12 more
Caused by: org.graalvm.compiler.debug.GraalError: com.oracle.svm.core.util.UserError$UserException: Class initialization of io.github.belgif.rest.problem.ee.jaxrs.ProblemObjectMapper failed. Use the option

    '--initialize-at-run-time=io.github.belgif.rest.problem.ee.jaxrs.ProblemObjectMapper'

 to explicitly request initialization of this class at run time. Exception thrown by the class initializer:

java.lang.IllegalStateException: Unable to locate CDIProvider
        at jakarta.enterprise.inject.spi.CDI.findAllProviders(CDI.java:137)
        at jakarta.enterprise.inject.spi.CDI.getCDIProvider(CDI.java:91)
        at jakarta.enterprise.inject.spi.CDI.current(CDI.java:64)
        at io.github.belgif.rest.problem.ee.CdiProblemModule.<init>(CdiProblemModule.java:16)
        at io.github.belgif.rest.problem.ee.jaxrs.ProblemObjectMapper.<init>(ProblemObjectMapper.java:15)
        at io.github.belgif.rest.problem.ee.jaxrs.ProblemObjectMapper.<clinit>(ProblemObjectMapper.java:12)
        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)
        (internal stack frames of the image generator are omitted)


        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.util.AnalysisFuture.setException(AnalysisFuture.java:49)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:322)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.util.AnalysisFuture.ensureDone(AnalysisFuture.java:63)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.meta.AnalysisType.ensureOnTypeReachableTaskDone(AnalysisType.java:696)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.meta.AnalysisType.onReachable(AnalysisType.java:590)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.util.AtomicUtils.atomicSetAndRun(AtomicUtils.java:49)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.meta.AnalysisType.lambda$registerAsReachable$8(AnalysisType.java:562)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.meta.AnalysisType.forAllSuperTypes(AnalysisType.java:676)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.meta.AnalysisType.forAllSuperTypes(AnalysisType.java:659)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.meta.AnalysisType.forAllSuperTypes(AnalysisType.java:655)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.meta.AnalysisType.registerAsReachable(AnalysisType.java:562)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.meta.AnalysisUniverse.lookupAllowUnresolved(AnalysisUniverse.java:368)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.infrastructure.AnalysisConstantPool.lookupField(AnalysisConstantPool.java:42)
        at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.lookupField(BytecodeParser.java:4345)
        at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.genGetStatic(BytecodeParser.java:4904)
        at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.processBytecode(BytecodeParser.java:5412)
        at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.iterateBytecodesForBlock(BytecodeParser.java:3428)
        ... 31 more
Caused by: com.oracle.svm.core.util.UserError$UserException: Class initialization of io.github.belgif.rest.problem.ee.jaxrs.ProblemObjectMapper failed. Use the option

    '--initialize-at-run-time=io.github.belgif.rest.problem.ee.jaxrs.ProblemObjectMapper'

 to explicitly request initialization of this class at run time. Exception thrown by the class initializer:

java.lang.IllegalStateException: Unable to locate CDIProvider
        at jakarta.enterprise.inject.spi.CDI.findAllProviders(CDI.java:137)
        at jakarta.enterprise.inject.spi.CDI.getCDIProvider(CDI.java:91)
        at jakarta.enterprise.inject.spi.CDI.current(CDI.java:64)
        at io.github.belgif.rest.problem.ee.CdiProblemModule.<init>(CdiProblemModule.java:16)
        at io.github.belgif.rest.problem.ee.jaxrs.ProblemObjectMapper.<init>(ProblemObjectMapper.java:15)
        at io.github.belgif.rest.problem.ee.jaxrs.ProblemObjectMapper.<clinit>(ProblemObjectMapper.java:12)
        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)
        (internal stack frames of the image generator are omitted)


        at org.graalvm.nativeimage.builder/com.oracle.svm.core.util.UserError.abort(UserError.java:85)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.classinitialization.ClassInitializationSupport.ensureClassInitialized(ClassInitializationSupport.java:212)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.classinitialization.AllowAllHostedUsagesClassInitializationSupport.computeInitKindAndMaybeInitializeClass(AllowAllHostedUsagesClassInitializationSupport.java:191)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.classinitialization.AllowAllHostedUsagesClassInitializationSupport.computeInitKindAndMaybeInitializeClass(AllowAllHostedUsagesClassInitializationSupport.java:129)
        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.onTypeReachable(SVMHost.java:312)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.meta.AnalysisUniverse.onTypeReachable(AnalysisUniverse.java:699)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.meta.AnalysisType.lambda$new$0(AnalysisType.java:310)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
        ... 46 more
Caused by: java.lang.ExceptionInInitializerError
        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)
        ... 55 more
Caused by: java.lang.IllegalStateException: Unable to locate CDIProvider
        at jakarta.enterprise.inject.spi.CDI.findAllProviders(CDI.java:137)
        at jakarta.enterprise.inject.spi.CDI.getCDIProvider(CDI.java:91)
        at jakarta.enterprise.inject.spi.CDI.current(CDI.java:64)
        at io.github.belgif.rest.problem.ee.CdiProblemModule.<init>(CdiProblemModule.java:16)
        at io.github.belgif.rest.problem.ee.jaxrs.ProblemObjectMapper.<init>(ProblemObjectMapper.java:15)
        at io.github.belgif.rest.problem.ee.jaxrs.ProblemObjectMapper.<clinit>(ProblemObjectMapper.java:12)
        ... 58 more
------------------------------------------------------------------------------------------------------------------------
                        0.5s (4.5% of total time) in 25 GCs | Peak RSS: 0.59GB | CPU load: 3.36
========================================================================================================================
Finished generating 'belgif-rest-problem-quarkus-it-latest-runner' in 10.3s.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for io.github.belgif.rest.problem:belgif-rest-problem-parent latest:
[INFO]
[INFO] io.github.belgif.rest.problem:belgif-rest-problem-parent SUCCESS [ 49.315 s]
[INFO] io.github.belgif.rest.problem:belgif-rest-problem .. SUCCESS [ 12.661 s]
[INFO] io.github.belgif.rest.problem:belgif-rest-problem-validator SUCCESS [  2.811 s]
[INFO] io.github.belgif.rest.problem:belgif-rest-problem-java-ee SUCCESS [  6.956 s]
[INFO] io.github.belgif.rest.problem:belgif-rest-problem-spring-boot-common SUCCESS [  5.562 s]
[INFO] io.github.belgif.rest.problem:belgif-rest-problem-spring-boot-3 SUCCESS [  2.331 s]
[INFO] io.github.belgif.rest.problem:belgif-rest-problem-spring-boot-4 SUCCESS [  2.833 s]
[INFO] io.github.belgif.rest.problem:belgif-rest-problem-quarkus SUCCESS [  8.629 s]
[INFO] io.github.belgif.rest.problem:belgif-rest-problem-quarkus-deployment SUCCESS [  2.427 s]
[INFO] io.github.belgif.rest.problem:belgif-rest-problem-it SUCCESS [  0.125 s]
[INFO] io.github.belgif.rest.problem:belgif-rest-problem-apt SUCCESS [  0.228 s]
[INFO] io.github.belgif.rest.problem:belgif-rest-problem-it-common SUCCESS [  0.709 s]
[INFO] io.github.belgif.rest.problem:belgif-rest-problem-spring-boot-3-it SUCCESS [ 18.909 s]
[INFO] io.github.belgif.rest.problem:belgif-rest-problem-spring-boot-4-it SUCCESS [ 20.097 s]
[INFO] io.github.belgif.rest.problem:belgif-rest-problem-java-ee-it SUCCESS [ 33.253 s]
[INFO] io.github.belgif.rest.problem:belgif-rest-problem-jakarta-ee-it SUCCESS [ 25.178 s]
[INFO] io.github.belgif.rest.problem:belgif-rest-problem-quarkus-it FAILURE [ 40.718 s]
[INFO] io.github.belgif.rest.problem:belgif-rest-problem-jackson2-minimal-it SKIPPED
[INFO] io.github.belgif.rest.problem:belgif-rest-problem-jackson2-latest-it SKIPPED
[INFO] io.github.belgif.rest.problem:belgif-rest-problem-jackson3-it SKIPPED
[INFO] io.github.belgif.rest.problem:belgif-rest-problem-codegen-it SKIPPED
[INFO] io.github.belgif.rest.problem:belgif-rest-problem-bom SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  03:54 min
[INFO] Finished at: 2026-01-10T16:08:07+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.quarkus.platform:quarkus-maven-plugin:3.30.5:build (default) on project belgif-rest-problem-quarkus-it: Failed to build quarkus application: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[ERROR]         [error]: Build step io.quarkus.deployment.pkg.steps.NativeImageBuildStep#build threw an exception: io.quarkus.deployment.pkg.steps.NativeImageBuildStep$ImageGenerationFailureException: Image generation failed
[ERROR]         at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.imageGenerationFailed(NativeImageBuildStep.java:491)
[ERROR]         at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.build(NativeImageBuildStep.java:282)
[ERROR]         at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:735)
[ERROR]         at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:872)
[ERROR]         at io.quarkus.builder.BuildContext.run(BuildContext.java:255)
[ERROR]         at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
[ERROR]         at org.jboss.threads.EnhancedQueueExecutor$Task.doRunWith(EnhancedQueueExecutor.java:2651)
[ERROR]         at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2630)
[ERROR]         at org.jboss.threads.EnhancedQueueExecutor.runThreadBody(EnhancedQueueExecutor.java:1622)
[ERROR]         at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1589)
[ERROR]         at java.base/java.lang.Thread.run(Thread.java:1474)
[ERROR]         at org.jboss.threads.JBossThread.run(JBossThread.java:501)
[ERROR] Caused by: io.smallrye.common.process.AbnormalExitException: Process exited abnormally (pid 20156) with exit code 1
[ERROR]         at io.smallrye.common.process.PipelineRunner.collectProblems(PipelineRunner.java:559)
[ERROR]         at io.smallrye.common.process.ProcessRunner.complete(ProcessRunner.java:165)
[ERROR]         at io.smallrye.common.process.ProcessRunner.run(ProcessRunner.java:95)
[ERROR]         at io.smallrye.common.process.ProcessBuilderImpl.run(ProcessBuilderImpl.java:199)
[ERROR]         at io.quarkus.deployment.pkg.steps.NativeImageBuildRunner.build(NativeImageBuildRunner.java:77)
[ERROR]         at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.build(NativeImageBuildStep.java:276)
[ERROR]         ... 10 more
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :belgif-rest-problem-quarkus-it

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions