question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error using Mandrel following getting started guide.

See original GitHub issue

Describe the bug New to Quarkus. Followed the getting started guide on quarkus.io. Then started on the deploy native side. When I ran mvnw package -Pnative I got an error Invalid version string '21.0.0.0.Final'

Expected behavior packaging completes

Actual behavior Error

[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Running Quarkus native-image plugin on GraalVM Version 21.0.0.0.Final (Mandrel Distribution) (Java Version 11.0.10+9)
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] -J-Djava.util.logging.manager=org.jboss.logmanager.LogManager -J-Dsun.nio.ch.maxUpdateArraySize=100 -J-Dvertx.logger-delegate-factory-class-name=io.quarkus.vertx.core.runtime.VertxLogDelegateFactory -J-Dvertx.disableDnsResolver=true -J-Dio.netty.leakDetection.level=DISABLED -J-Dio.netty.allocator.maxOrder=1 -J-Duser.language=en -J-Duser.country=US -J-Dfile.encoding=UTF-8 --initialize-at-build-time= -H:InitialCollectionPolicy=com.oracle.svm.core.genscavenge.CollectionPolicy\$BySpaceAndTime -H:+JNI -H:+AllowFoldMethods -jar getting-started-1.0.0-SNAPSHOT-runner.jar -H:FallbackThreshold=0 -H:+ReportExceptionStackTraces -H:-AddAllCharsets -H:EnableURLProtocols=http -H:NativeLinkerOption=-no-pie -H:-UseServiceLoaderFeature -H:+StackTrace getting-started-1.0.0-SNAPSHOT-runner
[getting-started-1.0.0-SNAPSHOT-runner:222852]    classlist:   3,708.30 ms,  0.96 GB
[getting-started-1.0.0-SNAPSHOT-runner:222852]        setup:   1,192.86 ms,  0.96 GB
Fatal error:java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: Invalid version string '21.0.0.0.Final'.

To Reproduce

Link to a small reproducer (preferably a Maven project if the issue is not Gradle-specific).

Or attach an archive containing the reproducer to the issue.

Steps to reproduce the behavior:

  1. Follow the getting started guide
  2. Install Mandrel on Fedora with sdkman Mandrel | >>> | 21.0.0.0 | mandrel | installed | 21.0.0.0-mandrel
  3. Package with Mandrel

Configuration

# Add your application.properties here, if applicable.

Screenshots (If applicable, add screenshots to help explain your problem.)

Environment (please complete the following information):

  • Output of uname -a or ver: Linux localhost.localdomain 5.9.16-100.fc32.x86_64 #1 SMP Mon Dec 21 14:10:00 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
  • Output of java -version:
    openjdk version “11.0.10” 2021-01-19 OpenJDK Runtime Environment 18.9 (build 11.0.10+9) OpenJDK 64-Bit Server VM 18.9 (build 11.0.10+9, mixed mode)
 - GraalVM version (if different from Java): 21.0.0.0-mandrel
 - Quarkus version or git rev: 
 - Build tool (ie. output of `mvnw --version` or `gradlew --version`): 

Maven home: /home/josh/.m2/wrapper/dists/apache-maven-3.6.3-bin/1iopthnavndlasol9gbrbg6bf2/apache-maven-3.6.3 Java version: 11.0.10, vendor: Oracle Corporation, runtime: /home/josh/.sdkman/candidates/java/21.0.0.0-mandrel Default locale: en_US, platform encoding: UTF-8 OS name: “linux”, version: “5.9.16-100.fc32.x86_64”, arch: “amd64”, family: “unix”


**Additional context**
(Add any other context about the problem here.)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
gastaldicommented, Mar 12, 2021

Also you need to sdk flush archives first to remove binaries that were already downloaded

1reaction
joshuawilsoncommented, Mar 12, 2021

The updated version in sdkman did indeed fix it. Thanks for the help. Closing this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Building a Native Executable - Quarkus
This guide takes as input the application developed in the Getting Started Guide. GraalVM. Building a native executable requires using a distribution of...
Read more >
Image generation failed. Exit code: 1 on Microsoft Windows 10 ...
Successfully built native image from Quarkus guide. Actual behavior. Running the following command in getting-started directory on local ...
Read more >
Creating Quarkus Docker Container with mandrel fails
1 Answer 1 · Builder image - an image that contains Mandrel distro, JDK, C compiler, libraries, all the necessary tooling. · Runtime...
Read more >
UNDERSTANDING EXPANDER MANDRELS - YouTube
A simple guide to expander mandrels for reloading.
Read more >
Compiling your Quarkus applications to native executables
This guide shows you how to compile the Quarkus Getting Started ... Mandrel, build a native executable by using one of the following...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found