Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Not A Problem
-
2.1.6
-
None
-
None
-
Struts2
TC 6.0.14
J2SE 6.0
Description
[WARN] OgnlValueStack - Could not find property [theme]
[WARN] OgnlValueStack - Caught an exception while evaluating expression '#attr.t
heme' against value stack <java.lang.IllegalStateException: getAttribute: Sessio
n already invalidated>java.lang.IllegalStateException: getAttribute: Session alr
eady invalidated
at org.apache.catalina.session.StandardSession.getAttribute(StandardSess
ion.java:1032)
at org.apache.catalina.session.StandardSessionFacade.getAttribute(Standa
rdSessionFacade.java:110)
at org.apache.jasper.runtime.PageContextImpl.doFindAttribute(PageContext
Impl.java:465)
at org.apache.jasper.runtime.PageContextImpl.findAttribute(PageContextIm
pl.java:450)
at org.apache.struts2.util.AttributeMap.get(AttributeMap.java:97)
org.apache.struts2.util.AttributeMap
AttributeMap does not test for IES ..suggested workaround which works on my box:
public Object get(Object key)
{
PageContext pc = getPageContext();
if (pc == null)
{ //start pc == null
Map request = (Map) context.get("request");
try
{ //start 1st try
Map session = (Map) context.get("session");
//Map application = (Map) context.get("application");
if ((request != null) && (request.get(key) != null))
else if ((session != null) && (session.get(key) != null))
{ return session.get(key); } } //end 1st try
catch(java.lang.IllegalStateException ise)
Map application = (Map) context.get("application");
//} else
if ((application != null) && (application.get(key) != null)) return application.get(key);
}
else
{ //start else
try
catch (NullPointerException npe)
{ return null; }catch (java.lang.IllegalStateException ise)
{ return null; }} //end else
return null;
}
MCG 03/22/09