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

GraalVM 22.2 llegalAccessError: class.... in unnamed module #7738

Closed
sdelamo opened this issue Jul 26, 2022 · 3 comments
Closed

GraalVM 22.2 llegalAccessError: class.... in unnamed module #7738

sdelamo opened this issue Jul 26, 2022 · 3 comments
Labels
relates-to: graal type: bug Something isn't working
Milestone

Comments

@sdelamo
Copy link
Contributor

sdelamo commented Jul 26, 2022

Every test project in the GraalVM Test suite 3.6.x-dev which uses GraalVM branch release/graal-vm/22.2 fails with:

86Fatal error: java.lang.IllegalAccessError: class io.micronaut.buffer.netty.NettyFeature (in unnamed module @0x684ce74c) cannot access class com.oracle.svm.core.jdk.SystemPropertiesSupport (in module org.graalvm.nativeimage.builder) because module org.graalvm.nativeimage.builder does not export com.oracle.svm.core.jdk to unnamed module @0x684ce74c
[87](https://gitlab.com/micronaut-projects/micronaut-graal-tests/-/jobs/2769223309#L87)	at io.micronaut.buffer.netty.NettyFeature.beforeAnalysis(NettyFeature.java:66)
[88](https://gitlab.com/micronaut-projects/micronaut-graal-tests/-/jobs/2769223309#L88)	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.lambda$runPointsToAnalysis$9(NativeImageGenerator.java:722)
[89](https://gitlab.com/micronaut-projects/micronaut-graal-tests/-/jobs/2769223309#L89)	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.FeatureHandler.forEachFeature(FeatureHandler.java:78)
[90](https://gitlab.com/micronaut-projects/micronaut-graal-tests/-/jobs/2769223309#L90)	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:722)
[91](https://gitlab.com/micronaut-projects/micronaut-graal-tests/-/jobs/2769223309#L91)	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:564)
[92](https://gitlab.com/micronaut-projects/micronaut-graal-tests/-/jobs/2769223309#L92)	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.run(NativeImageGenerator.java:521)
[93](https://gitlab.com/micronaut-projects/micronaut-graal-tests/-/jobs/2769223309#L93)	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.buildImage(NativeImageGeneratorRunner.java:407)
[94](https://gitlab.com/micronaut-projects/micronaut-graal-tests/-/jobs/2769223309#L94)	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.build(NativeImageGeneratorRunner.java:585)
[95](https://gitlab.com/micronaut-projects/micronaut-graal-tests/-/jobs/2769223309#L95)	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.main(NativeImageGeneratorRunner.java:128)

see: https://gitlab.com/micronaut-projects/micronaut-graal-tests/-/jobs/2769223309

Test applications use Micronaut Gradle Plugin 3.5.1

@sdelamo sdelamo added type: bug Something isn't working relates-to: graal labels Jul 26, 2022
@sdelamo sdelamo added this to the 3.6.0 milestone Jul 26, 2022
@alvarosanchez
Copy link
Member

This was supposedly fixed in micronaut-projects/micronaut-gradle-plugin#507 which was included in 3.5.1 /cc @melix

@kristofdho
Copy link

@sdelamo This should be reopened. SystemPropertiesSupport, the offending class here, is located in the svm dependency. This will no longer be published as of GraalVM 22.3, which only leaves the graal-sdk dependency, so this class will be unavailable.
The used fix here was to switch back to running on the classpath, which is a deprecated runtime mode and will also be unavailable in a future version.

oracle/graal#4146
oracle/graal#4792
oracle/graal#4783

@kristofdho
Copy link

kristofdho commented Dec 1, 2022

@sdelamo GraalVM 23.0.0 will possibly have a public API to replace the direct access to SystemPropertiesSupport oracle/graal#4862 (comment)

update: oracle/graal#5557

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
relates-to: graal type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants