apache / dubbo-go

Go Implementation For Apache Dubbo .
https://dubbo.apache.org/
Apache License 2.0
4.71k stars 925 forks source link

Fail to decode request due to: RpcInvocation #264

Closed fionawp closed 4 years ago

fionawp commented 4 years ago

What happened:

Java server dubbo version: 2.6.6 or 2.6.5.
client: apache/dubbo-go v1.2.0 apache/dubbo-go-hessian2 v1.3.0

The server interface is : image image

Golang errors: using the dubbo version 2.6.0. Last error is java exception:Fail to decode request due to: RpcInvocation [methodName=queryDataDictionary, parameterTypes=[class java.lang.Object, class java.lang.Object], arguments=null, attachments={path=xx.xx.mt.MyProcessor, input=355, dubbo=2.0.2, version=}].

Jave errors: WARN:com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcInvocation.decode(DecodeableRpcInvocation.java:73) - [DUBBO] Decode rpc invocation failed: readObject: unexpected end of file, dubbo version: 2.6.5 What you expected to happen:

How to reproduce it (as minimally and precisely as possible): These errors happen everytime(必现)

Anything else we need to know?:

fionawp commented 4 years ago

Here is golang config: image

Here is golang interface: image

fangyincheng commented 4 years ago

you can try to use func(ctx context.Context, req *DictionaryDto) (interface{}, error)

fangyincheng commented 4 years ago

Hi, Has the problem been solved? @fionawp

fionawp commented 4 years ago

@fangyincheng Yes, it has been solved. Thank you very much!