NullPointerException when use struts tag in sitemesh decorator page and
decorating static html page
----------------------------------------------------------------------------------------------------
Key: WW-2138
URL: https://issues.apache.org/struts/browse/WW-2138
Project: Struts 2
Issue Type: Bug
Components: Views
Affects Versions: 2.0.9
Environment: tomcat6.0.13,sun jdk 1.5.0_11
Reporter: zhouyanming
Assignee: James Holmes
Priority: Critical
Caused by: java.lang.NullPointerException
at org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:58)
at
org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack(StrutsBodyTagSupport.java:52)
at
org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:49)
at
org.apache.jsp.WEB_002dINF.view.jsp.decorator.main_jsp._jspx_meth_s_005faction_005f0(main_jsp.java:958)
at
org.apache.jsp.WEB_002dINF.view.jsp.decorator.main_jsp._jspService(main_jsp.java:205)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
... 53 more
Problem is Dispatcher.getInstance() returns null.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.