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
jlink fails with java.io.IOException: Invalid JMOD file #3090
Comments
If it cannot be reproduced in the latest dev, that means that the bug was already fixed. |
This is reproducible on 21.0.0 also. |
I did test GraalVM CE 21.1.0-dev-20210120_0306 and it does work with that. Not sure if the final release process is somehow corrupting this module. Hopefully the 21.1.0 release will prove otherwise and it works in the release of 21.1.0. |
I tested on my macOS. it seems that the only part that is not working is invoking Please verify that this is the case for you too. |
I can verify that Other interesting thing:
vs.
I was not expecting the version to go down Perhaps the release is pulling in a mismatched version? |
It's the case for me with 20.3.0 and 21.0.0 on macOS. But just in case, my main issue is that building of a new JVM fails with the error. Example:
|
Issue tracked internally on GR-28952 |
on windows: and v20.2.0 jre: |
Yes, the same bug affects both windows and darwin. Should be fixed for future releases. |
For the latest release 21.0.0.2 on the Mac it seems jlink now launches and tries to do something but now I get errors like this when trying to create the jlink image:
To reproduce clone https://github.com/apache/felix-atomos.git and run There is a jlink example
|
To add to this, same thing happens with java.rmi JMOD on Windows
java -version output:
|
Still present in GraalVM CE 21.3.0 (Windows x64): > bin\jlink --output jre-11.0.13 --add-modules java.base,java.rmi
Error: Hash of java.rmi (f671e42903a0adce0642b577802ce36274988cf9a88dc3b2115be3d6cd7e5677) differs to expected hash (abb5652878595f7bbe89256539153df4c639d2446b5baa127cf71ef8d4d18d8b) recorded in java.base > bin\java --version
openjdk 11.0.13 2021-10-19
OpenJDK Runtime Environment GraalVM CE 21.3.0 (build 11.0.13+7-jvmci-21.3-b05)
OpenJDK 64-Bit Server VM GraalVM CE 21.3.0 (build 11.0.13+7-jvmci-21.3-b05, mixed mode, sharing) |
Cannot reproduce in Closing. |
jlink
doesn't work in 20.3.0. But seems to work in the latest dev build.Steps to reproduce the issue
Invoke
jlink
. Observe the output.Expected
Actual
Describe GraalVM and your environment:
More details
sdkman
.choco install -y graalvm --version 20.3.0
).graalvm-ce-java11-21.1.0-dev
.The text was updated successfully, but these errors were encountered: