wanwenq33 commented on issue #13814:
URL: https://github.com/apache/dubbo/issues/13814#issuecomment-1979913670

   我加了-XX:-OmitStackTraceInFastThrow,报错日志也还是上面一样的,没有更多有效日志打印
   jdk8+dubbo3.0.15+spring-core-5.3.27 + k8s部署
   
   provider和consumer配置的xml,没有使用dubbo复杂功能,只用了简单的rpc。<dubbo:service
   interface="com.XXX....IUserService"
   ref="userService" />
   
   
我在测试环境复现出了上面错误,复现场景,一个consumer-A,两个provider-B和C。A调用B和C的dubbo接口,dubbo接口参数是一个枚举类,我在枚举类里新增一种类型NEW,只把A和B升级编译新增了枚举类型NEW,C还是用的老的代码不含新的枚举类型。调用接口的时候A调用B返回200,A调用C返回报错java.lang.IllegalArgumentException:
 No enum constan。但再多调用几次就会出现上面的报错org.apache.dubbo.remoting.RemotingException: 
Fail to decode request due to: java.lang.NullPointerException
   <img width="362" alt="1709688189821" 
src="https://github.com/apache/dubbo/assets/24560821/3b4da071-3eaf-4f84-9e81-50669afaca82";>
   代码如下:
   userService.update(AndroidDevice.NEW);
   
   public enum AndroidDevice {
   
       DEFAULT(0), OLD(6), NEW(7);
   
       private int value;
   
       AndroidDevice(int value) {
           this.value = value;
       }
   
       public int value() {
           return value;
       }
   }


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