javax.persistence.TransactionRequiredException: No transactional EntityManager available

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 oschina.net by Unknown author, 2 years ago
No transactional EntityManager available
via aliyun.com by Unknown author, 1 year ago
No transactional EntityManager available
via Stack Overflow by Sathish Murugesan
, 1 year 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 Stack Overflow by Atom
, 1 year ago
No transactional EntityManager available
via journaldev.com by Unknown author, 1 year ago
No EntityManager with actual transaction available for current thread – cannot reliably process ‘persist’ call
javax.persistence.TransactionRequiredException: No transactional EntityManager available
at com.sun.proxy.$Proxy21.persist(Unknown Source)
at cn.com.demo.common.dao.impl.JpaDaoImpl.save(JpaDaoImpl.java:32)

Users with the same issue

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

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