"javax.persistence.TransactionRequiredException: no transaction is in progress" using Hibernate in JBoss EAP
Issue
Encountering the error below during Hibernate operations
javax.persistence.TransactionRequiredException: no transaction is in progress
at org.hibernate.internal.AbstractSharedSessionContract.checkTransactionNeededForUpdateOperation(AbstractSharedSessionContract.java:398)
at org.hibernate.internal.SessionImpl.checkTransactionNeededForUpdateOperation(SessionImpl.java:3584)
at org.hibernate.internal.SessionImpl.doFlush(SessionImpl.java:1463)
at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1458)
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7
- 6
- Hibernate
- 5
- 4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.