ICEfaces
  1. ICEfaces
  2. ICE-10354

showcase-mobile - java.io.IOException: Broken pipe when uploading media files (WildFly8.1.0.Final, GlassFish4.1)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: EE-4.0.0.GA, 4.1
    • Labels:
      None
    • Environment:
      showcase-mobile (with multipart-config tag added to web.xml)
      Server: WildFly 8.1.0.Final
      Browsers: Safari/ iOS7
      BridgeIt: v.1.0.5
    • Affects:
      Compatibility/Configuration

      Description

      On the Mobi demos where video or audio files can be uploaded (Camcorder/ Microphone), a server error is seen in the log each time user uploads a file, although there are no functional issues with these demos.
      This is not an issue on Tomcat7.

      For deployment onto WildFly 8.1.0, the showcase.war file was built with "web-profile" ant target, and the multipart-config tag was added to the web.xml, using servlet 3.0 configuration:
      <multipart-config>
                   <max-file-size>52428800</max-file-size>
                   <max-request-size>52428800</max-request-size>
                   <file-size-threshold>0</file-size-threshold>
      </multipart-config>


      2014-10-23 17:17:12,784 ERROR [io.undertow.request] (default task-12) Blocking request failed HttpServerExchange{ GET /showcase/javax.faces.resource/44f2499b-60df-46c3-98f4-68b88a4b091a.jsf;jsessionid=agwuIDkqVJaB22396fojk7TS}: java.lang.RuntimeException: java.io.IOException: Broken pipe
          at io.undertow.servlet.spec.HttpServletResponseImpl.responseDone(HttpServletResponseImpl.java:527)
          at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:287)
          at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227)
          at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73)
          at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146)
          at io.undertow.server.Connectors.executeRootHandler(Connectors.java:177)
          at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:727)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_07]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_07]
          at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_07]
      Caused by: java.io.IOException: Broken pipe
          at sun.nio.ch.FileDispatcherImpl.write0(Native Method) [rt.jar:1.7.0_07]
          at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47) [rt.jar:1.7.0_07]
          at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:89) [rt.jar:1.7.0_07]
          at sun.nio.ch.IOUtil.write(IOUtil.java:46) [rt.jar:1.7.0_07]
          at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:450) [rt.jar:1.7.0_07]
          at org.xnio.nio.NioSocketConduit.write(NioSocketConduit.java:150) [xnio-nio-3.2.2.Final.jar:3.2.2.Final]
          at io.undertow.server.protocol.http.HttpResponseConduit.write(HttpResponseConduit.java:531)
          at io.undertow.conduits.AbstractFixedLengthStreamSinkConduit.write(AbstractFixedLengthStreamSinkConduit.java:104)
          at org.xnio.conduits.Conduits.writeFinalBasic(Conduits.java:132) [xnio-api-3.2.2.Final.jar:3.2.2.Final]
          at io.undertow.conduits.AbstractFixedLengthStreamSinkConduit.writeFinal(AbstractFixedLengthStreamSinkConduit.java:161)
          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:172)
          at io.undertow.servlet.spec.ServletOutputStreamImpl.writeBufferBlocking(ServletOutputStreamImpl.java:582)
          at io.undertow.servlet.spec.ServletOutputStreamImpl.close(ServletOutputStreamImpl.java:616)
          at io.undertow.servlet.spec.HttpServletResponseImpl.closeStreamAndWriter(HttpServletResponseImpl.java:451)
          at io.undertow.servlet.spec.HttpServletResponseImpl.responseDone(HttpServletResponseImpl.java:525)
          ... 9 more

        Activity

        Carmen Cristurean created issue -
        Carmen Cristurean made changes -
        Field Original Value New Value
        Summary showcase-mobile - java.io.IOException when uploading Media files (WildFly8.1.0) showcase-mobile - java.io.IOException when uploading media files (WildFly8.1.0)
        Carmen Cristurean made changes -
        Summary showcase-mobile - java.io.IOException when uploading media files (WildFly8.1.0) showcase-mobile - java.io.IOException when uploading media files (WildFly8.1.0.Final)
        Carmen Cristurean made changes -
        Description On the Mobi demos where video or audio files can be uploaded (as example, Camcorder), a server error is seen in the log each time user uploads a file.
        This is not an issue on Tomcat7.

        For deployment onto WildFly 8.1.0, the showcase.war file was built with "web-profile" ant target, and the multipart-config tag was added to the web.xml, using servlet 3.0 configuration:
        <multipart-config>
                     <max-file-size>52428800</max-file-size>
                     <max-request-size>52428800</max-request-size>
                     <file-size-threshold>0</file-size-threshold>
        </multipart-config>


        2014-10-23 17:17:12,784 ERROR [io.undertow.request] (default task-12) Blocking request failed HttpServerExchange{ GET /showcase/javax.faces.resource/44f2499b-60df-46c3-98f4-68b88a4b091a.jsf;jsessionid=agwuIDkqVJaB22396fojk7TS}: java.lang.RuntimeException: java.io.IOException: Broken pipe
            at io.undertow.servlet.spec.HttpServletResponseImpl.responseDone(HttpServletResponseImpl.java:527)
            at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:287)
            at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227)
            at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73)
            at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146)
            at io.undertow.server.Connectors.executeRootHandler(Connectors.java:177)
            at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:727)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_07]
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_07]
            at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_07]
        Caused by: java.io.IOException: Broken pipe
            at sun.nio.ch.FileDispatcherImpl.write0(Native Method) [rt.jar:1.7.0_07]
            at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47) [rt.jar:1.7.0_07]
            at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:89) [rt.jar:1.7.0_07]
            at sun.nio.ch.IOUtil.write(IOUtil.java:46) [rt.jar:1.7.0_07]
            at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:450) [rt.jar:1.7.0_07]
            at org.xnio.nio.NioSocketConduit.write(NioSocketConduit.java:150) [xnio-nio-3.2.2.Final.jar:3.2.2.Final]
            at io.undertow.server.protocol.http.HttpResponseConduit.write(HttpResponseConduit.java:531)
            at io.undertow.conduits.AbstractFixedLengthStreamSinkConduit.write(AbstractFixedLengthStreamSinkConduit.java:104)
            at org.xnio.conduits.Conduits.writeFinalBasic(Conduits.java:132) [xnio-api-3.2.2.Final.jar:3.2.2.Final]
            at io.undertow.conduits.AbstractFixedLengthStreamSinkConduit.writeFinal(AbstractFixedLengthStreamSinkConduit.java:161)
            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:172)
            at io.undertow.servlet.spec.ServletOutputStreamImpl.writeBufferBlocking(ServletOutputStreamImpl.java:582)
            at io.undertow.servlet.spec.ServletOutputStreamImpl.close(ServletOutputStreamImpl.java:616)
            at io.undertow.servlet.spec.HttpServletResponseImpl.closeStreamAndWriter(HttpServletResponseImpl.java:451)
            at io.undertow.servlet.spec.HttpServletResponseImpl.responseDone(HttpServletResponseImpl.java:525)
            ... 9 more
        On the Mobi demos where video or audio files can be uploaded (Camcorder/ Microphone), a server error is seen in the log each time user uploads a file, although there are no functional issues with these demos.
        This is not an issue on Tomcat7.

        For deployment onto WildFly 8.1.0, the showcase.war file was built with "web-profile" ant target, and the multipart-config tag was added to the web.xml, using servlet 3.0 configuration:
        <multipart-config>
                     <max-file-size>52428800</max-file-size>
                     <max-request-size>52428800</max-request-size>
                     <file-size-threshold>0</file-size-threshold>
        </multipart-config>


        2014-10-23 17:17:12,784 ERROR [io.undertow.request] (default task-12) Blocking request failed HttpServerExchange{ GET /showcase/javax.faces.resource/44f2499b-60df-46c3-98f4-68b88a4b091a.jsf;jsessionid=agwuIDkqVJaB22396fojk7TS}: java.lang.RuntimeException: java.io.IOException: Broken pipe
            at io.undertow.servlet.spec.HttpServletResponseImpl.responseDone(HttpServletResponseImpl.java:527)
            at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:287)
            at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227)
            at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73)
            at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146)
            at io.undertow.server.Connectors.executeRootHandler(Connectors.java:177)
            at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:727)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_07]
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_07]
            at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_07]
        Caused by: java.io.IOException: Broken pipe
            at sun.nio.ch.FileDispatcherImpl.write0(Native Method) [rt.jar:1.7.0_07]
            at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47) [rt.jar:1.7.0_07]
            at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:89) [rt.jar:1.7.0_07]
            at sun.nio.ch.IOUtil.write(IOUtil.java:46) [rt.jar:1.7.0_07]
            at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:450) [rt.jar:1.7.0_07]
            at org.xnio.nio.NioSocketConduit.write(NioSocketConduit.java:150) [xnio-nio-3.2.2.Final.jar:3.2.2.Final]
            at io.undertow.server.protocol.http.HttpResponseConduit.write(HttpResponseConduit.java:531)
            at io.undertow.conduits.AbstractFixedLengthStreamSinkConduit.write(AbstractFixedLengthStreamSinkConduit.java:104)
            at org.xnio.conduits.Conduits.writeFinalBasic(Conduits.java:132) [xnio-api-3.2.2.Final.jar:3.2.2.Final]
            at io.undertow.conduits.AbstractFixedLengthStreamSinkConduit.writeFinal(AbstractFixedLengthStreamSinkConduit.java:161)
            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:172)
            at io.undertow.servlet.spec.ServletOutputStreamImpl.writeBufferBlocking(ServletOutputStreamImpl.java:582)
            at io.undertow.servlet.spec.ServletOutputStreamImpl.close(ServletOutputStreamImpl.java:616)
            at io.undertow.servlet.spec.HttpServletResponseImpl.closeStreamAndWriter(HttpServletResponseImpl.java:451)
            at io.undertow.servlet.spec.HttpServletResponseImpl.responseDone(HttpServletResponseImpl.java:525)
            ... 9 more
        Carmen Cristurean made changes -
        Summary showcase-mobile - java.io.IOException when uploading media files (WildFly8.1.0.Final) showcase-mobile - java.io.IOException: Broken pipe when uploading media files (WildFly8.1.0.Final)
        Carmen Cristurean made changes -
        Summary showcase-mobile - java.io.IOException: Broken pipe when uploading media files (WildFly8.1.0.Final) showcase-mobile - java.io.IOException: Broken pipe when uploading media files (WildFly8.1.0.Final, GlassFish4.1)
        Hide
        Ken Fyten added a comment -

        For WildFly 8.1, there are numerous reports of this issue on net, with no obvious solution: Ex.: https://developer.jboss.org/thread/239451?start=0&tstart=0

        Show
        Ken Fyten added a comment - For WildFly 8.1, there are numerous reports of this issue on net, with no obvious solution: Ex.: https://developer.jboss.org/thread/239451?start=0&tstart=0
        Ken Fyten made changes -
        Assignee Mircea Toma [ mircea.toma ]
        Fix Version/s EE-4.0.0.GA [ 11171 ]
        Assignee Priority P2 [ 10011 ]
        Hide
        Mircea Toma added a comment -

        It seems that the issue is fixed for the next Wildfly version (9.0): https://issues.jboss.org/browse/WFLY-3722

        Show
        Mircea Toma added a comment - It seems that the issue is fixed for the next Wildfly version (9.0): https://issues.jboss.org/browse/WFLY-3722
        Ken Fyten made changes -
        Security Private [ 10001 ]
        Fix Version/s EE-4.0.0.GA [ 11171 ]
        Priority Major [ 3 ] Minor [ 4 ]
        Affects Compatibility/Configuration [ 10002 ]
        Assignee Priority P2 [ 10011 ]
        Hide
        Carmen Cristurean added a comment -

        Error reproduced also with IF4.0 trunk r43580 on GlassFish 4.1 (Amazon EC2) when uploading video on the Camcorder demo.

        Show
        Carmen Cristurean added a comment - Error reproduced also with IF4.0 trunk r43580 on GlassFish 4.1 (Amazon EC2) when uploading video on the Camcorder demo.
        Ken Fyten made changes -
        Fix Version/s EE-4.0.0.GA [ 11171 ]
        Hide
        Ken Fyten added a comment -

        k, we'll consider the FireFly issue a "Known Issue" as it's in their court to fix it, but the GF 4.1 issue needs to be looked at.

        Show
        Ken Fyten added a comment - k, we'll consider the FireFly issue a "Known Issue" as it's in their court to fix it, but the GF 4.1 issue needs to be looked at.
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #43801 Mon Dec 08 17:20:04 MST 2014 mircea.toma ICE-10354 Capture and handle IOException in ResourceRegistry.
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/core/src/main/java/org/icefaces/application/ResourceRegistry.java
        Hide
        Mircea Toma added a comment -

        Capture IOException in ResourceRegistry and log a "Connection closed by client." FINE message.

        Show
        Mircea Toma added a comment - Capture IOException in ResourceRegistry and log a "Connection closed by client." FINE message.
        Mircea Toma made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Fix Version/s 4.1 [ 11375 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Carmen Cristurean
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: