0 Replies Latest reply on Jul 12, 2013 10:17 AM by Alejandro Romero

    cxfbc:provider error Broken Pipe

    Alejandro Romero Newbie

      Hi all,

       

      We have a cxfbc:provider where the web service is in another external server. When we invoke too many threads, some of these generate the following error:

       

      2013-07-11 08:30:15,436 ERROR Servlet.service() for servlet AxisServlet threw exception

      org.apache.axiom.om.OMException: Error while writing to the OutputStream.

              at org.apache.axiom.om.impl.MIMEOutputUtils.complete(MIMEOutputUtils.java:165)

              at org.apache.axiom.om.impl.MTOMXMLStreamWriter.flush(MTOMXMLStreamWriter.java:159)

              at org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:472)

              at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:79)

              at org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUsingOutputStream(CommonsHTTPTransportSender.java:337)

              at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:214)

              at org.apache.axis2.engine.AxisEngine.sendFault(AxisEngine.java:530)

              at org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java:416)

              at org.apache.axis2.transport.http.AxisServlet.processAxisFault(AxisServlet.java:379)

              at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:167)

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)

              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)

              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)

              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)

              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)

              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)

              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)

              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)

              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)

              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

              at java.lang.Thread.run(Thread.java:662)

      Caused by: ClientAbortException:  java.net.SocketException: Broken pipe

              at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:358)

              at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:434)

              at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:349)

              at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:381)

              at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:370)

              at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:89)

              at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:83)

              at org.apache.axiom.om.impl.MIMEOutputUtils.writeMimeBoundary(MIMEOutputUtils.java:221)

              at org.apache.axiom.om.impl.MIMEOutputUtils.startWritingMime(MIMEOutputUtils.java:229)

              at org.apache.axiom.om.impl.MIMEOutputUtils.complete(MIMEOutputUtils.java:136)

              ... 29 more

      Caused by: java.net.SocketException: Broken pipe

              at java.net.SocketOutputStream.socketWrite0(Native Method)

              at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)

              at java.net.SocketOutputStream.write(SocketOutputStream.java:136)

              at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:740)

              at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:434)

              at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:349)

              at org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:764)

              at org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:124)

              at org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:573)

              at org.apache.coyote.Response.doWrite(Response.java:560)

              at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:353)

              ... 38 more

       

      We thought that the problem was a timeout but we have set the following configuration:

       

           <http-conf:conduit

                name="servicePort.http-conduit">

       

                <!-- deactivate HTTPS url hostname verification (localhost, etc) -->

                <!-- WARNING ! disableCNcheck=true should NOT be used in production -->

                <!--  <http-conf:tlsClientParameters disableCNcheck="true" />  -->

                <http-conf:client ConnectionTimeout="1080000000" ReceiveTimeout="1080000000" />

           </http-conf:conduit>

       

      but the problem is kept,  any idea?

       

      Thanks!