有人可以帮助解决以下错误。
我尝试了设置-Dfile.encoding = UTF-8 env变量的选项。这是在5个请求中平均有3个间歇性地发生,它给出了这个错误。
Caused by: org.kie.remote.common.rest.KieRemoteHttpRequestException: Unable to add char sequence to request body
at org.kie.remote.common.rest.KieRemoteHttpRequest.initializeConnection(KieRemoteHttpRequest.java:927) ~[kie-remote-common-6.4.0.Final.jar:6.4.0.Final]
at org.kie.remote.common.rest.KieRemoteHttpRequest.responseCode(KieRemoteHttpRequest.java:1326) ~[kie-remote-common-6.4.0.Final.jar:6.4.0.Final]
at org.kie.remote.common.rest.KieRemoteHttpRequest.post(KieRemoteHttpRequest.java:719) ~[kie-remote-common-6.4.0.Final.jar:6.4.0.Final]
at org.kie.server.client.impl.AbstractKieServicesClientImpl.makeHttpPostRequestAndCreateCustomResponse(AbstractKieServicesClientImpl.java:240) ~[kie-server-client-6.4.0.Final.jar:6.4.0.Final]
at org.kie.server.client.impl.AbstractKieServicesClientImpl.makeHttpPostRequestAndCreateCustomResponse(AbstractKieServicesClientImpl.java:235) ~[kie-server-client-6.4.0.Final.jar:6.4.0.Final]
at org.kie.server.client.impl.QueryServicesClientImpl.query(QueryServicesClientImpl.java:891) ~[kie-server-client-6.4.0.Final.jar:6.4.0.Final]
... 62 more
Caused by: java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method) ~[?:1.8.0_111]
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) ~[?:1.8.0_111]
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) ~[?:1.8.0_111]
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) ~[?:1.8.0_111]
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[?:1.8.0_111]
at java.net.Socket.connect(Socket.java:589) ~[?:1.8.0_111]
at sun.net.NetworkClient.doConnect(NetworkClient.java:175) ~[?:1.8.0_111]
at sun.net.www.http.HttpClient.openServer(HttpClient.java:432) ~[?:1.8.0_111]
at sun.net.www.http.HttpClient.openServer(HttpClient.java:527) ~[?:1.8.0_111]
at sun.net.www.http.HttpClient.<init>(HttpClient.java:211) ~[?:1.8.0_111]
at sun.net.www.http.HttpClient.New(HttpClient.java:308) ~[?:1.8.0_111]
at sun.net.www.http.HttpClient.New(HttpClient.java:326) ~[?:1.8.0_111]
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1202) ~[?:1.8.0_111]
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1138) ~[?:1.8.0_111]
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1032) ~[?:1.8.0_111]
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:966) ~[?:1.8.0_111]
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1316) ~[?:1.8.0_111]
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1291) ~[?:1.8.0_111]
at org.kie.remote.common.rest.KieRemoteHttpRequest.openOutput(KieRemoteHttpRequest.java:1110) ~[kie-remote-common-6.4.0.Final.jar:6.4.0.Final]
at org.kie.remote.common.rest.KieRemoteHttpRequest.initializeConnection(KieRemoteHttpRequest.java:924) ~[kie-remote-common-6.4.0.Final.jar:6.4.0.Final]
at org.kie.remote.common.rest.KieRemoteHttpRequest.responseCode(KieRemoteHttpRequest.java:1326) ~[kie-remote-common-6.4.0.Final.jar:6.4.0.Final]
at org.kie.remote.common.rest.KieRemoteHttpRequest.post(KieRemoteHttpRequest.java:719) ~[kie-remote-common-6.4.0.Final.jar:6.4.0.Final]
at org.kie.server.client.impl.AbstractKieServicesClientImpl.makeHttpPostRequestAndCreateCustomResponse(AbstractKieServicesClientImpl.java:240) ~[kie-server-client-6.4.0.Final.jar:6.4.0.Final]
at org.kie.server.client.impl.AbstractKieServicesClientImpl.makeHttpPostRequestAndCreateCustomResponse(AbstractKieServicesClientImpl.java:235) ~[kie-server-client-6.4.0.Final.jar:6.4.0.Final]
at org.kie.server.client.impl.QueryServicesClientImpl.query(QueryServicesClientImpl.java:891) ~[kie-server-client-6.4.0.Final.jar:6.4.0.Final]