Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-18613

[GSS](7.2.z) RESTEASY-2492 - RESTEASY-1986 - RESTEASY002030: Failed to write event org.jboss.resteasy.plugins.providers.sse.OutboundSseEventImpl@42adbd75: java.io.IOException: Broken pipe

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.2.8.CR1, 7.2.8.GA
    • 7.2.6.GA
    • Web Services
    • None
    • +
    • Hide

      Steps to reproduce:

      1. Deploy resteasytest/server artifact into JBoss EAP

      2. Run the resteasytest/client application.

      3. Check the server.log for a similar exception trace

      15:55:51,024 ERROR [org.jboss.resteasy.resteasy_jaxrs.i18n] (ForkJoinPool.commonPool-worker-19) RESTEASY002030: Failed to write event org.jboss.resteasy.plugins.providers.sse.OutboundSseEventImpl@28732c7e: java.io.IOException: Broken pipe
      	at java.base/sun.nio.ch.FileDispatcherImpl.writev0(Native Method)
      	at java.base/sun.nio.ch.SocketDispatcher.writev(SocketDispatcher.java:51)
      	at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:182)
      	at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:130)
      	at java.base/sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:496)
      	at org.jboss.xnio.nio@3.7.6.SP2-redhat-00001//org.xnio.nio.NioSocketConduit.write(NioSocketConduit.java:162)
      	at io.undertow.core@2.0.28.SP1-redhat-00001//io.undertow.server.protocol.http.HttpResponseConduit.write(HttpResponseConduit.java:647)
      	at io.undertow.core@2.0.28.SP1-redhat-00001//io.undertow.conduits.ChunkedStreamSinkConduit.doWrite(ChunkedStreamSinkConduit.java:166)
      	at io.undertow.core@2.0.28.SP1-redhat-00001//io.undertow.conduits.ChunkedStreamSinkConduit.write(ChunkedStreamSinkConduit.java:128)
      	at org.jboss.xnio@3.7.6.SP2-redhat-00001//org.xnio.conduits.ConduitStreamSinkChannel.write(ConduitStreamSinkChannel.java:150)
      	at io.undertow.core@2.0.28.SP1-redhat-00001//io.undertow.channels.DetachableStreamSinkChannel.write(DetachableStreamSinkChannel.java:240)
      	at io.undertow.core@2.0.28.SP1-redhat-00001//io.undertow.server.HttpServerExchange$WriteDispatchChannel.write(HttpServerExchange.java:2105)
      	at io.undertow.servlet@2.0.28.SP1-redhat-00001//io.undertow.servlet.spec.ServletOutputStreamImpl.writeBufferBlocking(ServletOutputStreamImpl.java:574)
      	at io.undertow.servlet@2.0.28.SP1-redhat-00001//io.undertow.servlet.spec.ServletOutputStreamImpl.flushInternal(ServletOutputStreamImpl.java:489)
      	at io.undertow.servlet@2.0.28.SP1-redhat-00001//io.undertow.servlet.spec.ServletOutputStreamImpl.flush(ServletOutputStreamImpl.java:476)
      	at io.undertow.servlet@2.0.28.SP1-redhat-00001//io.undertow.servlet.spec.HttpServletResponseImpl.flushBuffer(HttpServletResponseImpl.java:516)
      	at org.jboss.resteasy.resteasy-jaxrs@3.6.1.SP7-redhat-00001//org.jboss.resteasy.plugins.server.servlet.HttpServletResponseWrapper.flushBuffer(HttpServletResponseWrapper.java:124)
      	at org.jboss.resteasy.resteasy-jaxrs@3.6.1.SP7-redhat-00001//org.jboss.resteasy.plugins.providers.sse.SseEventOutputImpl.writeEvent(SseEventOutputImpl.java:264)
      	at org.jboss.resteasy.resteasy-jaxrs@3.6.1.SP7-redhat-00001//org.jboss.resteasy.plugins.providers.sse.SseEventOutputImpl.send(SseEventOutputImpl.java:199)
      	at org.jboss.resteasy.resteasy-jaxrs@3.6.1.SP7-redhat-00001//org.jboss.resteasy.plugins.providers.sse.SseBroadcasterImpl.lambda$null$4(SseBroadcasterImpl.java:150)
      	at java.base/java.util.concurrent.ConcurrentLinkedQueue.forEachFrom(ConcurrentLinkedQueue.java:1037)
      	at java.base/java.util.concurrent.ConcurrentLinkedQueue.forEach(ConcurrentLinkedQueue.java:1054)
      	at org.jboss.resteasy.resteasy-jaxrs@3.6.1.SP7-redhat-00001//org.jboss.resteasy.plugins.providers.sse.SseBroadcasterImpl.lambda$broadcast$5(SseBroadcasterImpl.java:146)
      	at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1736)
      	at java.base/java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1728)
      	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
      	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
      	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
      	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
      	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:177)
      
      Show
      Steps to reproduce: 1. Deploy resteasytest/server artifact into JBoss EAP 2. Run the resteasytest/client application. 3. Check the server.log for a similar exception trace 15:55:51,024 ERROR [org.jboss.resteasy.resteasy_jaxrs.i18n] (ForkJoinPool.commonPool-worker-19) RESTEASY002030: Failed to write event org.jboss.resteasy.plugins.providers.sse.OutboundSseEventImpl@28732c7e: java.io.IOException: Broken pipe at java.base/sun.nio.ch.FileDispatcherImpl.writev0(Native Method) at java.base/sun.nio.ch.SocketDispatcher.writev(SocketDispatcher.java:51) at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:182) at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:130) at java.base/sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:496) at org.jboss.xnio.nio@3.7.6.SP2-redhat-00001//org.xnio.nio.NioSocketConduit.write(NioSocketConduit.java:162) at io.undertow.core@2.0.28.SP1-redhat-00001//io.undertow.server.protocol.http.HttpResponseConduit.write(HttpResponseConduit.java:647) at io.undertow.core@2.0.28.SP1-redhat-00001//io.undertow.conduits.ChunkedStreamSinkConduit.doWrite(ChunkedStreamSinkConduit.java:166) at io.undertow.core@2.0.28.SP1-redhat-00001//io.undertow.conduits.ChunkedStreamSinkConduit.write(ChunkedStreamSinkConduit.java:128) at org.jboss.xnio@3.7.6.SP2-redhat-00001//org.xnio.conduits.ConduitStreamSinkChannel.write(ConduitStreamSinkChannel.java:150) at io.undertow.core@2.0.28.SP1-redhat-00001//io.undertow.channels.DetachableStreamSinkChannel.write(DetachableStreamSinkChannel.java:240) at io.undertow.core@2.0.28.SP1-redhat-00001//io.undertow.server.HttpServerExchange$WriteDispatchChannel.write(HttpServerExchange.java:2105) at io.undertow.servlet@2.0.28.SP1-redhat-00001//io.undertow.servlet.spec.ServletOutputStreamImpl.writeBufferBlocking(ServletOutputStreamImpl.java:574) at io.undertow.servlet@2.0.28.SP1-redhat-00001//io.undertow.servlet.spec.ServletOutputStreamImpl.flushInternal(ServletOutputStreamImpl.java:489) at io.undertow.servlet@2.0.28.SP1-redhat-00001//io.undertow.servlet.spec.ServletOutputStreamImpl.flush(ServletOutputStreamImpl.java:476) at io.undertow.servlet@2.0.28.SP1-redhat-00001//io.undertow.servlet.spec.HttpServletResponseImpl.flushBuffer(HttpServletResponseImpl.java:516) at org.jboss.resteasy.resteasy-jaxrs@3.6.1.SP7-redhat-00001//org.jboss.resteasy.plugins.server.servlet.HttpServletResponseWrapper.flushBuffer(HttpServletResponseWrapper.java:124) at org.jboss.resteasy.resteasy-jaxrs@3.6.1.SP7-redhat-00001//org.jboss.resteasy.plugins.providers.sse.SseEventOutputImpl.writeEvent(SseEventOutputImpl.java:264) at org.jboss.resteasy.resteasy-jaxrs@3.6.1.SP7-redhat-00001//org.jboss.resteasy.plugins.providers.sse.SseEventOutputImpl.send(SseEventOutputImpl.java:199) at org.jboss.resteasy.resteasy-jaxrs@3.6.1.SP7-redhat-00001//org.jboss.resteasy.plugins.providers.sse.SseBroadcasterImpl.lambda$null$4(SseBroadcasterImpl.java:150) at java.base/java.util.concurrent.ConcurrentLinkedQueue.forEachFrom(ConcurrentLinkedQueue.java:1037) at java.base/java.util.concurrent.ConcurrentLinkedQueue.forEach(ConcurrentLinkedQueue.java:1054) at org.jboss.resteasy.resteasy-jaxrs@3.6.1.SP7-redhat-00001//org.jboss.resteasy.plugins.providers.sse.SseBroadcasterImpl.lambda$broadcast$5(SseBroadcasterImpl.java:146) at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1736) at java.base/java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1728) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:177)

    Description

      RESTEASY002030: Failed to write event org.jboss.resteasy.plugins.providers.sse.OutboundSseEventImpl@42adbd75: java.io.IOException: Broken pipe

      Environment:
      Using JBoss EAP 7.2.6 + RESTEasy Client and testing with the resteasytest.zip project.

      Attachments

        Issue Links

          Activity

            People

              istudens@redhat.com Ivo Studensky
              rhn-support-wqueiroz Wagner Queiroz
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: