dangdangdotcom / dubbox

Dubbox now means Dubbo eXtensions, and it adds features like RESTful remoting, Kyro/FST serialization, etc to the Dubbo service framework.
http://dangdangdotcom.github.io/dubbox
Apache License 2.0
4.9k stars 2.06k forks source link

dubbox2.8.4作为provider,dubbo2.5.3作为consumer调用报错 #320

Open smileMrLee opened 7 years ago

smileMrLee commented 7 years ago

dubbox2.8.4 作为provider提供服务 dubbo2.5.3作为consumer消费服务 consumer调用时,报下面的错:Caused by: com.alibaba.dubbo.remoting.RemotingException: Fail to decode request due to: RpcInvocation [methodName=doSomething, parameterTypes=null, arguments=null, attachments={path=com.dubbox.study.api.StudyService, input=414, dubbo=2.5.3-RC1, version=0.0.0}] at com.alibaba.dubbo.remoting.exchange.support.DefaultFuture.returnFromResponse(DefaultFuture.java:190)

传参和反参都都已经implements Serializable

dubbo2.5.3 作为provider提供服务 dubbox2.8.4作为consumer消费服务 consumer调用时,报错和上面一样。

kimmking commented 7 years ago

client升级一下呗

oleilei commented 7 years ago

同样的问题

zhangjh953166 commented 7 years ago

I have the same problem. The reason is that the processing of the decoding method is different。 DecodeableRpcInvocation.decode

zhangjh953166 commented 7 years ago

use under code.can fix this problem. String dubbo_version = this.getAttachment(Constants.DUBBO_VERSION_KEY); int argNum = -1; if(dubbo_version.contains(dubbox_version)){ argNum = in.readInt(); }

lujs678 commented 7 years ago

@zhangjh953166 dubbox_version 这个变量要写死?2.8.4?