1. 序列化出现 UnsupportedOperationException
Caused by: com.alibaba.dubbo.remoting.RemotingException: java.lang.UnsupportedOperationException: com.alibaba.com.caucho.hessian.io.BasicDeserializer@36a21bcf
java.lang.UnsupportedOperationException: com.alibaba.com.caucho.hessian.io.BasicDeserializer@36a21bcf
at com.alibaba.com.caucho.hessian.io.AbstractDeserializer.readObject(AbstractDeserializer.java:103)
at com.alibaba.com.caucho.hessian.io.Hessian2Input.readObjectInstance(Hessian2Input.java:2067)
... 47 more
反序列化失败,一般就是,就是配置了Dubbo Filter 把返回值修改了。导致客户端在读取的和方法返回值不一致。
- 如果dubbo服务器抛出来的异常,客户端没法识别怎么办?
dubbo会统一封装为 RpcException