javax.persistence.TransactionRequiredException: no transaction is in progress

Stack Overflow | Bruno | 2 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Transaction inside` TransactionSynchronizationManager` afterCommit with TaskExecutor

    Stack Overflow | 2 months 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 | 8 months ago
    javax.persistence.TransactionRequiredException: no transaction is in progress

  1. tvrmsmith 1 times, last 1 month 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