JDBC Connection becoming null - TechRepublic
General discussion
May 17, 2001 at 07:55 AM
neo2032

JDBC Connection becoming null

by neo2032 . Updated 24 years, 11 months ago

I’m developing an application using Java servlets and JDBC. Right now I’m seeing a strange effect where at then end of the servlet process, I call the rollback method on the connection object, but it can’t complete it because the Connection object has become null. The Connection object is stored as a private member variable of the UserStore class. It does have a method that sets it to null, but I have confirmed that it is not being called.

I’m also having a problem where the Connection object is open when it is obtained from the DriverManager, but becomes closed prior to its use in a query.

Can anyone shed any light on what might be causing these effects?

Thanks,

Steve Duran

This discussion is locked

All Comments