This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[Servlet Error]-[action]

 
Shriram Gopalakrishnan
Ranch Hand
Posts: 44
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone please list of out possible causes of this error:
[Servlet Error]-[action]: java.lang.NullPointerException
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic