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

   jdk: 1.8.0_202-b08
   vm: k8s
   dubbo version: 2.7.15
   
   consumer端发起dubbo
   示例代码如下:
   
   @DubboReference
   private TestFacade testFacade;
   
   public void test(XxxTestReq req) {
         Response<XxxTestResp> resp = testFacade.test(req);
   }
   
   其中Response的定义:
   public class Response<T>  implements Serializable {
            private static final long serialVersionUID = 1L;
            public T data;
   }
   
   在获取resp.getData()的时候,发现,其运行时的对象不是XxxTestResp,二十一个HashMap,同时,我们检查了
   XxxTestResp对象,其实现了Serializable 
并且显示指定了serialVersionUID,dubbo的consumer和provider对应的serialVersionUID也都是一样的
   
   出现问题的代码是在开发环境,但是相同的代码在测试环境运行,就不会出现ClassCastException,并且运行正常
   ,dubbo的请求和环境有关吗?


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