• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang. NullPointerException

 
Nicola Guy
Ranch Hand
Posts: 91
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anyone any idea why this error is appearing. I'm filling in details on users and then clickin submit and this is appearing.


java.lang.NullPointerException
app.UserAction.perform(UserAction.java:15)
org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1787)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1586)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)


Any help would be very welcome
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33691
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nicola,
You need to look at the UserAction class. Since it is throwing the Exception in your class, you can debug it. Try looking at that exact line. If you can't figure it out, post the method in which the code is crashing.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic