-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
Milestone
Description
We see new native-image integration tests failing because Quarkus isn't able to parse the following JDK 26-based GraalVM version:
$ native-image --version
native-image 26 2026-03-17
GraalVM Runtime Environment GraalVM CE 26-dev+1.1 (build 26+1-jvmci-b01)
Substrate VM GraalVM CE 26-dev+1.1 (build 26+1, serial gc)
This results in the picocli-native
integration test to fail with an error along the lines of this:
[INFO] --- quarkus:999-SNAPSHOT:track-config-changes (track-config-changes) @ quarkus-integration-test-picocli-native ---
[INFO]
[INFO] --- compiler:3.14.0:compile (default-compile) @ quarkus-integration-test-picocli-native ---
[INFO] Recompiling the module because of changed source code.
[INFO] Compiling 21 source files with javac [debug deprecation parameters release 17] to target/classes
[INFO]
[INFO] --- resources:3.3.1:testResources (default-testResources) @ quarkus-integration-test-picocli-native ---
[INFO] skip non existing resourceDirectory /home/sgehwolf/Documents/openjdk/quarkus/quarkus-source/integration-tests/picocli-native/src/test/resources
[INFO]
[INFO] --- compiler:3.14.0:testCompile (default-testCompile) @ quarkus-integration-test-picocli-native ---
[INFO] Recompiling the module because of changed dependency.
[INFO] Compiling 4 source files with javac [debug deprecation parameters release 17] to target/test-classes
[INFO]
[INFO] --- surefire:3.5.3:test (default-test) @ quarkus-integration-test-picocli-native ---
[INFO] Skipped
[INFO]
[INFO] --- quarkus:999-SNAPSHOT:build (default) @ quarkus-integration-test-picocli-native ---
[INFO] [quarkus-build-caching-extension] Quarkus previous configuration not found
[INFO] [quarkus-build-caching-extension] Quarkus build goal marked as not cacheable
[INFO] [quarkus-build-caching-extension] Quarkus previous configuration not found
[INFO] [quarkus-build-caching-extension] Quarkus build goal marked as not cacheable
[INFO] [io.quarkus.deployment.pkg.steps.JarResultBuildStep] Building native image source jar: /home/sgehwolf/Documents/openjdk/quarkus/quarkus-source/integration-tests/picocli-native/target/quarkus-integration-test-picocli-native-999-SNAPSHOT-native-image-source-jar/quarkus-integration-test-picocli-native-999-SNAPSHOT-runner.jar
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Building native image from /home/sgehwolf/Documents/openjdk/quarkus/quarkus-source/integration-tests/picocli-native/target/quarkus-integration-test-picocli-native-999-SNAPSHOT-native-image-source-jar/quarkus-integration-test-picocli-native-999-SNAPSHOT-runner.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.801 s
[INFO] Finished at: 2025-06-16T12:09:32+02:00
[INFO] ------------------------------------------------------------------------
[INFO] Njord session closed
[INFO] 14 goals, 14 executed
[ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:999-SNAPSHOT:build (default) on project quarkus-integration-test-picocli-native: 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: java.lang.RuntimeException: Failed to get GraalVM version
[ERROR] at io.quarkus.deployment.pkg.steps.NativeImageBuildRunner.getGraalVMVersion(NativeImageBuildRunner.java:41)
[ERROR] at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.build(NativeImageBuildStep.java:246)
[ERROR] at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:735)
[ERROR] at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:856)
[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: java.lang.NumberFormatException: For input string: "null"
[ERROR] at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:67)
[ERROR] at java.base/java.lang.Integer.parseInt(Integer.java:565)
[ERROR] at java.base/java.lang.Integer.parseInt(Integer.java:662)
[ERROR] at java.base/java.util.stream.ReferencePipeline$4$1.accept(ReferencePipeline.java:231)
[ERROR] at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1024)
[ERROR] at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:570)
[ERROR] at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:560)
[ERROR] at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:635)
[ERROR] at java.base/java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:291)
[ERROR] at java.base/java.util.stream.IntPipeline.toArray(IntPipeline.java:564)
[ERROR] at io.quarkus.runtime.graal.GraalVM$Version.breakdownVersion(GraalVM.java:127)
[ERROR] at io.quarkus.runtime.graal.GraalVM$Version.<init>(GraalVM.java:116)
[ERROR] at io.quarkus.deployment.pkg.steps.GraalVM$Version.<init>(GraalVM.java:229)
[ERROR] at io.quarkus.deployment.pkg.steps.GraalVM$VersionParseHelper.parse(GraalVM.java:89)
[ERROR] at io.quarkus.deployment.pkg.steps.GraalVM$Version.of(GraalVM.java:279)
[ERROR] at io.quarkus.deployment.pkg.steps.NativeImageBuildRunner.getGraalVMVersion(NativeImageBuildRunner.java:38)
[ERROR] ... 11 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
We also see similar failures in our Mandrel CI here:
https://github.com/graalvm/mandrel/actions/runs/15646482173/job/44085716121#step:12:455