-->
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.  [ 2 posts ] 
Author Message
 Post subject: transaction error with upgrade to hibernate 5.2.9
PostPosted: Fri Aug 04, 2017 3:06 pm 
Newbie

Joined: Fri Aug 04, 2017 2:51 pm
Posts: 1
Hi,

I am new to hibernate.
I have a JEE application that does inserts and reads in the oracle and cache databases. The enviornment uses weblogic, spring and hibernate. We use hbm mapping files. Everything worked fine in Spring v4.2.7 and hibernate 4.3.10final and Weblogic 12.1.2 and java 8.
But after upgrading to spring v4.3.7 and hibernate 5.2.9 final and weblogic 12.2.1.2, the inserts fail with 'no transaction in progress' exception in hibernate. Somehow the Weblogic JTA transaction is not propogated by Spring to Hibernate - it is broken in spring v4.3.7.
I tried few settings in hibernateproperties of org.springframework.orm.hibernate5.LocalSessionFactoryBean but did not help.

Exception: javax.persistence.TransactionRequiredException: no transaction is in progress
org.hibernate.internal.SessionImpl.checkTransactionNeeded(SessionImpl.java:3450), org.hibernate.internal.SessionImpl.doFlush(SessionImpl.java:1418),

I posted the details of the environment and exception details in the below URL. Please excue my tardiness as I did not want to take too much of your time thus did not want to duplicate the issue - instead pasted the URL below.
I really appreciated your help!!!! Thanks a lot in advance!!!!

https://stackoverflow.com/questions/455 ... g-4-3-7-an


Top
 Profile  
 
 Post subject: Re: transaction error with upgrade to hibernate 5.2.9
PostPosted: Fri Aug 04, 2017 3:38 pm 
Hibernate Team
Hibernate Team

Joined: Thu Sep 11, 2014 2:50 am
Posts: 1628
Location: Romania
Check out my answer.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.