org.springframework.transaction.TransactionSystemException: Could not roll back JPA transaction; nested exception is javax.persistence.PersistenceException: unexpected error when rollbacking

Stack Overflow | Asoub | 3 months ago
  1. 0

    Rollback fail : connection closed after database restart on Spring-batch

    Stack Overflow | 3 months ago | Asoub
    org.springframework.transaction.TransactionSystemException: Could not roll back JPA transaction; nested exception is javax.persistence.PersistenceException: unexpected error when rollbacking
  2. 0

    [upgrade] Exception in candlepin logs: javax.persistence.PersistenceException: unexpected error when rollbacking

    https://bugzilla.redhat.com/bugzilla/ | 6 months ago | Sachin Ghai
    javax.persistence.PersistenceException: unexpected error when rollbacking
  3. 0

    How to get Squeryl to release closed connections back to C3P0?

    Stack Overflow | 3 years ago | Dr.Haribo
    org.postgresql.util.PSQLException: This connection has been closed.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GL Journal can not complete

    adempiere | 6 years ago | andijani
    org.postgresql.util.PSQLException: An I/O error occured while sending to the backend.; State=08006; ErrorCode=0

    1 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. org.postgresql.util.PSQLException

      This connection has been closed.

      at org.postgresql.jdbc2.AbstractJdbc2Connection.checkClosed()
    2. PostgreSQL JDBC Driver
      AbstractJdbc2Connection.rollback
      1. org.postgresql.jdbc2.AbstractJdbc2Connection.checkClosed(AbstractJdbc2Connection.java:837)[postgresql-9.3-1101.jdbc4.jar:na]
      2. org.postgresql.jdbc2.AbstractJdbc2Connection.rollback(AbstractJdbc2Connection.java:854)[postgresql-9.3-1101.jdbc4.jar:na]
      2 frames
    3. c3p0:JDBC DataSources/Resource Pools
      NewProxyConnection.rollback
      1. com.mchange.v2.c3p0.impl.NewProxyConnection.rollback(NewProxyConnection.java:860)[c3p0-0.9.2.1.jar:0.9.2.1]
      1 frame
    4. Hibernate
      AbstractTransactionImpl.rollback
      1. org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.doRollback(JdbcTransaction.java:163)[hibernate-core-4.3.6.Final.jar:4.3.6.Final]
      2. org.hibernate.engine.transaction.spi.AbstractTransactionImpl.rollback(AbstractTransactionImpl.java:211)[hibernate-core-4.3.6.Final.jar:4.3.6.Final]
      2 frames
    5. org.hibernate.jpa
      TransactionImpl.rollback
      1. org.hibernate.jpa.internal.TransactionImpl.rollback(TransactionImpl.java:108)[hibernate-entitymanager-4.3.5.Final.jar:4.3.5.Final]
      1 frame
    6. Spring ORM
      JpaTransactionManager.doRollback
      1. org.springframework.orm.jpa.JpaTransactionManager.doRollback(JpaTransactionManager.java:544)[spring-orm-4.2.3.RELEASE.jar:4.2.3.RELEASE]
      1 frame
    7. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.support.AbstractPlatformTransactionManager.processRollback(AbstractPlatformTransactionManager.java:853)[spring-tx-4.2.3.RELEASE.jar:4.2.3.RELEASE]
      2. org.springframework.transaction.support.AbstractPlatformTransactionManager.rollback(AbstractPlatformTransactionManager.java:830)[spring-tx-4.2.3.RELEASE.jar:4.2.3.RELEASE]
      3. org.springframework.transaction.interceptor.TransactionAspectSupport.completeTransactionAfterThrowing(TransactionAspectSupport.java:503)[spring-tx-4.2.3.RELEASE.jar:4.2.3.RELEASE]
      4. org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:285)[spring-tx-4.2.3.RELEASE.jar:4.2.3.RELEASE]
      5. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)[spring-tx-4.2.3.RELEASE.jar:4.2.3.RELEASE]
      5 frames
    8. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.2.3.RELEASE.jar:4.2.3.RELEASE]
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)[spring-aop-4.2.3.RELEASE.jar:4.2.3.RELEASE]
      2 frames
    9. Unknown
      $Proxy204.afterJob
      1. $Proxy204.afterJob(Unknown Source)[na:na]
      1 frame
    10. Spring Batch Core
      SimpleJobLauncher$1.run
      1. org.springframework.batch.core.listener.CompositeJobExecutionListener.afterJob(CompositeJobExecutionListener.java:60)[spring-batch-core-3.0.4.RELEASE.jar:3.0.4.RELEASE]
      2. org.springframework.batch.core.job.AbstractJob.execute(AbstractJob.java:346)[spring-batch-core-3.0.4.RELEASE.jar:3.0.4.RELEASE]
      3. org.springframework.batch.core.launch.support.SimpleJobLauncher$1.run(SimpleJobLauncher.java:135)[spring-batch-core-3.0.4.RELEASE.jar:3.0.4.RELEASE]
      3 frames
    11. Spring Core
      SyncTaskExecutor.execute
      1. org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:50)[spring-core-4.2.3.RELEASE.jar:4.2.3.RELEASE]
      1 frame
    12. Spring Batch Core
      SimpleJobLauncher.run
      1. org.springframework.batch.core.launch.support.SimpleJobLauncher.run(SimpleJobLauncher.java:128)[spring-batch-core-3.0.4.RELEASE.jar:3.0.4.RELEASE]
      1 frame
    13. fr.aso.batch
      OpsTest.testRecuperationEtabsEmployantSalariesCNAMJob
      1. fr.aso.batch.OpsTest.testRecuperationEtabsEmployantSalariesCNAMJob(OpsTest.java:100)[test-classes/:na]
      1 frame
    14. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.6.0_30]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[na:1.6.0_30]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[na:1.6.0_30]
      4. java.lang.reflect.Method.invoke(Method.java:597)[na:1.6.0_30]
      4 frames
    15. JUnit
      InvokeMethod.evaluate
      1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)[junit-4.12.jar:4.12]
      2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)[junit-4.12.jar:4.12]
      3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)[junit-4.12.jar:4.12]
      4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)[junit-4.12.jar:4.12]
      4 frames
    16. Spring TestContext
      SpringRepeat.evaluate
      1. org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75)[spring-test-4.2.3.RELEASE.jar:4.2.3.RELEASE]
      2. org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)[spring-test-4.2.3.RELEASE.jar:4.2.3.RELEASE]
      3. org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)[spring-test-4.2.3.RELEASE.jar:4.2.3.RELEASE]
      3 frames
    17. JUnit
      ParentRunner.runLeaf
      1. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)[junit-4.12.jar:4.12]
      1 frame
    18. Spring TestContext
      SpringJUnit4ClassRunner.runChild
      1. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:254)[spring-test-4.2.3.RELEASE.jar:4.2.3.RELEASE]
      2. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:89)[spring-test-4.2.3.RELEASE.jar:4.2.3.RELEASE]
      2 frames
    19. JUnit
      ParentRunner$2.evaluate
      1. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)[junit-4.12.jar:4.12]
      2. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)[junit-4.12.jar:4.12]
      3. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)[junit-4.12.jar:4.12]
      4. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)[junit-4.12.jar:4.12]
      5. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)[junit-4.12.jar:4.12]
      5 frames
    20. Spring TestContext
      RunAfterTestClassCallbacks.evaluate
      1. org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)[spring-test-4.2.3.RELEASE.jar:4.2.3.RELEASE]
      2. org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)[spring-test-4.2.3.RELEASE.jar:4.2.3.RELEASE]
      2 frames
    21. JUnit
      ParentRunner.run
      1. org.junit.runners.ParentRunner.run(ParentRunner.java:363)[junit-4.12.jar:4.12]
      1 frame
    22. Spring TestContext
      SpringJUnit4ClassRunner.run
      1. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:193)[spring-test-4.2.3.RELEASE.jar:4.2.3.RELEASE]
      1 frame
    23. JUnit4 Runner
      JUnit4TestReference.run
      1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)[.cp/:na]
      1 frame
    24. JUnit3 Runner
      RemoteTestRunner.main
      1. org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)[.cp/:na]
      2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)[.cp/:na]
      3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)[.cp/:na]
      4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)[.cp/:na]
      5. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)[.cp/:na]
      5 frames