File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes ResultSet related query. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "ResultSet related query." Watch "ResultSet related query." New topic

ResultSet related query.

saurabh tyagi

Joined: Dec 20, 2007
Posts: 1
What i am doing is filling dropdown Menu through ResultSet using
//html code.using scriptlets

but when i am trying to close the Database gives Null pointer error.

Can any one please tell me the problem???That why it gives that error.
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

It gives a Null pointer because you are trying to reference something with a null value. I can't say much more without seeing more code.
P. Jain

Joined: Jan 03, 2008
Posts: 15
Might be the database object that you created would be null.For further details I have to look in the code what mistake you have done.

SCJP 5.0<br />SCWCD 5.0<br />Preparing for SCDJWS
I agree. Here's the link:
subject: ResultSet related query.
It's not a secret anymore!