org.springframework.dao.InvalidDataAccessApiUsageException: No EntityManager with actual transaction available for current thread - cannot reliably process 'merge' call; nested exception is javax.persistence.TransactionRequiredException: No EntityManager with actual transaction available for current thread - cannot reliably process 'merge' call

GitHub | belluccifranco | 5 months ago
  1. 0

    Eliminacion de producto

    GitHub | 5 months ago | belluccifranco
    org.springframework.dao.InvalidDataAccessApiUsageException: No EntityManager with actual transaction available for current thread - cannot reliably process 'merge' call; nested exception is javax.persistence.TransactionRequiredException: No EntityManager with actual transaction available for current thread - cannot reliably process 'merge' call
  2. 0

    How properly define Spring Integration JpaOutboundGateway in Java Configuration?

    Stack Overflow | 3 months ago | daprog
    org.springframework.messaging.MessageHandlingException: error occurred in message handler [org.springframework.integration.jpa.outbound.JpaOutboundGateway@1fc306d3]; nested exception is javax.persistence.TransactionRequiredException: No EntityManager with actual transaction available for current thread - cannot reliably process 'merge' call
  3. 0

    TransactionRequiredException occurs TomEE, JTA with Spring

    Stack Overflow | 7 days ago | user6895036
    javax.persistence.TransactionRequiredException: No EntityManager with actual transaction available for current thread - cannot reliably process 'merge' call
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spring ORM example with JPA, Hibernate, Transactions - JournalDev

    journaldev.com | 5 months ago
    javax.persistence.TransactionRequiredException: No EntityManager with actual transaction available for current thread – cannot reliably process ‘persist’ call
  6. 0

    @Transaction doesn't work in Spring Web MVC?

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

  1. justinMiras 2 times, last 12 months 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 'merge' 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
    $Proxy61.merge
    1. com.sun.proxy.$Proxy61.merge(Unknown Source)
    1 frame
  4. sic.repository.jpa
    ProductoRepositoryJPAImpl.actualizarMultiplesProductos
    1. sic.repository.jpa.ProductoRepositoryJPAImpl.actualizarMultiplesProductos(ProductoRepositoryJPAImpl.java:130)
    1 frame
  5. 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
  6. Spring AOP
    ReflectiveMethodInvocation.proceed
    1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)
    2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
    3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
    3 frames
  7. Spring Tx
    PersistenceExceptionTranslationInterceptor.invoke
    1. org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:136)
    1 frame