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

2.1.2
wuzhiping 5 years ago
parent bcafcb381d
commit 6a0ab3437f

@ -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