Timeout occurs during creating KieContainer via REST API
Issue
- When kie-server-client is used for creating KieContainer inside kie-server:
KieContainerResource resource = new KieContainerResource(containerId, new ReleaseId(groupID, artifactID, "1.0.0"));
ServiceResponse<KieContainerResource> kieServiceRes = kieServicesClient.createContainer(containerId, resource);
This operation sometimes fail with timeout exception:
Caused by: org.kie.remote.common.rest.KieRemoteHttpRequestException: Error occurred when trying to retrieve response code
at org.kie.remote.common.rest.KieRemoteHttpRequest.responseCode(KieRemoteHttpRequest.java:1331)
at org.kie.remote.common.rest.KieRemoteHttpRequest.put(KieRemoteHttpRequest.java:731)
at org.kie.server.client.impl.AbstractKieServicesClientImpl.makeHttpPutRequestAndCreateServiceResponse(AbstractKieServicesClientImpl.java:262)
at org.kie.server.client.impl.AbstractKieServicesClientImpl.makeHttpPutRequestAndCreateServiceResponse(AbstractKieServicesClientImpl.java:256)
at org.kie.server.client.impl.KieServicesClientImpl.createContainer(KieServicesClientImpl.java:143)
at org.MyClient.createContainer(KieServer.java:125)
at org.MyClient.fireRules(KieServer.java:77)
... 105 more
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
at java.net.SocketInputStream.read(SocketInputStream.java:170)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
at weblogic.net.http.MessageHeader.isHTTP(MessageHeader.java:226)
at weblogic.net.http.MessageHeader.parseHeader(MessageHeader.java:148)
at weblogic.net.http.HttpClient.parseHTTP(HttpClient.java:469)
at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:401)
at weblogic.net.http.SOAPHttpURLConnection.getInputStream(SOAPHttpURLConnection.java:37)
at weblogic.net.http.HttpURLConnection.getResponseCode(HttpURLConnection.java:1020)
at org.kie.remote.common.rest.KieRemoteHttpRequest.responseCode(KieRemoteHttpRequest.java:1329)
... 111 more
Environment
- Red Hat JBoss BPM Suite
- 6.x
- Red Hat JBoss BRMS
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
