Re: NPE in TagUtils.getStack after upgrading to 2.0.1

2006-12-06 Thread DNewfield

>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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: NPE in TagUtils.getStack after upgrading to 2.0.1

2006-11-26 Thread Jon Wilmoth
Thanks for the respone.  I'm using the xwork-2.0-beta-1.jar that was included 
in the struts 2.0.1 beta distribution.  Unfortunately, that jar file doesn't 
contain the org.apache.struts2.views.jsp.TagUtils class.  For that, I've 
included the struts2-all-2.0.1.jar file in my webapp.  Has anyone successfully 
used the struts 2 taglibs in a struts 1 app?

- Original Message 
From: Martin Gainty <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]; user@struts.apache.org
Sent: Sunday, November 26, 2006 2:15:19 PM
Subject: Re: NPE in TagUtils.getStack after upgrading to 2.0.1


Jon-

http://jira.opensymphony.com/secure/IssueNavigator.jspa?view=rss&&pid=10050&fixfor=21200&tempMax=25&reset=true&decorator=none

reported a bug with OpenSymphony 1 beta2 getStack method which was patched 
in version 1.0

Can you verify your OpenSymphony and or Xwork version?

Anyone else?
Martin
__
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official 
business of Sender. This transmission is of a confidential nature and Sender 
does not endorse distribution to any party other than intended recipient. 
Sender does not necessarily endorse content contained within this 
transmission.

>
>I noticed there was an earlier posting on the dev list regarding this 
>(10/10/06). I downloaded the beta version of 2.0.1 from the struts website 
>and I'm getting the same NPE.  Is there a work around?  I'm trying to ease 
>my transition into S2, and would like to use the datePicker tag w/Struts 
>1.3.5.  Is this even possible?
>
>Root cause follows.
>java.lang.NullPointerException
>at org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:56)
>at 
>org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack(StrutsBodyTagSupport.java:51)
>at 
>org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:42)
>at 
>org.apache.jsp.registerUser_jsp._jspx_meth_struts2_datepicker_0(registerUser_jsp.java:1296)
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

_
All-in-one security and maintenance for your PC.  Get a free 90-day trial! 
http://clk.atdmt.com/MSN/go/msnnkwlo005002msn/direct/01/?href=http://clk.atdmt.com/MSN/go/msnnkwlo005001msn/direct/01/?href=http://www.windowsonecare.com/?sc_cid=msn_hotmail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: NPE in TagUtils.getStack after upgrading to 2.0.1

2006-11-26 Thread Martin Gainty

Jon-

http://jira.opensymphony.com/secure/IssueNavigator.jspa?view=rss&&pid=10050&fixfor=21200&tempMax=25&reset=true&decorator=none

reported a bug with OpenSymphony 1 beta2 getStack method which was patched 
in version 1.0


Can you verify your OpenSymphony and or Xwork version?

Anyone else?
Martin
__
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official 
business of Sender. This transmission is of a confidential nature and Sender 
does not endorse distribution to any party other than intended recipient. 
Sender does not necessarily endorse content contained within this 
transmission.




I noticed there was an earlier posting on the dev list regarding this 
(10/10/06). I downloaded the beta version of 2.0.1 from the struts website 
and I'm getting the same NPE.  Is there a work around?  I'm trying to ease 
my transition into S2, and would like to use the datePicker tag w/Struts 
1.3.5.  Is this even possible?


Root cause follows.
java.lang.NullPointerException
at org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:56)
at 
org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack(StrutsBodyTagSupport.java:51)
at 
org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:42)
at 
org.apache.jsp.registerUser_jsp._jspx_meth_struts2_datepicker_0(registerUser_jsp.java:1296)


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



_
All-in-one security and maintenance for your PC.  Get a free 90-day trial! 
http://clk.atdmt.com/MSN/go/msnnkwlo005002msn/direct/01/?href=http://clk.atdmt.com/MSN/go/msnnkwlo005001msn/direct/01/?href=http://www.windowsonecare.com/?sc_cid=msn_hotmail



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: NPE in TagUtils.getStack after upgrading to 2.0.1

2006-11-26 Thread Jon Wilmoth
I noticed there was an earlier posting on the dev list regarding this 
(10/10/06). I downloaded the beta version of 2.0.1 from the struts website and 
I'm getting the same NPE.  Is there a work around?  I'm trying to ease my 
transition into S2, and would like to use the datePicker tag w/Struts 1.3.5.  
Is this even possible?

Root cause follows. 
java.lang.NullPointerException 
at org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:56) 
at 
org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack(StrutsBodyTagSupport.java:51)
 
at 
org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:42)
 
at 
org.apache.jsp.registerUser_jsp._jspx_meth_struts2_datepicker_0(registerUser_jsp.java:1296)

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]