File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes java.lang. NullPointerException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "java.lang. NullPointerException" Watch "java.lang. NullPointerException" New topic
Author

java.lang. NullPointerException

Nicola Guy
Ranch Hand

Joined: Jun 23, 2004
Posts: 91
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30369
    
150

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: java.lang. NullPointerException