- 服务提供者工作正常,但是消费者调用失败
com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method getUser in the service cn.luwfls.demo.dubbo.test.fascade.service.UserService. Tried 3 times of the providers [192.168.102.1:20880] (1/1) from the registry 192.168.102.128:2181 on the consumer 192.168.102.1 using the dubbo version 2.8.4. Last error is: Failed to invoke remote method: getUser, provider: dubbo://192.168.102.1:20880/cn.luwfls.demo.dubbo.test.fascade.service.UserService?anyhost=true&application=user_consumer&check=false&dubbo=2.5.3&interface=cn.luwfls.demo.dubbo.test.fascade.service.UserService&methods=getUser,createUser&pid=12128&revision=1.0-SNAPSHOT&side=consumer×tamp=1506742744985&version=1.0.0, cause: Fail to decode request due to: RpcInvocation [methodName=getUser, parameterTypes=[], arguments=null, attachments={path=cn.luwfls.demo.dubbo.test.fascade.service.UserService, input=234, dubbo=2.8.4, version=1.0.0}]
Caused by: com.alibaba.dubbo.remoting.RemotingException: Fail to decode request due to: RpcInvocation [methodName=getUser, parameterTypes=[], arguments=null, attachments={path=cn.luwfls.demo.dubbo.test.fascade.service.UserService, input=234, dubbo=2.8.4, version=1.0.0}]
原因
1. 检查服务提供者的dubbo版本是否与服务消费者的dubbo版本一致
服务端异常
``` com.alibaba.com.caucho.hessian.io.HessianProtocolException: expected map/object at java.lang.String ()
```
2. 传输的参数中是否包含了不能序列化的属性,例如ImmutableList、Joda DateTime等。
**解决办法**
1.传输的参数中去除不能序列化的属性,使用可序列化参数代替。