Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:3.1.3
Hi,
Suddenly we started getting this in our QA env, with no particular idea what might have changed that caused this :
Quote:
java.lang.NullPointerException
at org.hibernate.engine.StatefulPersistenceContext.<init> (StatefulPersistenceContext.java:121)
at org.hibernate.impl.SessionImpl.<init> (SessionImpl.java:208)
at org.hibernate.impl.SessionFactoryImpl.openSession (SessionFactoryImpl.java:491)
at org.hibernate.context.ThreadLocalSessionContext.buildOrObtainSession (ThreadLocalSessionContext.java:110)
at org.hibernate.context.ThreadLocalSessionContext.currentSession (ThreadLocalSessionContext.java:76)
at org.hibernate.impl.SessionFactoryImpl.getCurrentSession (SessionFactoryImpl.java:508)
.
. my applicative code...
.
it all starts when I want to commit the current transaction, so I call getCurrentSession in order to perform commit, but as you can see, the method fails due to a NullPointerException inside hibernate's framework.
If you look inside the line 121 inside StatefulPersistenceContext you see this:
Code:
entityEntries = IdentityMap.instantiateSequenced( INIT_COLL_SIZE );
I can't understand how can a NullPointerException will be thrown by that line...instantiateSequenced is a static method ..so....no idea.
Clue, anyone?
Thanks ahead,
Assaf.