File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Null Pointer Exception on Fectching values from Table Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Null Pointer Exception on Fectching values from Table" Watch "Null Pointer Exception on Fectching values from Table" New topic
Author

Null Pointer Exception on Fectching values from Table

Tarun Oohri
Ranch Hand

Joined: Feb 20, 2013
Posts: 180
Hi Everyone,
I am getting NullPointer Exception on fetching values from the table. And sometimes if exception doesnt comes then result.next() gives "false" . Please guid me where i am going wrong... Thanks!!!
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31057
    
232

Which line is giving you the exception?

Also, when you run the query at the sql command line, does it return anything?

Finally, what is the value of "area" in the parameter?


[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
Tarun Oohri
Ranch Hand

Joined: Feb 20, 2013
Posts: 180

Hello Jeanne, Thanks for replying. Actually i got through this problem, It was coming because of my SILLIEST mistake. Sorry
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Null Pointer Exception on Fectching values from Table