Hide Forgot
Created attachment 803917 [details] Simple process with human task Description of problem: Often happens that the start of process times out thought it's a very simple process definition. I use the following jbpm remote client to perform the operations: RemoteRuntimeEngineFactory factory = new RemoteRestSessionFactory(deploymentId, url, userId, password); runtimeEngine = factory.newRuntimeEngine(); kieSession = runtimeEngine.getKieSession(); taskService = runtimeEngine.getTaskService(); then to start a process I just run "kieSession.startProcess(processId, parameters);" More often it happens on the configurations: windows 2012 server, oracle jdk 6 RHEL6 x86, oracle jdk 6 RHEL6 x86, openjdk 6 the list might not be complete but with these I'm sure that there not any other serious issues which would influence the performance. Stacktrace: java.lang.RuntimeException: Unable to post request: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:146) at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:166) at org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:90) at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:281) at org.apache.http.impl.conn.LoggingSessionInputBuffer.readLine(LoggingSessionInputBuffer.java:115) at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:92) at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:61) at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:254) at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:289) at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:252) at org.apache.http.impl.conn.ManagedClientConnectionImpl.receiveResponseHeader(ManagedClientConnectionImpl.java:191) at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:300) at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:127) at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:712) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:517) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805) at org.jboss.resteasy.client.core.executors.ApacheHttpClient4Executor.execute(ApacheHttpClient4Executor.java:182) at org.jboss.resteasy.core.interception.ClientExecutionContextImpl.proceed(ClientExecutionContextImpl.java:39) at org.jboss.resteasy.plugins.interceptors.encoding.AcceptEncodingGZIPInterceptor.execute(AcceptEncodingGZIPInterceptor.java:40) at org.jboss.resteasy.core.interception.ClientExecutionContextImpl.proceed(ClientExecutionContextImpl.java:45) at org.jboss.resteasy.client.ClientRequest.execute(ClientRequest.java:443) at org.jboss.resteasy.client.ClientRequest.httpMethod(ClientRequest.java:677) at org.jboss.resteasy.client.ClientRequest.post(ClientRequest.java:566) at org.jboss.resteasy.client.ClientRequest.post(ClientRequest.java:571) at org.kie.services.client.api.command.AbstractRemoteCommandObject.executeRestCommand(AbstractRemoteCommandObject.java:210) at org.kie.services.client.api.command.AbstractRemoteCommandObject.execute(AbstractRemoteCommandObject.java:69) at org.drools.core.command.impl.CommandBasedStatefulKnowledgeSession.startProcess(CommandBasedStatefulKnowledgeSession.java:230) at org.jboss.qa.bpms.jbpm.integration.client.Client.startProcess(Client.java:179) at org.jboss.qa.bpms.jbpm.integration.client.RemoteRuntimeTest.testGetTaskInstanceInfo(RemoteRuntimeTest.java:163) Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
More information about the issue will follow. Looks like there's a NPE on the server side.
I'm not sure but as I checked the server log It might be caused by https://bugzilla.redhat.com/show_bug.cgi?id=1011008 I will attach the server.log.
Created attachment 803962 [details] Part of server log with NPE and SQL violations I only add that I used Oracle 11gR2.
Marco, could you check why the REST service is not returning an error log if an exception is thrown internally?
Talked with Ivo and he mentioned that this hasn't been happening any more with the more recent code base. I've also tested on my own and not been able to reproduce this problem.
Setting to MODIFIED instead of CLOSED so it can be verified by QE as well.
Verified in BPMS 6.0.0.ER5