This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "AccessFilter issues in Struts" Watch "AccessFilter issues in Struts" New topic
Author

AccessFilter issues in Struts

Reshmi Kuttappan
Greenhorn

Joined: May 26, 2009
Posts: 17
Hi,

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(RequestUtils.java:1254)
root cause - java.lang.NullPointerException --> org.apache.commons.beanutils.PropertyUtilsBean.getIndexedProperty(PropertyUtilsBean.java:427)"

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
java.lang.NullPointerException

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.

 
jQuery in Action, 2nd edition
 
subject: AccessFilter issues in Struts
 
Similar Threads
Filter to check if user is logged in
chain.doFilter() being called twice.
Can not forward from BaseAction
How to know login & logout status of user
input values like name="bean.property" can not be populated to interceptors