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

dubboVersion为"2.8.4a" 可以使用该库解析吗? #311

Closed miracle-xiang closed 2 years ago

miracle-xiang commented 2 years ago

What would you like to be added:

Why is this needed:

wongoo commented 2 years ago

@miracle-xiang pls provide more details, like golang struct definition, java object definition, your unit test, etc..

wongoo commented 2 years ago

@miracle-xiang there is an example that decoding data from java, u can create a new unit test:

miracle-xiang commented 2 years ago

您好, 麻烦您帮忙看下, 我的UT和PCAP。 dubbo-go-hessian2 tag v1.11.0

Downloads.zip

我想参照codecR.ReadBody来解析body https://github.com/apache/dubbo-go-hessian2/blob/master/hessian_test.go#L177

不使用java解码可以么?

wongoo commented 2 years ago

@miracle-xiang the dubbo version 2.8.4a seems not the official version, the protocol is incompatible. https://github.com/wongoo/dubbo-go-test/blob/cc71636a7b6678833271243b60ecbdada4521d3f/hessian_issue311/parse_dubbo_test.go#L43

AlexStocks commented 2 years ago

The dubbo version v2.8.4a belongs to dubbox which was maintained by DangDang before 2018. And then it was merged into dubbo 2.6. Now it has been out of date.

AlexStocks commented 2 years ago

@wongoo can we close this issue?

wongoo commented 2 years ago

@miracle-xiang I will close this issue,u can open a new issue if having other questions.