You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "liudaac (via GitHub)" <gi...@apache.org> on 2023/11/22 09:08:00 UTC
[I] Dubbo升级至3.2.7的直接异常传递问题 [dubbo]
liudaac opened a new issue, #13403:
URL: https://github.com/apache/dubbo/issues/13403
<!-- If you need to report a security issue please visit https://github.com/apache/dubbo/security/policy -->
- [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
## Ask your question here
Dubbo升级至3.2.7之后,spring也一起升级至6.0.13。发现新版中异常的传递机制,在每一层抛出的异常都使用ExecutionException包装,然后再向上传递。这就导致之前的使用spring切面抓取指定异常并返回异常内容的逻辑失效。
比如对于三层调用,造成的结果就是最上层抓到的结构为
java.util.concurrent.ExecutionException(
org.apache.dubbo.rpc.RpcException(
java.util.concurrent.ExecutionException(
cn.aradin.furion.sdk.base.exception.CustomizedSdkException: ERRMSG
)
)
)
类似这种被ExecutionException包裹的多级结构。其中CustomizedSdkException继承自RpcException,在旧版中最上层的切面是可以抓到。
这个有办法解决么?
--
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: notifications-unsubscribe@dubbo.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
Re: [I] Direct exception delivery problem when Dubbo is upgraded to 3.2.7 [dubbo]
Posted by "liudaac (via GitHub)" <gi...@apache.org>.
liudaac commented on issue #13403:
URL: https://github.com/apache/dubbo/issues/13403#issuecomment-1831903515
As org.apache.dubbo.rpc.RpcException extends from RuntimeException, the CustomizedSdkException which extends from RpcException should be also a child-exception of RuntimeException. So, an un-checked exception?
--
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: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
Re: [I] Direct exception delivery problem when Dubbo is upgraded to 3.2.7 [dubbo]
Posted by "AlbumenJ (via GitHub)" <gi...@apache.org>.
AlbumenJ commented on issue #13403:
URL: https://github.com/apache/dubbo/issues/13403#issuecomment-1831846687
CustomizedSdkException is a checked exception or un-checked exception?
--
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: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
Re: [I] Direct exception delivery problem when Dubbo is upgraded to 3.2.7 [dubbo]
Posted by "AlbumenJ (via GitHub)" <gi...@apache.org>.
AlbumenJ commented on issue #13403:
URL: https://github.com/apache/dubbo/issues/13403#issuecomment-1833034272
> As org.apache.dubbo.rpc.RpcException extends from RuntimeException, the CustomizedSdkException which extends from RpcException should be also a child-exception of RuntimeException. So, an un-checked exception?
1. It is not recommended to extend RpcException
2. If such Exception is declared in the interface, Dubbo will not wrap it
3. Otherwise, you can specify `filter=-exception` to see if it is caused by Dubbo's exception wrap
--
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: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
Re: [I] Direct exception delivery problem when Dubbo is upgraded to 3.2.7 [dubbo]
Posted by "CrazyHZM (via GitHub)" <gi...@apache.org>.
CrazyHZM closed issue #13403: Direct exception delivery problem when Dubbo is upgraded to 3.2.7
URL: https://github.com/apache/dubbo/issues/13403
--
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: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org