javax.persistence.TransactionRequiredException

no transaction is in progress


Solutions on the web309

Solution icon of github
no transaction is in progress

Solution icon of spring
via Spring JIRA by Manuel Dominguez Sarmiento, 1 year ago
no transaction is in progress

Solution icon of kuali
via Kuali JIRA by Mike Riley, 1 year ago
no transaction is in progress

Solution icon of stackoverflow
no transaction is in progress

Solution icon of stackoverflow
no transaction is in progress

Solution icon of stackoverflow
no transaction is in progress

Solution icon of stackoverflow
no transaction is in progress

Solution icon of stackoverflow
no transaction is in progress

Solution icon of stackoverflow
via Stack Overflow by user
, 1 year ago
no transaction is in progress

Solution icon of stackoverflow
no transaction is in progress

Stack trace

  • javax.persistence.TransactionRequiredException: no transaction is in progress at org.hibernate.jpa.spi.AbstractEntityManagerImpl.checkTransactionNeeded(AbstractEntityManagerImpl.java:1171) at org.hibernate.jpa.spi.AbstractEntityManagerImpl.flush(AbstractEntityManagerImpl.java:1332) at sun.reflect.GeneratedMethodAccessor2083.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:293) at com.sun.proxy.$Proxy147.flush(Unknown Source)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Once, 5 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
2 more bugmates