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
**GraalVM-CE-Java8-20.0.0** is preferred when using `http-kit` as a server.
34
-
The native image compilation succeed with both **GraalVM-CE-Java11-20.0.0** and **GraalVM-CE-Java8-20.0.0** in this example project, however in a fully fledged application **GraalVM-CE-Java11-20.0.0** fails to compile.
35
-
**GraalVM-CE-Java8-20.0.0** succeeds in both cases.
36
-
37
-
```
38
-
Error: No instances of java.io.FilePermission 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.
39
-
Detailed message:
40
-
Trace: Object was reached by
41
-
reading field java.util.concurrent.ConcurrentHashMap$Node.val of
42
-
constant java.util.concurrent.ConcurrentHashMap$Node@8dde7265 reached by
43
-
indexing into array
44
-
constant java.util.concurrent.ConcurrentHashMap$Node[]@6c77f2c9 reached by
45
-
reading field java.util.concurrent.ConcurrentHashMap.table of
46
-
constant java.util.concurrent.ConcurrentHashMap@8dde7265 reached by
47
-
reading field java.io.FilePermissionCollection.perms of
48
-
constant java.io.FilePermissionCollection@6cd327ba reached by
49
-
reading field java.util.concurrent.ConcurrentHashMap$Node.val of
50
-
constant java.util.concurrent.ConcurrentHashMap$Node@1b3aa7c5 reached by
51
-
indexing into array
52
-
constant java.util.concurrent.ConcurrentHashMap$Node[]@4ade4a40 reached by
53
-
reading field java.util.concurrent.ConcurrentHashMap.table of
54
-
constant java.util.concurrent.ConcurrentHashMap@1b3aa7c5 reached by
55
-
reading field java.security.Permissions.permsMap of
56
-
constant java.security.Permissions@4005e013 reached by
57
-
reading field java.security.ProtectionDomain.permissions of
58
-
constant java.security.ProtectionDomain@23282c25 reached by
59
-
indexing into array
60
-
constant java.security.ProtectionDomain[]@13f78d05 reached by
61
-
reading field java.security.AccessControlContext.context of
62
-
constant java.security.AccessControlContext@23282c25 reached by
63
-
reading field java.net.URLClassLoader.acc of
64
-
constant clojure.lang.DynamicClassLoader@323323e3 reached by
65
-
reading field java.lang.Class.classLoader of
66
-
constant java.lang.Class@6d8f5a95 reached by
67
-
Hub
68
-
69
-
Error: Use -H:+ReportExceptionStackTraces to print stacktrace of underlying exception
70
-
Error: Image build request failed with exit status 1
71
-
```
72
-
73
-
## Notes on http-kit client
74
-
Currently using GraalVM 20, the `http-kit` client fails to compile.
75
-
76
-
```
77
-
Warning: Aborting stand-alone image build. Unsupported features in 2 methods
78
-
Detailed message:
79
-
Error: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: No instances of javax.net.ssl.SSLContext 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.
80
-
Trace:
81
-
at parsing org.httpkit.client.HttpClient.exec(HttpClient.java:347)
82
-
Call path from entry point to org.httpkit.client.HttpClient.exec(String, RequestConfig, SSLEngine, IRespListener):
83
-
at org.httpkit.client.HttpClient.exec(HttpClient.java:269)
84
-
at org.httpkit.client$request.invokeStatic(client.clj:258)
85
-
at org.httpkit.client$request.doInvoke(client.clj:152)
86
-
at clojure.lang.RestFn.applyTo(RestFn.java:139)
87
-
at simple.main.main(Unknown Source)
88
-
at com.oracle.svm.core.JavaMainWrapper.runCore(JavaMainWrapper.java:151)
89
-
at com.oracle.svm.core.JavaMainWrapper.run(JavaMainWrapper.java:186)
90
-
at com.oracle.svm.core.code.IsolateEnterStub.JavaMainWrapper_run_5087f5482cc9a6abc971913ece43acb471d2631b(generated:0)
91
-
Error: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: No instances of javax.net.ssl.SSLContext 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.
92
-
Trace:
93
-
at parsing org.httpkit.client.SslContextFactory.trustAnybody(SslContextFactory.java:36)
94
-
Call path from entry point to org.httpkit.client.SslContextFactory.trustAnybody():
95
-
at org.httpkit.client.SslContextFactory.trustAnybody(SslContextFactory.java:36)
96
-
at org.httpkit.client$coerce_req.invokeStatic(client.clj:68)
97
-
at org.httpkit.client$coerce_req.invoke(client.clj:59)
98
-
at clojure.instant.proxy$java.lang.ThreadLocal$ff19274a.hashCode(Unknown Source)
99
-
at java.util.HashMap.hash(HashMap.java:339)
100
-
at java.util.HashMap.get(HashMap.java:552)
101
-
at com.oracle.svm.jni.access.JNIReflectionDictionary.getFieldNameByID(JNIReflectionDictionary.java:278)
102
-
at com.oracle.svm.jni.functions.JNIFunctions.ToReflectedField(JNIFunctions.java:856)
103
-
at com.oracle.svm.core.code.IsolateEnterStub.JNIFunctions_ToReflectedField_80d8233579d5215df0227b770e5c01228a0de9b9(generated:0)
104
-
105
-
Warning: Use -H:+ReportExceptionStackTraces to print stacktrace of underlying exception
0 commit comments