Skip to content

Instantly share code, notes, and snippets.

@pmurias
Created July 11, 2018 12:30
Show Gist options
  • Save pmurias/6b6c08b35e9b697860ce24458a2de4d1 to your computer and use it in GitHub Desktop.
Save pmurias/6b6c08b35e9b697860ce24458a2de4d1 to your computer and use it in GitHub Desktop.
native-image -jar p6vm.ja
Build on Server(pid: 6196, port: 42749)
classlist: 175.64 ms
(cap): 787.16 ms
setup: 999.88 ms
analysis: 4,829.95 ms
error: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: Detected a started Thread in the image heap. This is not supported. The object was reached from a static initializer. All static class initialization is done during native image construction, thus a static initializer cannot contain code that captures state dependent on the build machine. Write your own initialization methods and call them explicitly from your main entry point.
Detailed message:
Error: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: Detected a started Thread in the image heap. This is not supported. The object was reached from a static initializer. All static class initialization is done during native image construction, thus a static initializer cannot contain code that captures state dependent on the build machine. Write your own initialization methods and call them explicitly from your main entry point.
Trace:
at parsing org.graalvm.compiler.hotspot.management.HotSpotGraalManagement.initialize(HotSpotGraalManagement.java:68)
Call path from entry point to org.graalvm.compiler.hotspot.management.HotSpotGraalManagement.initialize(HotSpotGraalRuntime):
at org.graalvm.compiler.hotspot.management.HotSpotGraalManagement.initialize(HotSpotGraalManagement.java:60)
at org.graalvm.compiler.hotspot.HotSpotGraalRuntime.<init>(HotSpotGraalRuntime.java:218)
at org.graalvm.compiler.hotspot.HotSpotGraalCompilerFactory.createCompiler(HotSpotGraalCompilerFactory.java:145)
at org.graalvm.compiler.truffle.runtime.hotspot.HotSpotTruffleRuntimeAccess$LazyGraalRuntime.getCompiler(HotSpotTruffleRuntimeAccess.java:104)
at org.graalvm.compiler.truffle.runtime.hotspot.HotSpotTruffleRuntimeAccess$LazyGraalRuntime.get(HotSpotTruffleRuntimeAccess.java:88)
at org.graalvm.compiler.truffle.runtime.hotspot.HotSpotTruffleRuntimeAccess$LazyGraalRuntime.get(HotSpotTruffleRuntimeAccess.java:79)
at com.oracle.svm.core.jdk.SystemPropertiesSupport.initializeLazyValue(SystemPropertiesSupport.java:121)
at com.oracle.svm.core.jdk.SystemPropertiesSupport.setProperty(SystemPropertiesSupport.java:106)
at com.oracle.svm.core.jdk.Target_java_lang_System.setProperty(JavaLangSubstitutions.java:355)
at com.oracle.svm.core.properties.RuntimePropertyParser.parseProperty(RuntimePropertyParser.java:68)
at com.oracle.svm.core.properties.RuntimePropertyParser.parse(RuntimePropertyParser.java:43)
at com.oracle.svm.core.JavaMainWrapper.run(JavaMainWrapper.java:160)
at com.oracle.svm.core.code.CEntryPointCallStubs.com_002eoracle_002esvm_002ecore_002eJavaMainWrapper_002erun_0028int_002corg_002egraalvm_002enativeimage_002ec_002etype_002eCCharPointerPointer_0029(generated:0)
Error: Processing image build request failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment