Calling response.reset() from a JSP is throwing an IllegalStateException

Solution Verified - Updated -

Issue

  • response.reset() throws an IllegalStateException when called from our JSP (even at the very beginning of this JSP):
java.lang.IllegalStateException
        at org.apache.catalina.connector.ResponseFacade.reset(ResponseFacade.java:310)
        at org.apache.jsp.porting.portingView_jsp._jspService(portingView_jsp.java:652)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

Environment

  • JBoss Enterprise Application Platform (EAP)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.