Using Struts 1.0, why do I get the error "cant remove Attributes from request scope"?
Created May 7, 2012
Anton Nazarov Full error:
When I click the Register with the MailReader Demonstration Application in index.jsp I get the error (shown below).
Error: 500
Location: /struts-example/logon.jsp
Internal Servlet Error:
This is a well-known problem in final-1.0-version of Struts. I corrected this by myself in Struts code. I can send renovated Struts for you (if you want).
When I click the Register with the MailReader Demonstration Application in index.jsp I get the error (shown below).
Error: 500
Location: /struts-example/logon.jsp
Internal Servlet Error:
javax.servlet.ServletException: cant remove Attributes from request scope at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:386) at _0002flogon_0002ejsplogon_jsp_0._jspService(_0002flogon_0002ejsplogon_jsp_0.java:393) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:174) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338) at java.lang.Thread.run(Thread.java:479)Root cause:
java.lang.IllegalArgumentException: cant remove Attributes from request scope at org.apache.jasper.runtime.PageContextImpl.removeAttribute(PageContextImpl.java:236) at org.apache.struts.taglib.html.FormTag.doEndTag(FormTag.java:591) at _0002flogon_0002ejsplogon_jsp_0._jspService(_0002flogon_0002ejsplogon_jsp_0.java:368) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:174) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338) at java.lang.Thread.run(Thread.java:479)
This is a well-known problem in final-1.0-version of Struts. I corrected this by myself in Struts code. I can send renovated Struts for you (if you want).
Write me.
Anton