Skip to content

Error: No instances are allowed in the image heap for a class that is initialized or reinitialzied at image runtime: sun.security.provider.NativePRNG #712

@gaberger

Description

@gaberger
Executing [
/mnt/jamastore1/runtime/graalvm-ce-1.0.0-rc7/bin/java \
-Xbootclasspath/a:/mnt/jamastore1/runtime/graalvm-ce-1.0.0-rc7/jre/lib/boot/graal-sdk.jar:/mnt/jamastore1/runtime/graalvm-ce-1.0.0-rc7/jre/lib/boot/graaljs-scriptengine.jar \
-cp \
/mnt/jamastore1/runtime/graalvm-ce-1.0.0-rc7/jre/lib/svm/builder/svm.jar:/mnt/jamastore1/runtime/graalvm-ce-1.0.0-rc7/jre/lib/svm/builder/objectfile.jar:/mnt/jamastore1/runtime/graalvm-ce-1.0.0-rc7/jre/lib/svm/builder/pointsto.jar:/mnt/jamastore1/runtime/graalvm-ce-1.0.0-rc7/jre/lib/jvmci/graal.jar:/mnt/jamastore1/runtime/graalvm-ce-1.0.0-rc7/jre/lib/jvmci/graal-management.jar:/mnt/jamastore1/runtime/graalvm-ce-1.0.0-rc7/jre/lib/jvmci/jvmci-hotspot.jar:/mnt/jamastore1/runtime/graalvm-ce-1.0.0-rc7/jre/lib/jvmci/jvmci-api.jar \
-server \
-d64 \
-noverify \
-XX:+UnlockExperimentalVMOptions \
-XX:+EnableJVMCI \
-XX:-UseJVMCIClassLoader \
-Dgraal.EagerSnippets=true \
-Xss10m \
-Xms1g \
-Xmx6648509232 \
-Duser.country=US \
-Duser.language=en \
-Dgraalvm.version=1.0.0-rc7 \
-Dorg.graalvm.version=1.0.0-rc7 \
-Dcom.oracle.graalvm.isaot=true \
-Djvmci.class.path.append=/mnt/jamastore1/runtime/graalvm-ce-1.0.0-rc7/jre/lib/jvmci/graal.jar \
com.oracle.svm.hosted.NativeImageGeneratorRunner \
-imagecp \
/mnt/jamastore1/runtime/graalvm-ce-1.0.0-rc7/jre/lib/boot/graal-sdk.jar:/mnt/jamastore1/runtime/graalvm-ce-1.0.0-rc7/jre/lib/boot/graaljs-scriptengine.jar:/mnt/jamastore1/runtime/graalvm-ce-1.0.0-rc7/jre/lib/svm/builder/svm.jar:/mnt/jamastore1/runtime/graalvm-ce-1.0.0-rc7/jre/lib/svm/builder/objectfile.jar:/mnt/jamastore1/runtime/graalvm-ce-1.0.0-rc7/jre/lib/svm/builder/pointsto.jar:/mnt/jamastore1/runtime/graalvm-ce-1.0.0-rc7/jre/lib/jvmci/graal.jar:/mnt/jamastore1/runtime/graalvm-ce-1.0.0-rc7/jre/lib/jvmci/graal-management.jar:/mnt/jamastore1/runtime/graalvm-ce-1.0.0-rc7/jre/lib/jvmci/jvmci-hotspot.jar:/mnt/jamastore1/runtime/graalvm-ce-1.0.0-rc7/jre/lib/jvmci/jvmci-api.jar:/mnt/jamastore1/runtime/graalvm-ce-1.0.0-rc7/jre/lib/svm/library-support.jar:/mnt/jamastore1/WIP/githubid/src:/mnt/jamastore1/WIP/githubid/target/classes:/home/gary/.m2/repository/org/clojure/clojure/1.9.0/clojure-1.9.0.jar:/home/gary/.m2/repository/org/clojure/core.specs.alpha/0.1.24/core.specs.alpha-0.1.24.jar:/home/gary/.m2/repository/org/clojure/spec.alpha/0.1.143/spec.alpha-0.1.143.jar:/home/gary/.m2/repository/com/taoensso/encore/2.91.0/encore-2.91.0.jar:/home/gary/.m2/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-cbor/2.9.0/jackson-dataformat-cbor-2.9.0.jar:/home/gary/.m2/repository/io/aviso/pretty/0.1.33/pretty-0.1.33.jar:/home/gary/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.9.0/jackson-core-2.9.0.jar:/home/gary/.m2/repository/com/taoensso/truss/1.5.0/truss-1.5.0.jar:/home/gary/.m2/repository/com/taoensso/timbre/4.10.0/timbre-4.10.0.jar:/home/gary/.m2/repository/cheshire/cheshire/5.8.0/cheshire-5.8.0.jar:/home/gary/.m2/repository/tigris/tigris/0.1.1/tigris-0.1.1.jar:/home/gary/.m2/repository/org/clojure/tools.reader/0.10.0/tools.reader-0.10.0.jar:/home/gary/.m2/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-smile/2.9.0/jackson-dataformat-smile-2.9.0.jar:/home/gary/.m2/repository/http-kit/http-kit/2.3.0/http-kit-2.3.0.jar \
-watchpid \
2072 \
-H:Path=/mnt/jamastore1/WIP/githubid \
-H:+ReportUnsupportedElementsAtRuntime \
-H:Name=target/githubid \
-H:CLibraryPath=/mnt/jamastore1/runtime/graalvm-ce-1.0.0-rc7/jre/lib/svm/clibraries/linux-amd64 \
-H:EnableURLProtocols=https \
-H:Class=githubid.core
]
[target/githubid:2073]    classlist:   4,697.72 ms
[target/githubid:2073]        (cap):     744.79 ms
[target/githubid:2073]        setup:   1,496.16 ms
[target/githubid:2073]     analysis:  69,419.87 ms
error: No instances are allowed in the image heap for a class that is initialized or reinitialzied at image runtime: sun.security.provider.NativePRNG
Detailed message:
Error: No instances are allowed in the image heap for a class that is initialized or reinitialzied at image runtime: sun.security.provider.NativePRNG
Trace: 	object java.security.SecureRandom
	object sun.security.ssl.SSLContextImpl$TLSContext
	object javax.net.ssl.SSLContext
	method org.httpkit.client.SslContextFactory.trustAnybody()
Call path from entry point to org.httpkit.client.SslContextFactory.trustAnybody():
	at org.httpkit.client.SslContextFactory.trustAnybody(SslContextFactory.java:36)
	at org.httpkit.client$coerce_req.invokeStatic(client.clj:68)
	at org.httpkit.client$coerce_req.invoke(client.clj:59)
	at clojure.core$juxt$fn__5548$fn__5551.invoke(core.clj:2601)
	at taoensso.timbre$handle_uncaught_jvm_exceptions_BANG_$reify__5207.uncaughtException(timbre.clj:639)
	at com.oracle.svm.core.thread.JavaThreads.dispatchUncaughtException(JavaThreads.java:575)
	at com.oracle.svm.core.JavaMainWrapper.run(JavaMainWrapper.java:166)
	at com.oracle.svm.core.code.CEntryPointCallStubs.com_002eoracle_002esvm_002ecore_002eJavaMainWrapper_002erun_0028int_002corg_002egraalvm_002enativeimage_002ec_002etype_002eCCharPointerPointer_0029(generated:0)

Error: Image building with exit status 1```

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions