-->
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.  [ 4 posts ] 
Author Message
 Post subject: EntityManager - null pointer in TransactionImpl.isActive()
PostPosted: Mon Jun 27, 2005 11:09 pm 
Newbie

Joined: Mon Jun 27, 2005 8:46 pm
Posts: 3
Location: Brisbane, Australia
Hibernate EntityManager version: 3.1beta1

The isActive() method in org.hibernate.ejb.TransactionImpl throws a NullPointerException if the wrapped Transaction object isn't assigned (which happens in the begin() method). This can be manifested via a call to EntityManager.getTransaction().isActive(). I imagine that the desired behaviour if the transaction is null is to have isActive() return false; is this something I should submit a patch to Jira for?

Shane Bryzak


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 28, 2005 11:39 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Yes, please submit to JIRA, thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 28, 2005 6:57 pm 
Newbie

Joined: Mon Jun 27, 2005 8:46 pm
Posts: 3
Location: Brisbane, Australia
Done, with patch.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 01, 2005 9:28 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Fixed, thanks.

_________________
Emmanuel


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

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.