-
Notifications
You must be signed in to change notification settings - Fork 26.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
consumer always catch java.lang.reflect.UndeclaredThrowableException for the exception thrown from provider #3386
Comments
遇到相同的问题,现在只能写filter在consumer自行转换 |
原因是服务端抛出的异常被java的反射捕获,包装成了InvocationTargetException 比对了2.6.4和2.6.5,几乎就是重写了ReferenceAnnotationBeanPostProcessor。
临时发布一个patch到本地maven仓中使用,期望未来修复吧 |
2.6.6 will be resolved, please refer the commit. |
@mercyblitz 2.6.6 has been merged into 2.7.0, but this issue is still there. Should I push a new commit? |
Apache dubbo 2.7.0 has the same issue. |
apache dubbo2.7.0 I've tried it and it still doesn't work |
Environment
Steps to reproduce this issue
定义异常类和其他 RPC 相关类
API Defination
Provider
Consumer
Expected Result
此处应当可捕获
ValidationException
Expect
ValidationException
to be caught.Actual Result
但是我们捕获到了
UndeclaredThrowableException
The text was updated successfully, but these errors were encountered: