apache / dubbo-go-hessian2

caucho hessian2 implementation in Go for [apache/dubbo-go](https://github.com/apache/dubbo-go) which is compatible with [dubbo-hessian-lite](https://github.com/apache/dubbo-hessian-lite)
Apache License 2.0
209 stars 113 forks source link

dubbo-java 调用 dubbo-go方法,如果方法返回值为 基本类型,java侧无法解析 #291

Closed luky116 closed 2 years ago

luky116 commented 2 years ago

What happened: java-dubbo-client 调用 Dubbo-go-server的方法,结果值为int类型,go把这个值的类型转成了 J 作为返回值。但是java-client没办法解析这个类型

1637428671264_41DC60BB-090A-4A12-91AF-B3EB7E2B2AEB

这是java侧的效果:

1637428671267_A00F0138-F775-400A-AAA9-247440E1267B What you expected to happen: 希望java-client能识别 J 为int类型,并解析出response

How to reproduce it (as minimally and precisely as possible): 可以参考dubbogo-sample这个例子,能复现问题: https://github.com/luky116/dubbo-go-samples/tree/fix-tpcTripleHessian2/rpc/triple/hessian2

Anything else we need to know?: no

binbin0325 commented 2 years ago

@luky116 已经定位到问题的根因,只有tri协议时才会出现,我会在dubbo-go/grpc-go中提交pr修复它,这个问题本质和hessian2无关

wongoo commented 2 years ago

@sanxun0325 pls add a link ref to the pr submitted in dubbo-go.