Skip to content

Commit

Permalink
Dubbo throws exception when use java serializer #4612 (#4613)
Browse files Browse the repository at this point in the history
  • Loading branch information
qixiaobo authored and beiwei30 committed Jul 22, 2019
1 parent 443b6ff commit a5e3f54
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,11 @@ protected Object decodeBody(Channel channel, InputStream is, byte[] header) thro
}
try {
Object data;
ObjectInput in = CodecSupport.deserialize(channel.getUrl(), is, proto);
if (req.isHeartbeat()) {
ObjectInput in = CodecSupport.deserialize(channel.getUrl(), is, proto);
data = decodeHeartbeatData(channel, in);
} else if (req.isEvent()) {
ObjectInput in = CodecSupport.deserialize(channel.getUrl(), is, proto);
data = decodeEventData(channel, in);
} else {
DecodeableRpcInvocation inv;
Expand Down

0 comments on commit a5e3f54

Please sign in to comment.