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/11/18 07:52:48 UTC

[GitHub] [dubbo] wxbty commented on issue #10950: Dubbo lacks extensions for exceptions

wxbty commented on issue #10950:
URL: https://github.com/apache/dubbo/issues/10950#issuecomment-1319659765

   @AlbumenJ 
   After testing, the generalization of the server needs to fill in the same interface name as the consumer. Otherwise, the checkSerialization method in CodecSupport will be intercepted and an exception will be returned to the consumer without any extension point.
   
   ```java
   // 该实例很重量,里面封装了所有与注册中心及服务提供方连接,请缓存 
   ServiceConfig<GenericService> service = new ServiceConfig<GenericService>();
   // 弱类型接口名 
   service.setInterface("com.xxx.XxxService");  //-----------这里限制了任意接口的访问  
   service.setVersion("1.0.0"); 
   // 指向一个通用服务实现 
   service.setRef(xxxService); 
   ```
   
   What I expect is that the server can accept any interface name and method, and then customize the return content.


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