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
➜ example-graalvm-native ./target/my-app
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.alibaba.fastjson2.JSONB.toBytes(JSONB.java:1057)
at com.alibaba.fastjson2.writer.FieldWriter.<init>(FieldWriter.java:95)
at com.alibaba.fastjson2.writer.FieldWriterObject.<init>(FieldWriterObject.java:47)
at com.alibaba.fastjson2.writer.FieldWriterObjectFunc.<init>(FieldWriterObjectFunc.java:30)
at com.alibaba.fastjson2.writer.ObjectWriterCreator.createFieldWriter(ObjectWriterCreator.java:1234)
at com.alibaba.fastjson2.writer.ObjectWriterCreator.createFieldWriter(ObjectWriterCreator.java:1093)
at com.alibaba.fastjson2.writer.ObjectWriterCreator.createFieldWriter(ObjectWriterCreator.java:1048)
at com.alibaba.fastjson2.writer.ObjectWriters.fieldWriter(ObjectWriters.java:175)
at com.alibaba.fastjson2.example.graalvm_native.App.registerReaderAndWriter(App.java:72)
at com.alibaba.fastjson2.example.graalvm_native.App.main(App.java:46)
at java.base@21.0.2/java.lang.invoke.LambdaForm$DMH/sa346b79c.invokeStaticInit(LambdaForm$DMH)
Caused by: com.alibaba.fastjson2.JSONException: init unsafe error
at com.alibaba.fastjson2.util.JDKUtils.<clinit>(JDKUtils.java:89)
... 11 more
环境信息
请填写以下信息:
重现步骤
相关日志输出
附加信息
Fastjson2 2.0.46 版本正常
The text was updated successfully, but these errors were encountered: