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

jlink module hash inconsistency #490

Open
starxg opened this issue Jan 9, 2025 · 2 comments
Open

jlink module hash inconsistency #490

starxg opened this issue Jan 9, 2025 · 2 comments
Assignees

Comments

@starxg
Copy link

starxg commented Jan 9, 2025

jbrsdk-21.0.5-osx-aarch64-b750.29/Contents/Home/bin/jlink \
--verbose --strip-java-debug-attributes --strip-native-commands --strip-debug --compress=zip-9 \
--no-header-files --no-man-pages \
--add-modules java.base,java.desktop,java.logging,java.management,java.rmi,java.security.jgss,jdk.crypto.ec,jdk.unsupported \
--output runtime
Error: Hash of java.rmi (fb2a8e5538e247b738382c9da1b0709d18b4036d2c4cd87861f9009bb1215ac1) differs to expected hash (406ff94eac274ab55121f0a3cfb738c28f689ea8d28de3e661860c9d39a534be) recorded in java.base

java.lang.module.FindException: Hash of java.rmi (fb2a8e5538e247b738382c9da1b0709d18b4036d2c4cd87861f9009bb1215ac1) differs to expected hash (406ff94eac274ab55121f0a3cfb738c28f689ea8d28de3e661860c9d39a534be) recorded in java.base
        at java.base/java.lang.module.Resolver.findFail(Resolver.java:892)
        at java.base/java.lang.module.Resolver.checkHashes(Resolver.java:480)
        at java.base/java.lang.module.Resolver.finish(Resolver.java:378)
        at java.base/java.lang.module.Configuration.<init>(Configuration.java:139)
        at java.base/java.lang.module.Configuration.resolve(Configuration.java:422)
        at java.base/java.lang.module.Configuration.resolve(Configuration.java:254)
        at jdk.jlink/jdk.tools.jlink.internal.Jlink$JlinkConfiguration.resolve(Jlink.java:217)
        at jdk.jlink/jdk.tools.jlink.internal.JlinkTask.createImageProvider(JlinkTask.java:523)
        at jdk.jlink/jdk.tools.jlink.internal.JlinkTask.createImage(JlinkTask.java:411)
        at jdk.jlink/jdk.tools.jlink.internal.JlinkTask.run(JlinkTask.java:286)
        at jdk.jlink/jdk.tools.jlink.internal.Main.run(Main.java:56)
        at jdk.jlink/jdk.tools.jlink.internal.Main.main(Main.java:34)

OS: macOS Sonoma (14.7.1) M3 Pro
JBR: jbrsdk-21.0.5-osx-aarch64-b750.29.tar.gz


There are problems with these recent releases!

@ingokegel
Copy link

This affects the macOS distributions and started in 21.0.5-b631.19.

@pinhead84
Copy link

This seems to be fixed with version 21.0.6b825.69.

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

4 participants