diff --git a/serializer/seata-serializer-hessian/src/main/java/io/seata/serializer/hessian/HessianSerializer.java b/serializer/seata-serializer-hessian/src/main/java/io/seata/serializer/hessian/HessianSerializer.java index cd729e223e4..ddeb67e4a5e 100644 --- a/serializer/seata-serializer-hessian/src/main/java/io/seata/serializer/hessian/HessianSerializer.java +++ b/serializer/seata-serializer-hessian/src/main/java/io/seata/serializer/hessian/HessianSerializer.java @@ -41,7 +41,7 @@ public byte[] serialize(T t) { ByteArrayOutputStream baos = new ByteArrayOutputStream(); Hessian2Output output = new Hessian2Output(baos); output.setSerializerFactory(HessianSerializerFactory.getInstance()); - output.writeObject(output); + output.writeObject(t); output.close(); stream = baos.toByteArray(); } catch (IOException e) {