Skip to content

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

@sdelamo

Description

@sdelamo

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions