The moose likes Struts and the fly likes AccessFilter issues in Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "AccessFilter issues in Struts" Watch "AccessFilter issues in Struts" New topic

AccessFilter issues in Struts

Reshmi Kuttappan

Joined: May 26, 2009
Posts: 17

i have been using the below code since some time now; but have started facing NullPointerException for the below scenario

my problem is:
when my user clicks on the Back button instead of going to the previously visited page; it throws an error "HTTP Status 500 -
exception - javax.servlet.ServletException: BeanUtils.populate --> org.apache.struts.util.RequestUtils.populate(
root cause - java.lang.NullPointerException --> org.apache.commons.beanutils.PropertyUtilsBean.getIndexedProperty("

my log file provides following info:
2012-06-05 16:42:36,442 DEBUG [org.displaytag.filter.ResponseOverrideFilter] Filter has been called, but PARAMETER_EXPORTING parameter has not been found.
2012-06-05 16:42:36,442 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/torch].[action]] Servlet.service() for servlet action threw exception

when i debugged my java code; the error occurs in the AccessFilter.doFilter() method (Line number 51); since i am not able to debug the chain.doFilter() method; i don't know how to proceed ahead.
below is the code snippet for the same:

please let me know how to proceed ahead with this.

I agree. Here's the link:
subject: AccessFilter issues in Struts
It's not a secret anymore!