It turns out this particular NPE was due to user error/misconfiguration. I'm trying to slowly transition my S1 app to S2 and started by replacing the date inputs with the datepicker tag. Unfortunately I had not added the following to my web.xml:
<filter> <filter-name>struts2</filter-name> <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class> </filter> <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> As soon as I did that (and added some other min libs/config files mentioned in http://struts.apache.org/2.x/docs/simple-setup.html) I was able to successfully render the tag. Thanks, Jon ----- Original Message ---- From: Ted Husted <[EMAIL PROTECTED]> To: Struts Developers List <dev@struts.apache.org>; Jon Wilmoth <[EMAIL PROTECTED]> Sent: Monday, November 27, 2006 6:17:27 AM Subject: Re: NPE in TagUtils.getStack after upgrading to 2.0.1 Is there a JIRA ticket for this? Is there a showcase example or other test that demonstrates the problem, so that we will know when it's fixed? If not, the first step is to add one. We may need to setup a showcase module along the lines of the Struts 1 taglib exercises to handle reports like this. -Ted. On 11/21/06, Jon Wilmoth <[EMAIL PROTECTED]> wrote: > I noticed there was an earlier post 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? > > 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] > > -- HTH, Ted. * http://www.husted.com/struts/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]