java.lang.IllegalStateException: Response is committed

Jenkins JIRA | Alex Gray | 5 months ago
  1. 0

    We have a script that runs GC periodically by hitting "/monitoring?action=gc". We upgraded to the latest version of the monitoring plugin and Jenkins and we are now getting the following exception in the logs: {noformat} /monitoring?action=gc java.lang.IllegalStateException: Response is committed at org.eclipse.jetty.server.Request.getSession(Request.java:1400) at org.eclipse.jetty.security.authentication.FormAuthenticator.validateRequest(FormAuthenticator.java:260) at org.eclipse.jetty.security.authentication.DeferredAuthentication.authenticate(DeferredAuthentication.java:68) at org.eclipse.jetty.server.Request.getUserPrincipal(Request.java:1479) at org.eclipse.jetty.server.Request.getRemoteUser(Request.java:1087) at winstone.accesslog.SimpleAccessLogger.log(SimpleAccessLogger.java:89) at org.eclipse.jetty.server.handler.RequestLogHandler.handle(RequestLogHandler.java:113) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) at org.eclipse.jetty.server.Server.handle(Server.java:499) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257) at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544) at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) {noformat} It looks benign, but it's something that we haven't seen before. I can't tell if the "/monitoring?action=gc" is actually working, but it looks like it is. If it is not, I'll upgrade the severity of this ticket.

    Jenkins JIRA | 5 months ago | Alex Gray
    java.lang.IllegalStateException: Response is committed
  2. 0

    Fail to get view's config.xml via python requests to secure jenkins (self signed cert)

    Stack Overflow | 1 month ago | user2363318
    java.lang.IllegalStateException: Response is committed
  3. 0

    [JIRA] (JENKINS-37625) exception in logs when hitting /monitoring?action=gc

    Google Groups | 5 months ago | gra...@gmail.com (JIRA)
    java.lang.IllegalStateException: Response is committed
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Request.getRemoteUser can throw undeclared IllegalStateException via DeferredAuthentication & FormAuthenticator

    GitHub | 2 days ago | jglick
    java.lang.IllegalStateException: Response is committed
  6. 0

    [JIRA] [cli] (JENKINS-34287) [2.0] CLI over HTTP doesn't work

    Google Groups | 9 months ago | k...@kohsuke.org (JIRA)
    java.lang.IllegalStateException: Response is committed

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Response is committed

      at org.eclipse.jetty.server.Request.getSession()
    2. Jetty
      Request.getRemoteUser
      1. org.eclipse.jetty.server.Request.getSession(Request.java:1400)
      2. org.eclipse.jetty.security.authentication.FormAuthenticator.validateRequest(FormAuthenticator.java:260)
      3. org.eclipse.jetty.security.authentication.DeferredAuthentication.authenticate(DeferredAuthentication.java:68)
      4. org.eclipse.jetty.server.Request.getUserPrincipal(Request.java:1479)
      5. org.eclipse.jetty.server.Request.getRemoteUser(Request.java:1087)
      5 frames
    3. winstone.accesslog
      SimpleAccessLogger.log
      1. winstone.accesslog.SimpleAccessLogger.log(SimpleAccessLogger.java:89)
      1 frame
    4. Jetty
      AbstractConnection$2.run
      1. org.eclipse.jetty.server.handler.RequestLogHandler.handle(RequestLogHandler.java:113)
      2. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
      3. org.eclipse.jetty.server.Server.handle(Server.java:499)
      4. org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
      5. org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
      6. org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
      6 frames
    5. winstone
      BoundedExecutorService$1.run
      1. winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
      1 frame
    6. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames