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

[24.0] Mandrel builds fail with JDK 22.0.2-ea #716

Closed
zakkak opened this issue Apr 19, 2024 · 3 comments
Closed

[24.0] Mandrel builds fail with JDK 22.0.2-ea #716

zakkak opened this issue Apr 19, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@zakkak
Copy link
Collaborator

zakkak commented Apr 19, 2024

Description

Mandrel 24.0 builds have started failing with 22.0.2-ea (masked as 22.0.1-beta+36-202404131209, since Oracle doesn't provide a tree with 22.0.2 ea sources) due to the backport of https://bugs.openjdk.org/browse/JDK-8324646 to JDK 22 (https://bugs.openjdk.org/browse/JDK-8329554)

Failures look like this:

Failed generating 'quarkus-integration-test-resteasy-jackson-999-SNAPSHOT-runner' after 29.1s.

The build process encountered an unexpected error:

com.oracle.svm.core.util.VMError$HostedError: InternalFeature defined by com.oracle.svm.hosted.SecurityServicesFeature unexpectedly failed with a(n) com.oracle.svm.util.ReflectionUtil$ReflectionUtilError
	at org.graalvm.nativeimage.builder/com.oracle.svm.core.util.VMError.shouldNotReachHere(VMError.java:86)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.FeatureHandler.handleFeatureError(FeatureHandler.java:293)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.FeatureHandler.forEachFeature(FeatureHandler.java:95)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:784)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:571)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.run(NativeImageGenerator.java:537)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.buildImage(NativeImageGeneratorRunner.java:526)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.build(NativeImageGeneratorRunner.java:701)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.start(NativeImageGeneratorRunner.java:140)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.main(NativeImageGeneratorRunner.java:95)
Caused by: com.oracle.svm.util.ReflectionUtil$ReflectionUtilError: java.lang.NoSuchFieldException: constructorParameterClassName
	at org.graalvm.nativeimage.base/com.oracle.svm.util.ReflectionUtil.lookupField(ReflectionUtil.java:161)
	at org.graalvm.nativeimage.base/com.oracle.svm.util.ReflectionUtil.lookupField(ReflectionUtil.java:133)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.SecurityServicesFeature.getConstructorParameterClassAccessor(SecurityServicesFeature.java:662)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.SecurityServicesFeature.registerServiceReachabilityHandlers(SecurityServicesFeature.java:527)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.SecurityServicesFeature.beforeAnalysis(SecurityServicesFeature.java:332)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.lambda$runPointsToAnalysis$10(NativeImageGenerator.java:784)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.FeatureHandler.forEachFeature(FeatureHandler.java:93)
	... 7 more
Caused by: java.lang.NoSuchFieldException: constructorParameterClassName
	at java.base/java.lang.Class.getDeclaredField(Class.java:2792)
	at org.graalvm.nativeimage.base/com.oracle.svm.util.ReflectionUtil.lookupField(ReflectionUtil.java:140)
	... 13 more

See:
https://github.com/graalvm/mandrel/actions/runs/8747051267/job/24004916272#step:8:519
and
https://github.com/graalvm/mandrel/actions/runs/8747051267/job/24005368747#step:13:2700

@jerboaa
Copy link
Collaborator

jerboaa commented Apr 19, 2024

Yes, but this is the wrong milestone. We need this fixed for Mandrel 24.0.2 which corresponds to the 22.0.2 update. The current JDK 22 update is 22.0.1 which is why we don't see it in the current release.

@jerboaa jerboaa changed the title [24.0] Mandrel builds fail with JDK 22.0.1-beta+36-202404131209 [24.0] Mandrel builds fail with JDK 22.0.2-ea Apr 19, 2024
zakkak added a commit to zakkak/mandrel that referenced this issue Apr 24, 2024
zakkak added a commit to zakkak/mandrel that referenced this issue Apr 26, 2024
zakkak added a commit to zakkak/mandrel that referenced this issue Apr 27, 2024
@jerboaa
Copy link
Collaborator

jerboaa commented Apr 29, 2024

Fixed with: #722 I'm going to close this issue, once we see CI passing again.

@zakkak
Copy link
Collaborator Author

zakkak commented May 13, 2024

Mandrel builds no longer fail, but the CI is still not passing due to #731

@zakkak zakkak closed this as completed May 13, 2024
zakkak added a commit to zakkak/mandrel that referenced this issue May 22, 2024
zakkak added a commit to zakkak/mandrel that referenced this issue May 28, 2024
zakkak added a commit to zakkak/mandrel that referenced this issue May 28, 2024
zakkak added a commit that referenced this issue May 28, 2024
simonis pushed a commit to simonis/graalvm-community-jdk21u that referenced this issue Jun 13, 2024
Fixes graalvm/mandrel#716

(cherry picked from commit 39988d343d32ec99d86dbd57f2c55200233c9815)
zakkak added a commit that referenced this issue Aug 21, 2024
Fixes #716

Version agnostic adaptation of 05c1e79
(cherry picked from commit 0edb942)

Fix missing null check in 'Adopt "JDK-8324646: Avoid Class.forName in SecureRandom constructor"'

(cherry picked from commit dcecff7)

Fixes #779
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants