apache / dubbo

The java implementation of Apache Dubbo. An RPC and microservice framework.
https://dubbo.apache.org/
Apache License 2.0
40.48k stars 26.43k forks source link

Serialization exception when there's List type in DTO #1484

Closed learndockering closed 6 years ago

learndockering commented 6 years ago

dubbox以前遗留的老问题,一个模型存在List这类变量在调用过程中出现调用失败的情况,必须使用数组传输才行 比如:List 改成 String[],否则调用会报一下错误 0c71a29a-dc6d-43c4-ae93-0bbbbbff9981

chickenlj commented 6 years ago

Hi,

Please consider using English, Dubbo is a global community, and all the issues may be viewed and discussed by people all over the world.

Seems to be a serialization problem, have you tried use other serialization framework, say hessian2, fastjson?

Please send more details to @dev@dubbo.apache.org for in-depth discussion.

Thanks

leiwei2094 commented 6 years ago

As @chickenlj mentioned, does this issue only occur while using kryo serialization? It maybe a serialization problem.

zonghaishang commented 6 years ago

@learndockering Please provide the object structure that List contains or your unit test code, thanks.

chickenlj commented 6 years ago

Closed. Reopen if necessary.