org.springframework.transaction.TransactionSystemException: Could not commit JPA transaction; nested exception is javax.persistence.RollbackException: Transaction marked as rollbackOnly

broadleafcommerce.org | 2 months ago
  1. 0

    Moving DataBase HSQLDB to MySQL - Broadleaf Commerce Discussion Forums

    broadleafcommerce.org | 8 months ago
    org.springframework.transaction.TransactionSystemException: Could not commit JPA transaction; nested exception is javax.persistence.RollbackException: Transaction marked as rollbackOnly
  2. 0

    Moving DataBase HSQLDB to MySQL - Broadleaf Commerce Discussion Forums

    broadleafcommerce.org | 2 months ago
    org.springframework.transaction.TransactionSystemException: Could not commit JPA transaction; nested exception is javax.persistence.RollbackException: Transaction marked as rollbackOnly
  3. 0

    Org.springframework.transaction.TransactionSystemException: Could not commit JPA transaction - www.scriptscoop.net

    scriptscoop.net | 8 months ago
    org.springframework.transaction.TransactionSystemException: Could not commit JPA transaction; nested exception is javax.persistence.RollbackException: Transaction marked as rollbackOnly
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spring Transaction - Pegar exceção do delete e fazer update

    com.br | 1 year ago
    javax.faces.FacesException: #{userAction.deleteUser()}: org.springframework.transaction.TransactionSystemException: Could not commit JPA transaction; nested exception is javax.persistence.RollbackException: Transaction marked as rollbackOnly
  6. 0

    Transaction and Rollback in Spring with JPA

    Stack Overflow | 5 years ago | giulius
    org.springframework.transaction.TransactionSystemException: Could not commit JPA transaction; nested exception is javax.persistence.RollbackException: Transaction marked as rollbackOnly

  1. linxiaolong 4 times, last 4 months ago
  2. Gaurav Pareek 1 times, last 12 months ago
8 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.RollbackException

    Transaction marked as rollbackOnly

    at org.hibernate.ejb.TransactionImpl.commit()
  2. Hibernate EJB
    TransactionImpl.commit
    1. org.hibernate.ejb.TransactionImpl.commit(TransactionImpl.java:73)
    1 frame
  3. Spring ORM
    JpaTransactionManager.doCommit
    1. org.springframework.orm.jpa.JpaTransactionManager.doCommit(JpaTransactionManager.java:512)
    1 frame
  4. Spring Tx
    AbstractPlatformTransactionManager.commit
    1. org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:754)
    2. org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:723)
    2 frames
  5. org.broadleafcommerce.test
    MergeTransactionalTestExecutionListener.afterTestMethod
    1. org.broadleafcommerce.test.MergeTransactionalTestExecutionListener$TransactionContext.endTransaction(MergeTransactionalTestExecutionListener.java:514)
    2. org.broadleafcommerce.test.MergeTransactionalTestExecutionListener.endTransaction(MergeTransactionalTestExecutionListener.java:287)
    3. org.broadleafcommerce.test.MergeTransactionalTestExecutionListener.afterTestMethod(MergeTransactionalTestExecutionListener.java:180)
    3 frames
  6. Spring TestContext
    AbstractTestNGSpringContextTests.springTestContextAfterTestMethod
    1. org.springframework.test.context.TestContextManager.afterTestMethod(TestContextManager.java:406)
    2. org.springframework.test.context.testng.AbstractTestNGSpringContextTests.springTestContextAfterTestMethod(AbstractTestNGSpringContextTests.java:179)
    2 frames
  7. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:597)
    3 frames
  8. TestNG
    TestNG.run
    1. org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:607)
    2. org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:417)
    3. org.testng.internal.Invoker.invokeConfigurations(Invoker.java:154)
    4. org.testng.internal.Invoker.invokeMethod(Invoker.java:583)
    5. org.testng.internal.Invoker.invokeTestMethod(Invoker.java:669)
    6. org.testng.internal.Invoker.invokeTestMethods(Invoker.java:956)
    7. org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:126)
    8. org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:110)
    9. org.testng.TestRunner.runWorkers(TestRunner.java:759)
    10. org.testng.TestRunner.privateRun(TestRunner.java:592)
    11. org.testng.TestRunner.run(TestRunner.java:486)
    12. org.testng.SuiteRunner.runTest(SuiteRunner.java:332)
    13. org.testng.SuiteRunner.runSequentially(SuiteRunner.java:327)
    14. org.testng.SuiteRunner.privateRun(SuiteRunner.java:299)
    15. org.testng.SuiteRunner.run(SuiteRunner.java:204)
    16. org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:877)
    17. org.testng.TestNG.runSuitesLocally(TestNG.java:842)
    18. org.testng.TestNG.run(TestNG.java:751)
    18 frames
  9. org.apache.maven
    TestNGProvider.invoke
    1. org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:70)
    2. org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:158)
    3. org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:98)
    4. org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:111)
    4 frames
  10. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  11. SureFire
    ForkedBooter.main
    1. org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
    2. org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
    3. org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
    4. org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
    5. org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
    5 frames