You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@eventmesh.apache.org by mi...@apache.org on 2022/12/01 08:22:20 UTC

[incubator-eventmesh] branch master updated: fixed ISSUE #2329 in.array() cause another exception.

This is an automated email from the ASF dual-hosted git repository.

mikexue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-eventmesh.git


The following commit(s) were added to refs/heads/master by this push:
     new 45dff0e01 fixed ISSUE #2329 in.array() cause another exception.
     new ef9abb7fc Merge pull request #2330 from jackyluo-learning/bugfix-branch
45dff0e01 is described below

commit 45dff0e01c97b148fa2b5578523e0de8305e4d09
Author: jackyluo <15...@qq.com>
AuthorDate: Thu Dec 1 15:08:04 2022 +0800

    fixed ISSUE #2329 in.array() cause another exception.
---
 .../java/org/apache/eventmesh/common/protocol/tcp/codec/Codec.java     | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/eventmesh-common/src/main/java/org/apache/eventmesh/common/protocol/tcp/codec/Codec.java b/eventmesh-common/src/main/java/org/apache/eventmesh/common/protocol/tcp/codec/Codec.java
index 296d6c50a..16cc962eb 100644
--- a/eventmesh-common/src/main/java/org/apache/eventmesh/common/protocol/tcp/codec/Codec.java
+++ b/eventmesh-common/src/main/java/org/apache/eventmesh/common/protocol/tcp/codec/Codec.java
@@ -29,7 +29,6 @@ import org.apache.eventmesh.common.utils.JsonUtils;
 import org.apache.commons.lang3.ArrayUtils;
 import org.apache.commons.lang3.StringUtils;
 
-import java.nio.charset.Charset;
 import java.util.Arrays;
 import java.util.List;
 import java.util.TimeZone;
@@ -134,7 +133,7 @@ public class Codec {
                 Package pkg = new Package(header, body);
                 out.add(pkg);
             } catch (Exception e) {
-                log.error("decode error| receive: {}.", deserializeBytes(in.array()));
+                log.error("tcp decoder error: ", e);
                 throw e;
             }
         }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: commits-help@eventmesh.apache.org