KT2024 commented on issue #12196:
URL: https://github.com/apache/dubbo/issues/12196#issuecomment-1655321223
@AlbumenJ
配置如下
dubbo.provider.prefer-serialization=fastjson2
依然报错
java.lang.reflect.InaccessibleObjectException: Unable to make field final
int java.math.BigInteger.signum accessible: module java.base does not "opens
java.math" to unnamed module @2e55dd0c
at
java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
at
java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
at
java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178)
at java.base/java.lang.reflect.Field.setAccessible(Field.java:172)
at
com.alibaba.com.caucho.hessian.io.JavaDeserializer.getFieldMap(JavaDeserializer.java:340)
at
com.alibaba.com.caucho.hessian.io.JavaDeserializer.<init>(JavaDeserializer.java:80)
启动增加如下参数,可以兼容,不报错了
# add VM options
--add-opens java.base/java.math=ALL-UNNAMED --add-opens
java.base/java.lang=ALL-UNNAMED
既然已经指定了序列化使用fastjson2,期望能去掉hessian的加载,这样就不用配置JVM参数了
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]