This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Servlets and the fly likes NullPointerException Occuring randomly when using ExecuteAndWait Interceptor and ServletRequestAware Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "NullPointerException Occuring randomly when using ExecuteAndWait Interceptor and ServletRequestAware" Watch "NullPointerException Occuring randomly when using ExecuteAndWait Interceptor and ServletRequestAware" New topic
Author

NullPointerException Occuring randomly when using ExecuteAndWait Interceptor and ServletRequestAware

JayaKumar An
Greenhorn

Joined: Jan 26, 2012
Posts: 1
Hi Guys... I have a problem which is driving me nuts for the past few weeks.
I have a Servlet with a execute method which implements ServletRequestAware interface.
Also I have used ExecuteAndWait Interceptor to the display the waiting page to the user till the request gets loaded for redirection to a particular url.
When I try to fetch the HttpServletrequest using setServletRequest method in the ServletRequestAware , randomly i get a NullPointerException stating "NullPointerException at Request.getParameterNames()".
Kindly help me out in this issue as the request randomly becomes null at few instances.
Please if any one has faced this issue, provide some solution.

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: NullPointerException Occuring randomly when using ExecuteAndWait Interceptor and ServletRequestAware