javax.persistence.TransactionRequiredException: no transaction is in progress


Solutions on the web30

Solution icon of stackoverflow
no transaction is in progress

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

Solution icon of stackoverflow
no transaction is in progress

Solution icon of web
via renren.io by Unknown author, 1 year ago
no transaction is in progress

Solution icon of googlegroups
via Google Groups by Thomas Delnoij, 4 months ago
no transaction is in progress

Solution icon of stackoverflow
via Stack Overflow by kwh
, 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

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, 7 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, 2 years ago
Samebug visitor profile picture
Unknown user
2 times, 2 years ago
2 more bugmates