aspose file tools
The moose likes Struts and the fly likes [Servlet Error]-[action] Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "[Servlet Error]-[action]" Watch "[Servlet Error]-[action]" New topic
Author

[Servlet Error]-[action]

Shriram Gopalakrishnan
Ranch Hand

Joined: Feb 20, 2007
Posts: 44
Can anyone please list of out possible causes of this error:
[Servlet Error]-[action]: java.lang.NullPointerException
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
a NullPointerException in an Action class is very common. If you compile your classes with the "-g" option, the stack trace will tell you the actual line number in your code where the error is occurring. The solution is to find the object that's null, find out why it's null, and fix it.

Incidentally, since this is such a generic error, it would have been better if you had included more details: more of the stack trace, indication of when the error occurs, etc.
[ March 15, 2007: Message edited by: Merrill Higginson ]

Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: [Servlet Error]-[action]
 
Similar Threads
Servlet action is not available
ActionServlet Thread Safe
When will be Action Mapping Object and Action Error objects created..........
Struts with Tiles--- simple program but not working
problem in integrating hibernate with struts