You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by DNewfield <Da...@Newfield.org> on 2006/12/06 18:59:14 UTC

Re: NPE in TagUtils.getStack after upgrading to 2.0.1

>Root cause follows.
>java.lang.NullPointerException
>at org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:56)

I had this problem intermittently, and finally figured out its source and
how to quash it for good.
It has to do with when struts2 "cleans up" after itself to prevent memory
leaks (after which the ValueStack is gone, thus NPE).  Check the order of
your filter stack.  If you add a struts-cleanup filter you can determine
where in the stack processing struts2 does this.

http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/dispatcher/ActionContextCleanUp.html

-Dale
-- 
View this message in context: http://www.nabble.com/Re%3A-NPE-in-TagUtils.getStack-after-upgrading-to-2.0.1-tf2708127.html#a7724423
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org