-->
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: Hibernate + Spring + JOTM Transaction manager
PostPosted: Wed Feb 28, 2007 11:14 am 
Newbie

Joined: Tue Feb 21, 2006 10:23 am
Posts: 6
relates to hibernate version 3.2.2 used within tomcat 5.5 and spring 2.0.2

Since I found out, that the transaction progragation "requires new" only works with a JTA transaction manager I tried to used the JOTM implementation and setup my hibernate session factory according to the examples I found in the spring docs.

At a first glance my app seems to operate as normal but sometimes I see a Nullpointer execption in the method

registerSynchronization() in class org.hibernate.transaction.JTATransaction

The code found there

try { getTransactionManager().getTransaction().registerSynchronization(sync);
}
catch (Exception e) {
throw new TransactionException("could not register synchronization", e);
}

assumes that there is always a transaction associated with the current thread (getTransaction() never returns null)

I wonder if my configuration is wrong or what might be the reason behind that assumption ?

Any help and hints appreciated,

Dirk


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.