[jboss-dev-forums] [JBoss AS 7 Development] - Re: Null Pointer Exception - Hibernate with Jboss 7.1.0 Final

Steve Ebersole do-not-reply at jboss.com
Mon Apr 23 13:37:09 EDT 2012


Steve Ebersole [https://community.jboss.org/people/sebersole] created the discussion

"Re: Null Pointer Exception - Hibernate with Jboss 7.1.0 Final"

To view the discussion, visit: https://community.jboss.org/message/731733#731733

--------------------------------------------------------------
Are you using CMT transactions in your application?  

Basically, HIbernate has 2 org.hibernate.Transaction implementations for dealing with JTA-based transactions:
1. JTATransactionFactory - meant for cases where the application is managing transactions.  Uses TransactionManager to integrate with JTA.
2. CMTTransactionFactory - mean for CMT cases where the container is managing transaction.  Uses UserTransaction to integrate with JTA.

Your set up is indicating that your application is managing transactions, but it has not started the Transaction.  Just curious what your application is doing in terms of transaction management.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/731733#731733]

Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120423/f58f0b5d/attachment.html 


More information about the jboss-dev-forums mailing list