修复bug: 执行器线程阻塞时给管理器返回的json中有特殊符号,导致管理器端一直报错, 使用getBytes utf-8即可。

master
wuzhiping 5 years ago
parent bcafcb381d
commit 6a0ab3437f
  1. 2
      xxl-job-core/src/main/java/com/xxl/job/core/util/XxlJobRemotingUtil.java

@ -57,7 +57,7 @@ public class XxlJobRemotingUtil {
String requestBody = BasicJson.toJson(requestObj);
DataOutputStream dataOutputStream = new DataOutputStream(connection.getOutputStream());
dataOutputStream.writeBytes(requestBody);
dataOutputStream.write(requestBody.getBytes("UTF-8"));
dataOutputStream.flush();
dataOutputStream.close();

Loading…
Cancel
Save