struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Monojendra Dutta <forum-struts-...@opensymphony.com>
Subject Re: NPE in TagUtils.getStack after upgrading to 2.0.1
Date Mon, 27 Nov 2006 05:54:09 GMT
Hi Gurus,
             In my application I'm using Struts2.0.1 framework. I have a Request Filter, which
is supposed to redirect all URLs except a few to a JSP page(lets call it AccessDeniedPage.jsp)
which is mentioned as the init-param of the RequestFilter. But when the filter gets any prohibited
URL it successfully forwards the request to the AccessDeniedPage.jsp but most of the times
shows this stack-related NPE while rendering the AccessDeniedPage.jsp instead of the intended
page .

[u][b]exception[/b][/u] 

org.apache.jasper.JasperException	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:370)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
	com.anshin.repro.enterprise.publisher.ui.filter.RequestFilter.authorizationFailure(RequestFilter.java:118)
	com.anshin.repro.enterprise.publisher.ui.filter.RequestFilter.doFilter(RequestFilter.java:94)
	org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)


[u][b]root cause[/b][/u] 

java.lang.NullPointerException
	org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:55)
	org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack(StrutsBodyTagSupport.java:51)
	org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:42)
	org.apache.jsp.expired_jsp._jspx_meth_s_form_0(org.apache.jsp.expired_jsp:187)
	org.apache.jsp.expired_jsp._jspService(org.apache.jsp.expired_jsp:135)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
	com.anshin.repro.enterprise.publisher.ui.filter.RequestFilter.authorizationFailure(RequestFilter.java:118)
	com.anshin.repro.enterprise.publisher.ui.filter.RequestFilter.doFilter(RequestFilter.java:94)
	org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)

=============
Is this is a struts2-bug ? If not what could be the solution ?
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=45832&messageID=103828#103828


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


Mime
View raw message