javax.persistence.TransactionRequiredException: no transaction is in progress

Stack Overflow | Bruno | 1 month ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Transaction inside` TransactionSynchronizationManager` afterCommit with TaskExecutor

    Stack Overflow | 1 month ago | Bruno
    javax.persistence.TransactionRequiredException: no transaction is in progress
  2. 0

    Jeeves / Db query in config failed

    GitHub | 3 years ago | fxprunayre
    javax.persistence.TransactionRequiredException: no transaction is in progress
  3. 0

    entitymanager persist does not save to database

    renren.io | 2 years ago
    javax.persistence.TransactionRequiredException: no transaction is in progress
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    entitymanager persist does not save to database

    Stack Overflow | 3 years ago | Dhorium
    javax.persistence.TransactionRequiredException: no transaction is in progress
  6. 0

    P_W999 | Because life has no try-catch

    wordpress.com | 7 months ago
    javax.persistence.TransactionRequiredException: no transaction is in progress

  1. tvrmsmith 1 times, last 7 days ago
6 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 transaction is in progress

    at org.hibernate.jpa.spi.AbstractEntityManagerImpl.checkTransactionNeeded()
  2. org.hibernate.jpa
    AbstractEntityManagerImpl.flush
    1. org.hibernate.jpa.spi.AbstractEntityManagerImpl.checkTransactionNeeded(AbstractEntityManagerImpl.java:1171)
    2. org.hibernate.jpa.spi.AbstractEntityManagerImpl.flush(AbstractEntityManagerImpl.java:1332)
    2 frames
  3. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor2083.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:498)
    3 frames
  4. Spring ORM
    SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke
    1. org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:293)
    1 frame
  5. com.sun.proxy
    $Proxy147.flush
    1. com.sun.proxy.$Proxy147.flush(Unknown Source)
    1 frame