0 Replies Latest reply on Nov 19, 2014 6:44 AM by raghav prakasam

    Concurrency Error in Wildfly 8.1.0 final version

    raghav prakasam Newbie

      Hi,

       

      Please anyone help me resolving the below error which i am getting for a concurrent hit of a URL with 50 or more users:

       

      12:04:52,874 ERROR [io.undertow.request] (default task-27) Undertow request failed HttpServerExchange{ POST /**************************************}: java.lang.RuntimeException: java.io.IOException: Broken pipe

              at io.undertow.servlet.spec.HttpServletResponseImpl.responseDone(HttpServletResponseImpl.java:562)

              at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:307)

              at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:246)

              at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:75)

              at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:165)

              at io.undertow.server.Connectors.executeRootHandler(Connectors.java:197)

              at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:737)

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_65]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_65]

              at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_65]

      Caused by: java.io.IOException: Broken pipe

              at sun.nio.ch.FileDispatcherImpl.writev0(Native Method) [rt.jar:1.7.0_65]

              at sun.nio.ch.SocketDispatcher.writev(SocketDispatcher.java:51) [rt.jar:1.7.0_65]

              at sun.nio.ch.IOUtil.write(IOUtil.java:148) [rt.jar:1.7.0_65]

              at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:524) [rt.jar:1.7.0_65]

              at org.xnio.nio.NioSocketConduit.write(NioSocketConduit.java:159) [xnio-nio-3.2.2.Final.jar:3.2.2.Final]

              at io.undertow.server.protocol.http.HttpResponseConduit.write(HttpResponseConduit.java:561)

              at io.undertow.conduits.ChunkedStreamSinkConduit.doWrite(ChunkedStreamSinkConduit.java:171)

              at io.undertow.conduits.ChunkedStreamSinkConduit.writeFinal(ChunkedStreamSinkConduit.java:233)

              at org.xnio.conduits.ConduitStreamSinkChannel.writeFinal(ConduitStreamSinkChannel.java:104) [xnio-api-3.2.2.Final.jar:3.2.2.Final]

              at io.undertow.channels.DetachableStreamSinkChannel.writeFinal(DetachableStreamSinkChannel.java:190)

              at io.undertow.servlet.spec.ServletOutputStreamImpl.writeBufferBlocking(ServletOutputStreamImpl.java:564)

              at io.undertow.servlet.spec.ServletOutputStreamImpl.close(ServletOutputStreamImpl.java:598)

              at io.undertow.servlet.spec.HttpServletResponseImpl.closeStreamAndWriter(HttpServletResponseImpl.java:477)

              at io.undertow.servlet.spec.HttpServletResponseImpl.responseDone(HttpServletResponseImpl.java:560)

              ... 9 more

       

       

      Also you can refer the below URL FYR:

      Re: Channel was closed mid-chunk