org.springframework.dao.InvalidDataAccessApiUsageException: no transaction is in progress; nested exception is javax.persistence.TransactionRequiredException: no transaction is in progress

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Spring JIRA by Purnendu Das, 1 year ago
no transaction is in progress; nested exception is javax.persistence.TransactionRequiredException: no transaction is in progress
via Spring JIRA by Purnendu Das, 1 year ago
no transaction is in progress; nested exception is javax.persistence.TransactionRequiredException: no transaction is in progress
via Stack Overflow by Tushar Banne
, 1 week ago
no transaction is in progress; nested exception is
via Stack Overflow by Syngularity
, 11 months ago
Executing an update/delete query; nested exception is javax.persistence.TransactionRequiredException: Executing an update/delete query
via Stack Overflow by Charith
, 5 months ago
Executing an update/delete query; nested exception is javax.persistence.TransactionRequiredException: Executing an update/delete query
via GitHub by landryb
, 2 years ago
For input string: "null"; nested exception is java.lang.NumberFormatException: For input string: "null"
org.springframework.dao.InvalidDataAccessApiUsageException: no transaction is in progress; nested exception is javax.persistence.TransactionRequiredException: no transaction is in progress
at org.hibernate.ejb.AbstractEntityManagerImpl.flush(AbstractEntityManagerImpl.java:294)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at undefined.$Proxy17.flush(Unknown Source)
at org.springframework.orm.jpa.JpaTemplate$8.doInJpa(JpaTemplate.java:283)
at org.springframework.orm.jpa.JpaTemplate.execute(JpaTemplate.java:185)
at javaapplication5.TripDaoimp.save(TripDaoimp.java:40)
at javaapplication5.TestService.save(TestService.java:35)
at javaapplication5.Test.setTrip(Test.java:32)
at javaapplication5.Main.main(Main.java:25)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
20 times, 2 months ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Know the solutions? Share your knowledge to help other developers to debug faster.