javax.persistence.TransactionRequiredException: Executing an update/delete query

Stack Overflow | Praveen Jain | 5 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

    i am getting transaction exception while executing the insert query by Native-query , how to resolve it?

    Stack Overflow | 5 months ago | Praveen Jain
    javax.persistence.TransactionRequiredException: Executing an update/delete query
  2. 0

    Unable to perform insert/update/delete

    Stack Overflow | 3 years ago | Athanor
    javax.persistence.TransactionRequiredException: Executing an update/delete query
  3. 0

    Harvester / Rerun harvester does not work

    GitHub | 3 years ago | fxprunayre
    javax.persistence.TransactionRequiredException: Executing an update/delete query
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    TransactionRequiredException on @Query @Modifying methods in JpaRepository

    GitHub | 2 years ago | sddakoty
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'personService': Invocation of init method failed; nested exception is org.springframework.dao.InvalidDataAccessApiUsageException: Executing an update/delete query; nested exception is javax.persistence.TransactionRequiredException: Executing an update/delete query
  6. 0

    Spring Boot: javax.persistence.TransactionRequiredException: Executing an update/delete query - scriptscoop.com

    scriptscoop.com | 1 year ago
    javax.persistence.TransactionRequiredException: Executing an update/delete query

  1. MoYapro 1 times, last 8 months 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

    Executing an update/delete query

    at org.hibernate.jpa.spi.AbstractQueryImpl.executeUpdate()
  2. org.hibernate.jpa
    AbstractQueryImpl.executeUpdate
    1. org.hibernate.jpa.spi.AbstractQueryImpl.executeUpdate(AbstractQueryImpl.java:54)
    1 frame
  3. 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
  4. Spring ORM
    SharedEntityManagerCreator$DeferredQueryInvocationHandler.invoke
    1. org.springframework.orm.jpa.SharedEntityManagerCreator$DeferredQueryInvocationHandler.invoke(SharedEntityManagerCreator.java:372)
    1 frame
  5. com.sun.proxy
    $Proxy29.executeUpdate
    1. com.sun.proxy.$Proxy29.executeUpdate(Unknown Source)
    1 frame