Dubbo3.2升级后异常传递的问题 #28
liudaac
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
①默认序列化安全校验级别,影响3.2.x版本。https://cn.dubbo.apache.org/zh-cn/overview/mannual/java-sdk/advanced-features-and-usage/security/class-check/
②Dubbo升级至3.2.x之后,spring也一起升级至6.0.x。带来的问题包含异常的抓取。新版异常,每一层抛出的结构都使用ExecutionException去包装,然后再向上传递。这就导致之前的切面抓取指定异常并返回异常内容的逻辑失效。造成的结果就是最上层抓到的结构为
java.util.concurrent.ExecutionException: org.apache.dubbo.rpc.RpcException: java.util.concurrent.ExecutionException: cn.aradin.furion.sdk.base.exception.CustomizedSdkException: ERRMSG 类似这种被ExecutionException包裹的多级结构。其中CustomizedSdkException继承自RpcException。关联ISSUE [(https://github.com/apache/dubbo/issues/13403)]
然后再被AsyncRpcResult包装一层RpcException
异常日志
[2023-11-22T09:54:08Z] 2023-11-22 17:54:08.427 |-ERROR [http-nio-0.0.0.0-60006-exec-5] org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$CallbackRegistrationInvoker [91] -| [DUBBO] Exception occurred while executing the 0 filter named RpcExceptionFilter., dubbo version: 3.2.7, current host: 127.0.0.1, error code: 2-19. This may be caused by the custom filter is abnormal, go to https://dubbo.apache.org/faq/2/19 to find instructions.
[2023-11-22T09:54:08Z] 2023-11-22 17:54:08.428 |-ERROR [http-nio-0.0.0.0-60006-exec-5] org.apache.dubbo.rpc.AsyncRpcResult [91] -| [DUBBO] Got exception when trying to fetch the underlying result from AsyncRpcResult., dubbo version: 3.2.7, current host: 127.0.0.1, error code: 3-5. This may be caused by , go to https://dubbo.apache.org/faq/3/5 to find instructions.
参考资料:
1、https://cn.dubbo.apache.org/zh-cn/overview/mannual/java-sdk/upgrades-and-compatibility/3.1-to-3.2-compatibility-guide/
Beta Was this translation helpful? Give feedback.
All reactions