This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NullPointerException Occuring randomly when using ExecuteAndWait Interceptor and ServletRequestAware

 
JayaKumar An
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic