javax.persistence.TransactionRequiredException: No EntityManager with actual transaction available for current thread - cannot reliably process 'persist' call

Stack Overflow | Naim | 8 months 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

    Error in MDB - No EntityManager with actual transaction available for current thread

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

    cannot reliably process 'persist' call

    Stack Overflow | 1 year ago | Nadym Baba
    javax.persistence.TransactionRequiredException: No EntityManager with actual transaction available for current thread - cannot reliably process 'persist' call
  3. 0

    org.springframework.beans.factory.BeanCreationException with Transaction Manager

    Stack Overflow | 1 year ago | marionmaiden
    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

    Upgraded from Spring 4.1.6 to 4.2.4 and suddenly getting TransactionRequiredException

    Stack Overflow | 1 year ago | Sathish Murugesan
    javax.persistence.TransactionRequiredException: No EntityManager with actual transaction available for current thread - cannot reliably process 'persist' call
  6. 0

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

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

  1. jpvee 1 times, last 4 months ago
  2. justinMiras 2 times, last 1 year 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
    $Proxy38.persist
    1. com.sun.proxy.$Proxy38.persist(Unknown Source)
    1 frame
  4. com.tsr.rfl
    SasPreDispatcherServiceImpl$$FastClassBySpringCGLIB$$ad87c6ce.invoke
    1. com.tsr.rfl.services.persist.TrhRflDaoImpl.create(TrhRflDaoImpl.java:84)
    2. com.tsr.rfl.trh.data.dao.UfmAmendmentDaoImpl.saveAmendment(UfmAmendmentDaoImpl.java:12)
    3. com.tsr.rfl.dispatcher.service.SasPreDispatcherServiceImpl.validateUfm(SasPreDispatcherServiceImpl.java:110)
    4. com.tsr.rfl.dispatcher.service.SasPreDispatcherServiceImpl.performPreDispatch(SasPreDispatcherServiceImpl.java:62)
    5. com.tsr.rfl.dispatcher.service.SasPreDispatcherServiceImpl$$FastClassBySpringCGLIB$$ad87c6ce.invoke(<generated>)
    5 frames
  5. Spring Core
    MethodProxy.invoke
    1. org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
    1 frame
  6. Spring AOP
    CglibAopProxy$DynamicAdvisedInterceptor.intercept
    1. org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:651)
    1 frame
  7. com.tsr.rfl
    SasPredispatcherMDB.onMessage
    1. com.tsr.rfl.dispatcher.service.SasPreDispatcherServiceImpl$$EnhancerBySpringCGLIB$$5d22c482.performPreDispatch(<generated>)
    2. com.tsr.rfl.queue.SasPredispatcherMDB.onMessage(SasPredispatcherMDB.java:71)
    2 frames
  8. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:497)
    4 frames
  9. JBoss Application Server: EE
    ManagedReferenceMethodInterceptor.processInvocation
    1. org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)
    1 frame
  10. JBoss Application Server Server
    WeavedInterceptor.processInvocation
    1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
    2. org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
    2 frames
  11. JBoss Application Server: EE
    UserInterceptorFactory$1.processInvocation
    1. org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
    1 frame
  12. JBoss Application Server Server
    WeavedInterceptor.processInvocation
    1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
    2. org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
    2 frames
  13. JBoss Application Server: EE
    UserInterceptorFactory$1.processInvocation
    1. org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
    1 frame
  14. JBoss Application Server Server
    InterceptorContext.proceed
    1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
    1 frame
  15. JBoss Application Server: EJB Subsystem
    ExecutionTimeInterceptor.processInvocation
    1. org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)
    1 frame
  16. JBoss Application Server Server
    ChainedInterceptor.processInvocation
    1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
    2. org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)
    3. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
    4. org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
    4 frames
  17. JBoss Application Server: EE
    ComponentDispatcherInterceptor.processInvocation
    1. org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)
    1 frame
  18. JBoss Application Server Server
    InterceptorContext.proceed
    1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
    1 frame
  19. JBoss Application Server: EJB Subsystem
    PooledInstanceInterceptor.processInvocation
    1. org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)
    1 frame
  20. JBoss Application Server Server
    InterceptorContext.proceed
    1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
    1 frame
  21. JBoss Application Server: EJB Subsystem
    CMTTxInterceptor.processInvocation
    1. org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:257)
    2. org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:332)
    3. org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:242)
    3 frames
  22. JBoss Application Server Server
    InterceptorContext.proceed
    1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
    1 frame
  23. JBoss Application Server: EJB Subsystem
    CurrentInvocationContextInterceptor.processInvocation
    1. org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
    1 frame
  24. JBoss Application Server Server
    InterceptorContext.proceed
    1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
    1 frame
  25. JBoss Application Server: EJB Subsystem
    WaitTimeInterceptor.processInvocation
    1. org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:43)
    1 frame
  26. JBoss Application Server Server
    InterceptorContext.proceed
    1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
    1 frame
  27. JBoss Application Server: EJB Subsystem
    SecurityContextInterceptor.processInvocation
    1. org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:89)
    1 frame
  28. JBoss Application Server Server
    InterceptorContext.proceed
    1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
    1 frame
  29. JBoss Application Server: EJB Subsystem
    ShutDownInterceptorFactory$1.processInvocation
    1. org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)
    1 frame
  30. JBoss Application Server Server
    InterceptorContext.proceed
    1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
    1 frame
  31. JBoss Application Server: EJB Subsystem
    LoggingInterceptor.processInvocation
    1. org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)
    1 frame
  32. JBoss Application Server Server
    InterceptorContext.proceed
    1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
    1 frame
  33. JBoss Application Server: EE
    NamespaceContextInterceptor.processInvocation
    1. org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
    1 frame
  34. JBoss Application Server Server
    InterceptorContext.proceed
    1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
    1 frame
  35. JBoss Application Server: EJB Subsystem
    AdditionalSetupInterceptor.processInvocation
    1. org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:55)
    1 frame
  36. JBoss Application Server Server
    InterceptorContext.proceed
    1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
    1 frame
  37. JBoss Application Server: EJB Subsystem
    MessageDrivenComponentDescription$5$1.processInvocation
    1. org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponentDescription$5$1.processInvocation(MessageDrivenComponentDescription.java:203)
    1 frame
  38. JBoss Application Server Server
    InterceptorContext.proceed
    1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
    1 frame
  39. JBoss Application Server: EE
    TCCLInterceptor.processInvocation
    1. org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)
    1 frame
  40. JBoss Application Server Server
    ChainedInterceptor.processInvocation
    1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
    2. org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
    2 frames
  41. JBoss Application Server: EE
    ViewDescription$1.processInvocation
    1. org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:185)
    2. org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:185)
    2 frames
  42. JBoss Application Server Server
    ChainedInterceptor.processInvocation
    1. org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
    2. org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
    2 frames
  43. JBoss Application Server: EE
    ProxyInvocationHandler.invoke
    1. org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:73)
    1 frame
  44. JavaEE 7
    MessageListener$$$view1.onMessage
    1. javax.jms.MessageListener$$$view1.onMessage(Unknown Source)
    1 frame
  45. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:497)
    4 frames
  46. JBoss Application Server: EJB Subsystem
    AbstractInvocationHandler.invoke
    1. org.jboss.as.ejb3.inflow.MessageEndpointInvocationHandler.doInvoke(MessageEndpointInvocationHandler.java:140)
    2. org.jboss.as.ejb3.inflow.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:73)
    2 frames
  47. com.sun.proxy
    $Proxy13.onMessage
    1. com.sun.proxy.$Proxy13.onMessage(Unknown Source)
    1 frame
  48. HornetQ RAR POM
    HornetQMessageHandler.onMessage
    1. org.hornetq.ra.inflow.HornetQMessageHandler.onMessage(HornetQMessageHandler.java:335)
    1 frame
  49. HornetQ
    OrderedExecutorFactory$OrderedExecutor$1.run
    1. org.hornetq.core.client.impl.ClientConsumerImpl.callOnMessage(ClientConsumerImpl.java:1117)
    2. org.hornetq.core.client.impl.ClientConsumerImpl.access$500(ClientConsumerImpl.java:57)
    3. org.hornetq.core.client.impl.ClientConsumerImpl$Runner.run(ClientConsumerImpl.java:1252)
    4. org.hornetq.utils.OrderedExecutorFactory$OrderedExecutor$1.run(OrderedExecutorFactory.java:105)
    4 frames
  50. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    3. java.lang.Thread.run(Thread.java:745)
    3 frames