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/10/10 07:39:24 UTC

[GitHub] [dubbo] xiongwu1 opened a new issue, #10725: ListenableFilter Deprecated

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

   升级到dubbo 3.1.0后发现ListenableFilter被定义为已过时了,那么请问现在要实现在dubbo调用中传递信息使用哪个呢,看ListenableFilter的定义直接继承ExceptionFilter,但是发现appRespons返回的是RuntimeException,而不是自定的异常,无法捕获
   
   ![image](https://user-images.githubusercontent.com/15642586/194817722-3ea1572f-d100-42b4-a56d-b177568273d1.png)
   


-- 
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 #10725: ListenableFilter Deprecated

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

   ListenableFilter 已经被 Filter 和 ClusterFilter 替换了,如果需要在返回时进行拦截,可以添加实现 BaseFilter.Listener 的接口。
   
   > 看ListenableFilter的定义推荐直接继承ExceptionFilter


-- 
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 #10725: ListenableFilter Deprecated

Posted by GitBox <gi...@apache.org>.
AlbumenJ closed issue #10725: ListenableFilter Deprecated
URL: https://github.com/apache/dubbo/issues/10725


-- 
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] xiongwu1 commented on issue #10725: ListenableFilter Deprecated

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

   @AlbumenJ 麻烦大佬给予解答一下 谢谢


-- 
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] xiongwu1 commented on issue #10725: ListenableFilter Deprecated

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

   感谢 自定义 filter 默认在内置 filter 之后,通过@Activate(order = 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