AlbumenJ commented on issue #10165:
URL: https://github.com/apache/dubbo/issues/10165#issuecomment-1169445952

   > ## 这里面是请求的业务实现的,你可以查一下你的服务端实现是不是有问题
   > @AlbumenJ 我查了下服务端没有什么问题, 现在我是通过如下方法解决的。但是这种方法不是很好。
   > 
   > AtomicBoolean flag = flagMap.get(group); if(null == flag || 
!flag.get()){//第一次调用 result = (Map<String, Object>) 
genericService.$invoke(method, new String[]{param.getClass().getName()}, new 
Object[]{PojoUtils.generalize(param)}); flag = new AtomicBoolean(true); 
flagMap.put(group,flag); }else{//非第一次调用 result = (Map<String, Object>) 
genericService.$invoke(method, new String[]{param.getClass().getName()}, new 
Object[]{JSONObject.toJSONString(param)}); }
   
   你在服务端打断点,第一次请求到 `wrapper.invokeMethod` 的时候看下是不是抛异常了,如果是的话再去业务代码里面打断点


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to