java.lang.IllegalStateException: getOutputStream() has already been called for this response

Coderanch | Raghavan Muthu | 8 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

    IllegalStateException not thrown!

    Coderanch | 8 years ago | Raghavan Muthu
    java.lang.IllegalStateException: getOutputStream() has already been called for this response
  2. 0

    PrimeFaces Community Forum • View topic - getOutputStream() has already been called for this response

    primefaces.org | 1 year ago
    java.lang.IllegalStateException: getOutputStream() has already been called for this response
  3. 0

    Users forum - exception

    nabble.com | 1 year ago
    java.lang.IllegalStateException: getOutputStream() has already been called for this response
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Company Logo Location on invoice | Opentaps

    opentaps.org | 1 year ago
    java.lang.IllegalStateException: getOutputStream() has already been called for this response
  6. 0

    In our localhost.<date>.log files, we are seeing it flooded with errors like this: {code} 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) {code} We are seeing them approximately twice a minute, and have had performance issues on the master node.

    Jenkins JIRA | 4 years ago | Danny Staple
    java.lang.IllegalStateException: getOutputStream() has already been called for this response
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

    getOutputStream() has already been called for this response

    at org.apache.catalina.connector.Response.getWriter()
  2. Glassfish Core
    ResponseFacade.getWriter
    1. org.apache.catalina.connector.Response.getWriter(Response.java:610)
    2. org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198)
    2 frames
  3. JavaServlet
    ServletResponseWrapper.getWriter
    1. javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:112)
    1 frame
  4. j2ee.practices.servlet
    ObtainTwoOutputStreams.doGet
    1. j2ee.practices.servlet.forum.javaranch.f18.t014851.ObtainTwoOutputStreams.doGet2(ObtainTwoOutputStreams.java:112)
    2. j2ee.practices.servlet.forum.javaranch.f18.t014851.ObtainTwoOutputStreams.processRequest(ObtainTwoOutputStreams.java:45)
    3. j2ee.practices.servlet.forum.javaranch.f18.t014851.ObtainTwoOutputStreams.doGet(ObtainTwoOutputStreams.java:58)
    3 frames
  5. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
    2. javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    2 frames