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

journaldev.com | 5 months ago
  1. 0

    Spring ORM example with JPA, Hibernate, Transactions - JournalDev

    journaldev.com | 5 months ago
    javax.persistence.TransactionRequiredException: No EntityManager with actual transaction available for current thread – cannot reliably process ‘persist’ call
  2. 0

    Spring ORM example - JPA, Hibernate, Transaction - JournalDev

    journaldev.com | 5 months ago
    javax.persistence.TransactionRequiredException: No EntityManager with actual transaction available for current thread – cannot reliably process ‘persist’ call
  3. 0

    @Transaction doesn't work in Spring Web MVC?

    Stack Overflow | 8 months ago | JunYi
    javax.persistence.TransactionRequiredException: No EntityManager with actual transaction available for current thread - cannot reliably process 'persist' call
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Transaction did not start in multi module maven project with Spring and Hibernate

    Stack Overflow | 8 months ago | andarsv
    javax.persistence.TransactionRequiredException: No EntityManager with actual transaction available for current thread - cannot reliably process 'persist' call
  6. 0

    Spring Data JPA save new Entity and get its all dependencies

    Stack Overflow | 7 months ago | G.Spansky
    javax.persistence.TransactionRequiredException: No EntityManager with actual transaction available for current thread - cannot reliably process 'persist' call

  1. justinMiras 2 times, last 12 months ago
22 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. javax.persistence.TransactionRequiredException

    No EntityManager with actual transaction available for current thread – cannot reliably process ‘persist’ call

    at org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke()
  2. Spring ORM
    SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke
    1. org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:278)
    1 frame
  3. com.sun.proxy
    $Proxy8.persist
    1. com.sun.proxy.$Proxy8.persist(Unknown Source)
    1 frame
  4. com.dao
    ProductDao.Persist
    1. com.dao.ProductDao.Persist(ProductDao.java:19)
    1 frame
  5. com.service
    ProductService.add
    1. com.service.ProductService.add(ProductService.java:19)
    1 frame
  6. Unknown
    SpringOrmMain.main
    1. SpringOrmMain.main(SpringOrmMain.java:22)
    1 frame