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
native-image build is failing for helidon-quickstart-mp (it works for SE):
[INFO] [helidon-quickstart-mp:14148] (clinit): 900.53 ms, 4.51 GB
[INFO] [helidon-quickstart-mp:14148] (typeflow): 28,645.66 ms, 4.51 GB
[INFO] [helidon-quickstart-mp:14148] (objects): 41,128.92 ms, 4.51 GB
[INFO] [helidon-quickstart-mp:14148] (features): 3,984.28 ms, 4.51 GB
[INFO] [helidon-quickstart-mp:14148] analysis: 76,912.59 ms, 4.51 GB
[WARNING] Error: No instances of sun.security.provider.NativePRNG are allowed in the image heap as this class should be initialized at image runtime. To see how this object got instantiated use -H:+TraceClassInitialization.
[WARNING] Detailed message:
[WARNING] Trace: Object was reached by
[WARNING] reading field java.security.SecureRandom.secureRandomSpi of
[WARNING] constant java.security.SecureRandom@2ad9a439 reached by
[WARNING] reading field sun.security.ssl.SSLContextImpl.secureRandom of
[WARNING] constant sun.security.ssl.SSLContextImpl$DefaultSSLContext@26f6fa75 reached by
[WARNING] reading field sun.security.ssl.SSLSocketFactoryImpl.context of
[WARNING] constant sun.security.ssl.SSLSocketFactoryImpl@1dafd2c reached by
[WARNING] reading field javax.net.ssl.HttpsURLConnection.defaultSSLSocketFactory
[WARNING]
[WARNING] com.oracle.svm.core.util.UserError$UserException: No instances of sun.security.provider.NativePRNG are allowed in the image heap as this class should be initialized at image runtime. To see how this object got instantiated use -H:+TraceClassInitialization.
[WARNING] Detailed message:
[WARNING] Trace: Object was reached by
[WARNING] reading field java.security.SecureRandom.secureRandomSpi of
[WARNING] constant java.security.SecureRandom@2ad9a439 reached by
[WARNING] reading field sun.security.ssl.SSLContextImpl.secureRandom of
[WARNING] constant sun.security.ssl.SSLContextImpl$DefaultSSLContext@26f6fa75 reached by
[WARNING] reading field sun.security.ssl.SSLSocketFactoryImpl.context of
[WARNING] constant sun.security.ssl.SSLSocketFactoryImpl@1dafd2c reached by
[WARNING] reading field javax.net.ssl.HttpsURLConnection.defaultSSLSocketFactory
[WARNING]
[WARNING] at com.oracle.svm.core.util.UserError.abort(UserError.java:79)
[WARNING] at com.oracle.svm.hosted.FallbackFeature.reportAsFallback(FallbackFeature.java:217)
[WARNING] at com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:765)
[WARNING] at com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:555)
[WARNING] at com.oracle.svm.hosted.NativeImageGenerator.lambda$run$0(NativeImageGenerator.java:468)
[WARNING] at java.base/java.util.concurrent.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1407)
[WARNING] at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
[WARNING] at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
[WARNING] at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
[WARNING] at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
[WARNING] at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
[WARNING] Caused by: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: No instances of sun.security.provider.NativePRNG are allowed in the image heap as this class should be initialized at image runtime. To see how this object got instantiated use -H:+TraceClassInitialization.
[WARNING] Detailed message:
[WARNING] Trace: Object was reached by
[WARNING] reading field java.security.SecureRandom.secureRandomSpi of
ARNING] constant java.security.SecureRandom@2ad9a439 reached by
[WARNING] reading field sun.security.ssl.SSLContextImpl.secureRandom of
[WARNING] constant sun.security.ssl.SSLContextImpl$DefaultSSLContext@26f6fa75 reached by
[WARNING] reading field sun.security.ssl.SSLSocketFactoryImpl.context of
[WARNING] constant sun.security.ssl.SSLSocketFactoryImpl@1dafd2c reached by
[WARNING] reading field javax.net.ssl.HttpsURLConnection.defaultSSLSocketFactory
[WARNING]
[WARNING] at com.oracle.graal.pointsto.constraints.UnsupportedFeatures.report(UnsupportedFeatures.java:126)
[WARNING] at com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:762)
[WARNING] ... 8 more
[WARNING] Error: Image build request failed with exit status 1
Environment Details
Problem Description
native-image build is failing for helidon-quickstart-mp (it works for SE):
Steps to reproduce
mvn clean package -Pnative-image
The text was updated successfully, but these errors were encountered: