HTTP Status 500 - java.lang.IllegalStateException: getOutputStream() has already been called for this response


type Exception report

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

description The server encountered an internal error that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: java.lang.IllegalStateException: getOutputStream() has already been called for this response
        org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:549)
        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:465)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
        org.archive.wayback.core.UIResults.forward(UIResults.java:417)
        org.archive.wayback.exception.BaseExceptionRenderer.renderException(BaseExceptionRenderer.java:196)
        org.archive.wayback.instantliveweb.InstaLiveWeb.handleRequest(InstaLiveWeb.java:296)
        org.archive.wayback.util.webapp.RequestMapper.handleRequest(RequestMapper.java:259)
        org.archive.wayback.util.webapp.RequestFilter.doFilter(RequestFilter.java:275)

root cause

java.lang.IllegalStateException: getOutputStream() has already been called for this response
        org.apache.catalina.connector.Response.getWriter(Response.java:636)
        org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:213)
        org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:125)
        org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:118)
        org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:177)
        org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:942)
        org.apache.jsp.WEB_002dINF.exception.HTMLError_jsp._jspService(HTMLError_jsp.java:164)
        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
        org.archive.wayback.core.UIResults.forward(UIResults.java:417)
        org.archive.wayback.exception.BaseExceptionRenderer.renderException(BaseExceptionRenderer.java:196)
        org.archive.wayback.instantliveweb.InstaLiveWeb.handleRequest(InstaLiveWeb.java:296)
        org.archive.wayback.util.webapp.RequestMapper.handleRequest(RequestMapper.java:259)
        org.archive.wayback.util.webapp.RequestFilter.doFilter(RequestFilter.java:275)

note The full stack trace of the root cause is available in the Apache Tomcat/7.0.52 logs.


Apache Tomcat/7.0.52