java.lang.IllegalArgumentException: setContentLength(0) when already written 335

GitHub | janbartel | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    GitHub comment 171#234436466

    GitHub | 7 months ago | janbartel
    java.lang.IllegalArgumentException: setContentLength(0) when already written 335
  2. 0

    IllegalStateException for HEAD requests responded with 404

    GitHub | 2 months ago | sbordet
    java.lang.IllegalArgumentException: setContentLength(0) when already written 318

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      setContentLength(0) when already written 335

      at org.eclipse.jetty.server.Response.setContentLength()
    2. Jetty
      Response.setContentLength
      1. org.eclipse.jetty.server.Response.setContentLength(Response.java:921)
      1 frame
    3. com.github.dandelion
      DandelionFilter.doFilter
      1. com.github.dandelion.core.web.handler.impl.AssetInjectionPostHandler.handle(AssetInjectionPostHandler.java:199)
      2. com.github.dandelion.core.web.handler.AbstractHandlerChain.doHandle(AbstractHandlerChain.java:68)
      3. com.github.dandelion.core.web.handler.AbstractHandlerChain.doHandle(AbstractHandlerChain.java:73)
      4. com.github.dandelion.core.web.DandelionFilter.doFilter(DandelionFilter.java:145)
      4 frames
    4. Jetty
      ServletHandler$CachedChain.doFilter
      1. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1547)
      1 frame
    5. Spring
      OncePerRequestFilter.doFilter
      1. org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:121)
      2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
      2 frames
    6. Jetty
      QueuedThreadPool$2.run
      1. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1547)
      2. org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:549)
      3. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
      4. org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
      5. org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1589)
      6. org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1213)
      7. org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:486)
      8. org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1552)
      9. org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1126)
      10. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
      11. org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
      12. org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:118)
      13. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
      14. org.eclipse.jetty.server.Server.handle(Server.java:550)
      15. org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:321)
      16. org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:254)
      17. org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:269)
      18. org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:97)
      19. org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
      20. org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:672)
      21. org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:590)
      21 frames
    7. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame