forked from apache/dubbo
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kryo 序列化 null 的问题~ #356
Comments
翻了半天源码,发现,使用 kyro、fst 进行序列化时,参数为 null 的情况下,就不写入参数的数量,导致在反序列化的时候由于获取不到参数数量而报错,默认的序列化访问正常。问一下,原来为啥设计成这样?是 BUG,还是有特殊考虑? 序列化时的代码,com.alibaba.dubbo.rpc.protocol.dubbo.DubboCodec的encodeRequestData方法
反序列化时的代码,com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcInvocation 的 decode 方法
|
devenfan
pushed a commit
to devenfan/dubbox
that referenced
this issue
Sep 10, 2017
fix:修复 com.alibaba.dubbo.rpc.protocol.memcached.MemcachedProtocol 配置文件类名错误
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
使用过程中,发现一个问题,直连情况下参数传 null 正常,但是从注册中心走一遍,报错~
api
提供方
消费者
消费者直连XML
调用后提供方输出
消费者通过注册中心的XML
调用后提供方输出
提供方报错
消费者报错
The text was updated successfully, but these errors were encountered: