Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-17253

In tomcat localhost logs "java.lang.IllegalStateException: getOutputStream() has already been called for this response"

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: core
    • Labels:
      None
    • Environment:
      Jenkins ver. 1.480.2, Tomcat 6, Linux X86_64
      Jenkins ver 1.509.2, Tomcat 6, Linux X86_64
    • Similar Issues:

      Description

      In our localhost.<date>.log files, we are seeing it flooded with errors like this:

      Mar 3, 2013 12:04:12 AM org.apache.catalina.core.StandardWrapperValve invoke
      SEVERE: Servlet.service() for servlet Stapler threw exception
      java.lang.IllegalStateException: getOutputStream() has already been called for this response
              at org.apache.catalina.connector.Response.getWriter(Response.java:610)
              at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198)
              at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:112)
              at org.kohsuke.stapler.compression.CompressionServletResponse.getWriter(CompressionServletResponse.java:58)
              at org.kohsuke.stapler.compression.CompressionFilter.reportException(CompressionFilter.java:68)
              at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:53)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
              at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)
              at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:574)
              at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1527)
              at java.lang.Thread.run(Thread.java:619)
      

      We are seeing them approximately twice a minute, and have had performance issues on the master node.

        Attachments

          Activity

          Hide
          dannystaple Danny Staple added a comment -

          This is still being seen on the same installation on Jenkins 1.509.2.

          Show
          dannystaple Danny Staple added a comment - This is still being seen on the same installation on Jenkins 1.509.2.
          Hide
          slavd slav dok added a comment -

          I have the exact same issue on LTS release 1.509.4

          My Jenkins crashes regularly (several times a day), and that's the only exception i am seeing in the logs

          Show
          slavd slav dok added a comment - I have the exact same issue on LTS release 1.509.4 My Jenkins crashes regularly (several times a day), and that's the only exception i am seeing in the logs
          Hide
          lmcazra Audrey Azra added a comment -

          We see the exact same behaviour using Jenkins ver 1.509.4 & Tomcat 7
          Jenkins performance severly affected

          Show
          lmcazra Audrey Azra added a comment - We see the exact same behaviour using Jenkins ver 1.509.4 & Tomcat 7 Jenkins performance severly affected
          Hide
          danielbeck Daniel Beck added a comment -

          Does this still occur on recent (no older than eight weeks) versions of Jenkins?

          Show
          danielbeck Daniel Beck added a comment - Does this still occur on recent (no older than eight weeks) versions of Jenkins?

            People

            • Assignee:
              Unassigned
              Reporter:
              dannystaple Danny Staple
            • Votes:
              6 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated: