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

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • <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
    via by Rahul Sethi,
  • <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
    via by Rahul Sethi,
    • 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

    Users with the same issue

    Unknown visitor1 times, last one,