javax.persistence.TransactionRequiredException: No EntityManager with actual transaction available for current thread – cannot reliably process ‘persist’ call

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 journaldev.com by Unknown author, 1 year ago
No EntityManager with actual transaction available for current threadcannot reliably processpersistcall
via journaldev.com by Unknown author, 1 year ago
No EntityManager with actual transaction available for current threadcannot reliably processpersistcall
via Stack Overflow by Sathish Murugesan
, 2 years ago
No EntityManager with actual transaction available for current thread - cannot reliably process 'persist' call
via Stack Overflow by G.Spansky
, 1 year ago
No EntityManager with actual transaction available for current thread - cannot reliably process 'persist' call
via oschina.net by Unknown author, 2 years ago
No transactional EntityManager available
via Stack Overflow by Atom
, 1 year ago
No transactional EntityManager available
javax.persistence.TransactionRequiredException: No EntityManager with actual transaction available for current thread – cannot reliably process ‘persist’ call
at com.sun.proxy.$Proxy8.persist(Unknown Source)
at com.dao.ProductDao.Persist(ProductDao.java:19)
at com.service.ProductService.add(ProductService.java:19)
at undefined.SpringOrmMain.main(SpringOrmMain.java:22)

Users with the same issue

4 times, 8 months ago
Once, 1 year ago
2 times, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 week ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago

Write tip

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