You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/09/26 15:32:56 UTC

[GitHub] [dubbo] a4363220 opened a new issue, #10679: provider 抛出自定义异常问题

a4363220 opened a new issue, #10679:
URL: https://github.com/apache/dubbo/issues/10679

   ### Environment
   
   * Dubbo version: 3.1.0
   * Operating System version: windows
   * Java version: jdk8
   * protocol:tri
   * serialization:kryo
   
   问题描述:consumer将provider端抛出的自定义异常转换成了RpcException
   
   目的:
   参考了多种解决方案,有些方案中使用的dubbo版本已经落后于我当前的dubbo版本了,我想咨询一下目前官方
   有针对provider统一异常的方案吗?或者就近的版本会更新解决这个问题
    
   目前采取过的方案:
   1.在provider端拓展ExceptionFilter,使其抛出BizException,但是客户端还是用RpcException进行了转换
   2.在provider回传异常的code和msg,但是在consumer的clusterFilter中却拿不到provider回传的code和msg
   3.在api接口声明BizException,无效,还是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


[GitHub] [dubbo] AlbumenJ commented on issue #10679: provider 抛出自定义异常问题

Posted by GitBox <gi...@apache.org>.
AlbumenJ commented on issue #10679:
URL: https://github.com/apache/dubbo/issues/10679#issuecomment-1258871815

   > > tri 协议目前暂不支持抛出异常,下个版本将正式支持抛自定义异常。
   > 
   > 您好 下个版本大概预计什么时间上线呀?
   
   下个月底会正式发布


-- 
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


[GitHub] [dubbo] a4363220 commented on issue #10679: provider 抛出自定义异常问题

Posted by GitBox <gi...@apache.org>.
a4363220 commented on issue #10679:
URL: https://github.com/apache/dubbo/issues/10679#issuecomment-1258862902

   > tri 协议目前暂不支持抛出异常,下个版本将正式支持抛自定义异常。
   
   您好 下个版本大概预计什么时间上线呀?


-- 
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


[GitHub] [dubbo] yanan-wyze commented on issue #10679: provider 抛出自定义异常问题

Posted by GitBox <gi...@apache.org>.
yanan-wyze commented on issue #10679:
URL: https://github.com/apache/dubbo/issues/10679#issuecomment-1275624346

   > > > tri 当前协议暂不支持抛出异常,下个版本将正式支持抛自定义异常。
   > > 
   > > 
   > > 您好下个版本预计什么时间上线呀?
   > 
   > 下个月底会正式发布
   
   请问dubbo 3.1.1 支持自定义抛出异常了吗?


-- 
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


[GitHub] [dubbo] a4363220 commented on issue #10679: provider 抛出自定义异常问题

Posted by GitBox <gi...@apache.org>.
a4363220 commented on issue #10679:
URL: https://github.com/apache/dubbo/issues/10679#issuecomment-1258256494

   碰到同样这种问题的朋友,也麻烦指教一下解决方案,多谢了,实在没有妥善的处置方式,只能退回dubbo协议来使用了。
   就我看到的issues,貌似方案2的形式也不能根本解决问题,在同一个实现方法中调用不同的provider接口好像更拿不到code和msg,不过这点我没有再深入研究了,只是有此疑问,更想得到最妥善的处理方式,多谢


-- 
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


[GitHub] [dubbo] AlbumenJ commented on issue #10679: provider 抛出自定义异常问题

Posted by GitBox <gi...@apache.org>.
AlbumenJ commented on issue #10679:
URL: https://github.com/apache/dubbo/issues/10679#issuecomment-1258859037

   tri 协议目前暂不支持抛出异常,下个版本将正式支持抛自定义异常。


-- 
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


[GitHub] [dubbo] a4363220 commented on issue #10679: provider 抛出自定义异常问题

Posted by GitBox <gi...@apache.org>.
a4363220 commented on issue #10679:
URL: https://github.com/apache/dubbo/issues/10679#issuecomment-1258882774

   > > > tri 协议目前暂不支持抛出异常,下个版本将正式支持抛自定义异常。
   > > 
   > > 
   > > 您好 下个版本大概预计什么时间上线呀?
   > 
   > 下个月底会正式发布
   
   好的


-- 
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


[GitHub] [dubbo] AlbumenJ closed issue #10679: provider 抛出自定义异常问题

Posted by GitBox <gi...@apache.org>.
AlbumenJ closed issue #10679: provider 抛出自定义异常问题
URL: https://github.com/apache/dubbo/issues/10679


-- 
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


[GitHub] [dubbo] JavaLionLi commented on issue #10679: provider 抛出自定义异常问题

Posted by GitBox <gi...@apache.org>.
JavaLionLi commented on issue #10679:
URL: https://github.com/apache/dubbo/issues/10679#issuecomment-1258268217

   方案三无问题一直都是这么用的 可以自己看源码 自己声明的异常不进行包装处理


-- 
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


[GitHub] [dubbo] a4363220 commented on issue #10679: provider 抛出自定义异常问题

Posted by GitBox <gi...@apache.org>.
a4363220 commented on issue #10679:
URL: https://github.com/apache/dubbo/issues/10679#issuecomment-1258846881

   > 方案三无问题一直都是这么用的 可以自己看源码 自己声明的异常不进行包装处理
   
   public void hello()throws BizException , 这种形式还需要将异常包装?


-- 
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


[GitHub] [dubbo] AlbumenJ commented on issue #10679: provider 抛出自定义异常问题

Posted by GitBox <gi...@apache.org>.
AlbumenJ commented on issue #10679:
URL: https://github.com/apache/dubbo/issues/10679#issuecomment-1285023555

   Enhanced in #10667


-- 
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