You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
just found that the upgrade PRs to 3.18.0 / 3.18.1 failed to build in one of my projects.
Native. mandrel-java17-23.0.6.0-Final
Expected behavior
should build like in 3.17
Actual behavior
Error: Classes that should be initialized at run time got initialized during image building:
sun.nio.ch.NioSocketImpl the class was requested to be initialized at run time (from feature io.quarkus.runner.Feature.beforeAnalysis with 'NioSocketImpl.class'). To see why sun.nio.ch.NioSocketImpl got initialized use --trace-class-initialization=sun.nio.ch.NioSocketImpl
------------------------------------------------------------------------------------------------------------------------
To see how the classes got initialized, use --trace-class-initialization=sun.nio.ch.NioSocketImpl
com.oracle.svm.core.util.UserError$UserException: Classes that should be initialized at run time got initialized during image building:
sun.nio.ch.NioSocketImpl the class was requested to be initialized at run time (from feature io.quarkus.runner.Feature.beforeAnalysis with 'NioSocketImpl.class'). To see why sun.nio.ch.NioSocketImpl got initialized use --trace-class-initialization=sun.nio.ch.NioSocketImpl
4.9s (8.3% of total time) in 58 GCs | Peak RSS: 2.13GB | CPU load: 3.78
To see how the classes got initialized, use --trace-class-initialization=sun.nio.ch.NioSocketImpl
at org.graalvm.nativeimage.builder/com.oracle.svm.core.util.UserError.abort(UserError.java:73)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.classinitialization.ProvenSafeClassInitializationSupport.checkDelayedInitialization(ProvenSafeClassInitializationSupport.java:277)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.classinitialization.ClassInitializationFeature.duringAnalysis(ClassInitializationFeature.java:164)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.lambda$runPointsToAnalysis$10(NativeImageGenerator.java:770)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.FeatureHandler.forEachFeature(FeatureHandler.java:89)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.lambda$runPointsToAnalysis$11(NativeImageGenerator.java:770)
at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.AbstractAnalysisEngine.runAnalysis(AbstractAnalysisEngine.java:179)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:767)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:582)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.run(NativeImageGenerator.java:539)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.buildImage(NativeImageGeneratorRunner.java:408)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.build(NativeImageGeneratorRunner.java:612)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.start(NativeImageGeneratorRunner.java:134)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.main(NativeImageGeneratorRunner.java:94)
Describe the bug
just found that the upgrade PRs to 3.18.0 / 3.18.1 failed to build in one of my projects.
Native. mandrel-java17-23.0.6.0-Final
Expected behavior
should build like in 3.17
Actual behavior
Error: Classes that should be initialized at run time got initialized during image building:
How to Reproduce?
pro-crafting/jsonpretty#121
Build using mvn -B install -Pnative
Output of
uname -a
orver
ubuntu-latest
Output of
java -version
/opt/hostedtoolcache/mandrel-java17-linux/23.0.6-0-Final/x64/mandrel-java17-23.0.6.0-Final/bin/java --version openjdk 17.0.13 2024-10-15 OpenJDK Runtime Environment Temurin-17.0.13+11 (build 17.0.13+11) OpenJDK 64-Bit Server VM Temurin-17.0.13+11 (build 17.0.13+11, mixed mode, sharing)
Quarkus version or git rev
3.18.0, 3.18.1
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: