From 76107af16ec21e43bb70a3a7861a896fa6774560 Mon Sep 17 00:00:00 2001 From: qixiaobo Date: Tue, 25 Jun 2019 22:30:09 +0800 Subject: [PATCH] Dubbo throws IoException with error message while decoding fail --- .../alibaba/dubbo/rpc/protocol/dubbo/DecodeableRpcResult.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dubbo-rpc/dubbo-rpc-dubbo/src/main/java/com/alibaba/dubbo/rpc/protocol/dubbo/DecodeableRpcResult.java b/dubbo-rpc/dubbo-rpc-dubbo/src/main/java/com/alibaba/dubbo/rpc/protocol/dubbo/DecodeableRpcResult.java index f774557a604..e43080a9bf8 100644 --- a/dubbo-rpc/dubbo-rpc-dubbo/src/main/java/com/alibaba/dubbo/rpc/protocol/dubbo/DecodeableRpcResult.java +++ b/dubbo-rpc/dubbo-rpc-dubbo/src/main/java/com/alibaba/dubbo/rpc/protocol/dubbo/DecodeableRpcResult.java @@ -128,7 +128,7 @@ public Object decode(Channel channel, InputStream input) throws IOException { } break; default: - throw new IOException("Unknown result flag, expect '0' '1' '2', get " + flag); + throw new IOException("Unknown result flag, expect '0' '1' '2' '3' '4' '5', get " + flag); } if (in instanceof Cleanable) { ((Cleanable) in).cleanup();