javax.persistence.TransactionRequiredException

no transaction is in progress

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web306

  • no transaction is in progress
  • via Spring JIRA by Manuel Dominguez Sarmiento, 11 months ago
    no transaction is in progress
  • via Kuali JIRA by Mike Riley, 1 year ago
    no transaction is in progress
  • Stack trace

    • javax.persistence.TransactionRequiredException: no transaction is in progress at org.hibernate.jpa.spi.AbstractEntityManagerImpl.checkTransactionNeeded(AbstractEntityManagerImpl.java:1171)[hibernate-entitymanager-4.3.8.Final.jar:4.3.8.Final] at org.hibernate.jpa.spi.AbstractEntityManagerImpl.flush(AbstractEntityManagerImpl.java:1332)[hibernate-entitymanager-4.3.8.Final.jar:4.3.8.Final] at sun.reflect.GeneratedMethodAccessor139.invoke(Unknown Source)[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.7.0_67] at java.lang.reflect.Method.invoke(Method.java:606)[na:1.7.0_67] at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:366)[spring-orm-3.2.13.RELEASE.jar:3.2.13.RELEASE] at com.sun.proxy.$Proxy178.flush(Unknown Source)[na:na] at org.apache.camel.component.jpa.JpaConsumer$1.doInTransaction(JpaConsumer.java:137)[camel-jpa-2.13.3.jar:2.13.3] at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:131)[spring-tx-3.2.13.RELEASE.jar:3.2.13.RELEASE] at org.apache.camel.component.jpa.JpaConsumer.poll(JpaConsumer.java:91)[camel-jpa-2.13.3.jar:2.13.3] at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:187)[camel-core-2.13.3.jar:2.13.3] at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:114)[camel-core-2.13.3.jar:2.13.3] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[na:1.7.0_67] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)[na:1.7.0_67] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)[na:1.7.0_67] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)[na:1.7.0_67] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[na:1.7.0_67] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[na:1.7.0_67] at java.lang.Thread.run(Thread.java:745)[na:1.7.0_67]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Once, 4 months ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    2 times, 1 year ago
    2 more bugmates