aspose file tools*
The moose likes Servlets and the fly likes NULL Pointer Exception. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "NULL Pointer Exception." Watch "NULL Pointer Exception." New topic
Author

NULL Pointer Exception.

Samantha O'Neil
Greenhorn

Joined: Mar 30, 2005
Posts: 17
On my servlet program I'm calling a file(given in HTML with herf action)whichgo to server and that server file pick up data from particular table(which determined previously) and show its data. But as I performed click on one line given with herf in herfHTML doc.it shows error of NULL Pointer Exception. Why It all this? Tell me where I'm wrong. tomcat server is in functioning.
Neeraj Dheer
Ranch Hand

Joined: Mar 30, 2005
Posts: 225
Samantha,

Can you post some part of the code and the entire Exception??
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 13868
    
  10

As with any exception: Look at the stack trace of the exception. It shows you exactly in which line of code in which source file the exception happened. Go to that place in your source code and think what could be null there.

More info: How to resolve a java.lang.NullPointerException


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NULL Pointer Exception.
 
Similar Threads
problem in running exec() from servlet
SCJP Brainteaser (2)
double Type of Value in JTable
explain me this code
how the value in the form pass into Action class in Struts