File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Databases
»
JDBC
Author
ResultSet related query.
saurabh tyagi
Greenhorn
Joined: Dec 20, 2007
Posts: 1
posted
Jan 05, 2008 00:07:00
0
What i am doing is filling dropdown Menu through
ResultSet
using
while(rs.next())
{
//html code.using scriptlets
}
but when i am trying to close the Database connection.it gives Null pointer error.
Can any one please tell me the problem???That why it gives that error.
David O'Meara
Rancher
Joined: Mar 06, 2001
Posts: 13459
I like...
posted
Jan 05, 2008 01:37:00
0
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
Greenhorn
Joined: Jan 03, 2008
Posts: 15
posted
Jan 05, 2008 03:27:00
0
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:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: ResultSet related query.
Similar Threads
getting empty resultset
Insertion Of Data
whats the use of closing ResultSet ?
ResultSet closed error (URGENT !!)
passing resulset object to client in rmi
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter