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
1.It has no this exception in dubbo 3.3.0-beta2 version
2.Upgrade to dubbo 3.3.0-beta3 version, has this exception. so i add --add-opens java.base/java.util=ALL-UNNAMED, has other exception com.alibaba.com.caucho.hessian.io.HessianFieldException: xxx.service.auth.bo.AuthUserBO.authorities: null array
then use set method : authUserBO.setAuthorities (new ArrayList<>()), it has no exception.
Last i remove vm --add-opens java.base/java.util=ALL-UNNAMED, it alse has no exception.
What you expected to happen
no exception
Anything else
No response
Are you willing to submit a pull request to fix on your own?
Yes I am willing to submit a pull request on my own!
In 3.3.0-beta.2 the default serialization is fastjson2, in 3.3.0-beta.3 the hessian serialization back and set as default serialization by #13974
It caused by hessian serialization. You can temporarily set the serialization as fastjson2 again. The issue of hessian serialization with newly JDK may solved in the future.
You can modify the settings according to the actual situation, and be aware that there may be unexpected issues with fastjson2 as well.
We had a meeting to discuss this problem, the reason is that the adaptation of hessian2 with high jdk version is difficult, so we can use fastjson2 first
Pre-check
Search before asking
Apache Dubbo Component
Java SDK (apache/dubbo)
Dubbo Version
Dubbo 3.3.0-beta3, jdk 21, windows
Steps to reproduce this issue
1.It has no this exception in dubbo 3.3.0-beta2 version
2.Upgrade to dubbo 3.3.0-beta3 version, has this exception. so i add
--add-opens java.base/java.util=ALL-UNNAMED
, has other exceptioncom.alibaba.com.caucho.hessian.io.HessianFieldException: xxx.service.auth.bo.AuthUserBO.authorities: null array
Here's my class(AuthUserBO) information
3.i update AuthUserBO code to this
then use set method : authUserBO.setAuthorities (new ArrayList<>()), it has no exception.
Last i remove vm
--add-opens java.base/java.util=ALL-UNNAMED
, it alse has no exception.What you expected to happen
no exception
Anything else
No response
Are you willing to submit a pull request to fix on your own?
Code of Conduct
The text was updated successfully, but these errors were encountered: