javax.persistence.TransactionRequiredException: no transaction is in progress

Apache's JIRA Issue Tracker | Hristo Sabev | 3 years 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

    Jeeves / Db query in config failed

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

    entitymanager persist does not save to database

    Stack Overflow | 3 years ago | Dhorium
    javax.persistence.TransactionRequiredException: no transaction is in progress
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    JpaRepository: No Transaction in progress

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

  1. tvrmsmith 1 times, last 2 weeks 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)[hibernate-entitymanager-4.3.8.Final.jar:4.3.8.Final]
    2. org.hibernate.jpa.spi.AbstractEntityManagerImpl.flush(AbstractEntityManagerImpl.java:1332)[hibernate-entitymanager-4.3.8.Final.jar:4.3.8.Final]
    2 frames
  3. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor139.invoke(Unknown Source)[na:na]
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.7.0_67]
    3. java.lang.reflect.Method.invoke(Method.java:606)[na:1.7.0_67]
    3 frames
  4. Spring ORM
    ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke
    1. org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:366)[spring-orm-3.2.13.RELEASE.jar:3.2.13.RELEASE]
    1 frame
  5. com.sun.proxy
    $Proxy178.flush
    1. com.sun.proxy.$Proxy178.flush(Unknown Source)[na:na]
    1 frame
  6. Camel :: JPA
    JpaConsumer$1.doInTransaction
    1. org.apache.camel.component.jpa.JpaConsumer$1.doInTransaction(JpaConsumer.java:137)[camel-jpa-2.13.3.jar:2.13.3]
    1 frame
  7. Spring Tx
    TransactionTemplate.execute
    1. org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:131)[spring-tx-3.2.13.RELEASE.jar:3.2.13.RELEASE]
    1 frame
  8. Camel :: JPA
    JpaConsumer.poll
    1. org.apache.camel.component.jpa.JpaConsumer.poll(JpaConsumer.java:91)[camel-jpa-2.13.3.jar:2.13.3]
    1 frame
  9. Camel :: Core
    ScheduledPollConsumer.run
    1. org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:187)[camel-core-2.13.3.jar:2.13.3]
    2. org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:114)[camel-core-2.13.3.jar:2.13.3]
    2 frames
  10. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[na:1.7.0_67]
    2. java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)[na:1.7.0_67]
    3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)[na:1.7.0_67]
    4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)[na:1.7.0_67]
    5. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[na:1.7.0_67]
    6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[na:1.7.0_67]
    7. java.lang.Thread.run(Thread.java:745)[na:1.7.0_67]
    7 frames