java.lang.RuntimeException: io.undertow.server.TruncatedResponseException

Spring JIRA | Rahul Sethi | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    <mvc:resources /> works fine on apache tomcat and jboss 7 server but it does not work with jboss wildfly server. The error is: {noformat} 18:08:54,122 ERROR [io.undertow.request] (default task-24) Blocking request failed HttpServerExchange{ GET /aladdinview/css/brs_chrome.css}: java.lang.RuntimeException: io.undertow.server.TruncatedResponseException 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(Unknown Source) [rt.jar:1.7.0_67] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_67] at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_67] Caused by: io.undertow.server.TruncatedResponseException at io.undertow.server.protocol.http.HttpResponseConduit.truncateWrites(HttpResponseConduit.java:667) at io.undertow.conduits.AbstractFixedLengthStreamSinkConduit.terminateWrites(AbstractFixedLengthStreamSinkConduit.java:230) at org.xnio.conduits.ConduitStreamSinkChannel.shutdownWrites(ConduitStreamSinkChannel.java:178) [xnio-api-3.2.2.Final.jar:3.2.2.Final] at io.undertow.channels.DetachableStreamSinkChannel.shutdownWrites(DetachableStreamSinkChannel.java:60) at io.undertow.servlet.spec.ServletOutputStreamImpl.close(ServletOutputStreamImpl.java:624) at io.undertow.servlet.spec.HttpServletResponseImpl.closeStreamAndWriter(HttpServletResponseImpl.java:451) at io.undertow.servlet.spec.HttpServletResponseImpl.responseDone(HttpServletResponseImpl.java:525) ... 9 more {noformat} Below is a similar issue between atmosphere-framework and wildfly which was fixed by atmosphere framework: https://groups.google.com/forum/#!topic/atmosphere-framework/s0q7bHcQMbA

    Spring JIRA | 2 years ago | Rahul Sethi
    java.lang.RuntimeException: io.undertow.server.TruncatedResponseException
  2. 0

    <mvc:resources /> works fine on apache tomcat and jboss 7 server but it does not work with jboss wildfly server. The error is: {noformat} 18:08:54,122 ERROR [io.undertow.request] (default task-24) Blocking request failed HttpServerExchange{ GET /aladdinview/css/brs_chrome.css}: java.lang.RuntimeException: io.undertow.server.TruncatedResponseException 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(Unknown Source) [rt.jar:1.7.0_67] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_67] at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_67] Caused by: io.undertow.server.TruncatedResponseException at io.undertow.server.protocol.http.HttpResponseConduit.truncateWrites(HttpResponseConduit.java:667) at io.undertow.conduits.AbstractFixedLengthStreamSinkConduit.terminateWrites(AbstractFixedLengthStreamSinkConduit.java:230) at org.xnio.conduits.ConduitStreamSinkChannel.shutdownWrites(ConduitStreamSinkChannel.java:178) [xnio-api-3.2.2.Final.jar:3.2.2.Final] at io.undertow.channels.DetachableStreamSinkChannel.shutdownWrites(DetachableStreamSinkChannel.java:60) at io.undertow.servlet.spec.ServletOutputStreamImpl.close(ServletOutputStreamImpl.java:624) at io.undertow.servlet.spec.HttpServletResponseImpl.closeStreamAndWriter(HttpServletResponseImpl.java:451) at io.undertow.servlet.spec.HttpServletResponseImpl.responseDone(HttpServletResponseImpl.java:525) ... 9 more {noformat} Below is a similar issue between atmosphere-framework and wildfly which was fixed by atmosphere framework: https://groups.google.com/forum/#!topic/atmosphere-framework/s0q7bHcQMbA

    Spring JIRA | 2 years ago | Rahul Sethi
    java.lang.RuntimeException: io.undertow.server.TruncatedResponseException

    1 unregistered visitors

    Root Cause Analysis

    1. io.undertow.server.TruncatedResponseException

      No message provided

      at io.undertow.server.protocol.http.HttpResponseConduit.truncateWrites()
    2. Undertow Core
      AbstractFixedLengthStreamSinkConduit.terminateWrites
      1. io.undertow.server.protocol.http.HttpResponseConduit.truncateWrites(HttpResponseConduit.java:667)
      2. io.undertow.conduits.AbstractFixedLengthStreamSinkConduit.terminateWrites(AbstractFixedLengthStreamSinkConduit.java:230)
      2 frames
    3. org.xnio.conduits
      ConduitStreamSinkChannel.shutdownWrites
      1. org.xnio.conduits.ConduitStreamSinkChannel.shutdownWrites(ConduitStreamSinkChannel.java:178)[xnio-api-3.2.2.Final.jar:3.2.2.Final]
      1 frame
    4. Undertow Core
      DetachableStreamSinkChannel.shutdownWrites
      1. io.undertow.channels.DetachableStreamSinkChannel.shutdownWrites(DetachableStreamSinkChannel.java:60)
      1 frame
    5. Undertow Servlet
      ServletInitialHandler$1.handleRequest
      1. io.undertow.servlet.spec.ServletOutputStreamImpl.close(ServletOutputStreamImpl.java:624)
      2. io.undertow.servlet.spec.HttpServletResponseImpl.closeStreamAndWriter(HttpServletResponseImpl.java:451)
      3. io.undertow.servlet.spec.HttpServletResponseImpl.responseDone(HttpServletResponseImpl.java:525)
      4. io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:287)
      5. io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227)
      6. io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73)
      7. io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146)
      7 frames
    6. Undertow Core
      HttpServerExchange$1.run
      1. io.undertow.server.Connectors.executeRootHandler(Connectors.java:177)
      2. io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:727)
      2 frames
    7. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)[rt.jar:1.7.0_67]
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)[rt.jar:1.7.0_67]
      3. java.lang.Thread.run(Unknown Source)[rt.jar:1.7.0_67]
      3 frames