Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Null Pointer when Closing JDBC Connection

807569Sep 18 2006 — edited Sep 18 2006
I'm getting a null pointer error when trying to close my statement, connection, and result sets. My progam leaves the SQL query class I made to work with the resultset in another class, then returns to the SQL query class to close the connections. I am able to work with the result set in the other class OK, but I cannot close the connections for some reason. Do I need to do something special to close these items since I am leaving and returning to the class that creates them? Thanks for the help!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 16 2006
Added on Sep 18 2006
8 comments
736 views