PageContextImpl.findAttribute generates "IllegalStateException: getAttribute: Session already invalidated"
Issue
- JBoss sometimes throws the following exception when servicing a request:
java.lang.IllegalStateException: getAttribute: Session already invalidated
at org.apache.catalina.session.StandardSession.getAttribute(StandardSession.java:1032)
at org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessionFacade.java:110)
at org.apache.jasper.runtime.PageContextImpl.doFindAttribute(PageContextImpl.java:467)
at org.apache.jasper.runtime.PageContextImpl.findAttribute(PageContextImpl.java:452)
at javax.servlet.jsp.el.ScopedAttributeELResolver.getValue(ScopedAttributeELResolver.java:53)
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54)
at org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:61)
at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
at org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:925)
at org.apache.jsp.mypage_jsp._jspService(mypage_jsp.java:124)
Environment
- JBoss Enteprise Application Platform (EAP) 5.2.0 and earlier
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.