-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: StatefulPersistenceContext.<init> throws NullPointerEx
PostPosted: Sun Feb 25, 2007 7:05 am 
Newbie

Joined: Thu Jul 20, 2006 12:00 pm
Posts: 10
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.