When i try to launch our java/hibernate/tomcat/postgres
project, it crashes with null pointer exception in NewProxyDatabaseMetaData.detach()
inside of c3p0 connection pool library:
private void detach()
{
parentPooledConnection.removeConnectionEventListener( cel );
parentPooledConnection = null;
}
parentPooledConnection is null
It happens on session factory initialization. The strange thing the same code works fine for other teammates.
I tried
- reinstalled postgresql
- updated jdbc driver
- created brand new roles and databases
but no effect. Any ideas?
edit: i know 'what is a null pointer', but this is a crash inside of a connection pool library (c3p0) i don't control, i don't pass null object to the library, i am trying to initialize the hibernate session factory and somewhere deep inside hibernate and c3p0 something happens which closes the connection without parent pool connection.