System: 7.2.0040.0206 Win64.SQLServer + XCP 2.2 (Patch 14).
Context :
I have a simple workflow that is started after importing an excel file into the system (triggered by the XCP business event). The workflow has only one activity : an automatic activity (Java Service) that is processing the records found in the excel file and creating document objects. When the execution of the task takes more than 5 minutes the task fails to finish properly, the java code is executed but i get in the bpm.log the following error :
2017-07-05 12:08:43,063 ERROR [http-0.0.0.0-0.0.0.0-9080-2] [com.documentum.mthdservlet.DoMethod] - Exception invoking com.documentum.bpm.services.BPSIntegrationMethod.
ClientAbortException: java.net.SocketException: Software caused connection abort: socket write error
at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:352)
at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:316)
at org.apache.catalina.connector.CoyoteOutputStream.flush(CoyoteOutputStream.java:98)
at com.documentum.mthdservlet.MethodOutputStream.flush(Unknown Source)
at com.documentum.mthdservlet.MethodOutputStream.flush(Unknown Source)
at com.documentum.mthdservlet.MethodOutputStream.methodClose(Unknown Source)
at com.documentum.mthdservlet.AMethodRunner.runAndReturnStatus(Unknown Source)
at com.documentum.mthdservlet.DoMethod.invokeMethod(Unknown Source)
at com.documentum.mthdservlet.DoMethod.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.SocketException: Software caused connection abort: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:113)
at java.net.SocketOutputStream.write(SocketOutputStream.java:159)
at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:724)
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:449)
at org.apache.coyote.http11.InternalOutputBuffer.flush(InternalOutputBuffer.java:299)
at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:1027)
at org.apache.coyote.Response.action(Response.java:190)
at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:347)
... 23 more
Also the task/workflow remains in the active state until the timeout on the task expires (the timeout configured on the activity in XCP Designer) and then it goes to "failed" state.
Does anyone has an idea how to solve this "socket write error" and where to look? I have a feeling that there is some kind of timeout that is not controlled by the "activity timeout" settings and after this the socket is closed.