Subject Re: NullPointerException comming from org.firebirdsql.jdbc.AbstractPreparedStatement
Author grantcurrey
Hi Guys,

Thanks so much for the usefull replies.

We are running on old hibernate 2. I think we may have found the scenario where this is happening.

Right before we are shown the NPE hibernate whinges about a session not being closed

"17/04/2009 12:30:02 net.sf.hibernate.impl.SessionImpl finalize
WARNING: unclosed connection, forgot to call close() on your session?"

I am wondering if for some reason, we have a connection here that is bound to more than one hibernate session, and when hibernate is cleaning up, it is killing off the connection, thus, causing the NPE in the AbstractPreparedStatement in the second still active session.

Test cases are a bit of an issue on this as the issue is happening erracticly in production. I am working on it.

Thanks Again