org.hibernate.TransactionException: JDBC rollback failed

atlassian.com | 5 months ago
  1. 0

    Problemas com mapeamentos no hibernate - Javafree: O fórum de Java que mais cresce

    com.br | 1 year ago
    org.hibernate.TransactionException: JDBC rollback failed
  2. 0

    h2-database - Re: Rollback failure - msg#00113 - Recent Discussion OSDir.com

    osdir.com | 9 months ago
    org.hibernate.TransactionException: JDBC rollback failed
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Setting packetSize given in JDBCDriver.

    Oracle Community | 4 years ago | 1010289
    org.hibernate.TransactionException: JDBC rollback failed
  5. 0

    Throwing a RuntimeException in a method in a proxied object before any database activity occurs causes a TransactionSystemException to be thrown when Spring attempts to roll back a transaction that hasn't started yet. Stack trace: org.springframework.transaction.TransactionSystemException: Could not roll back Hibernate transaction; nested exception is org.hibernate.TransactionException: JDBC rollback failed org.hibernate.TransactionException: JDBC rollback failed at org.hibernate.transaction.JDBCTransaction.rollback(JDBCTransaction.java:150) at org.springframework.orm.hibernate3.HibernateTransactionManager.doRollback(HibernateTransactionManager.java:603) at org.springframework.transaction.support.AbstractPlatformTransactionManager.processRollback(AbstractPlatformTransactionManager.java:583) at org.springframework.transaction.support.AbstractPlatformTransactionManager.rollback(AbstractPlatformTransactionManager.java:560) at org.springframework.transaction.interceptor.TransactionAspectSupport.doCloseTransactionAfterThrowing(TransactionAspectSupport.java:285) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:100) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176) [...] Caused by: java.sql.SQLException: rollback() should not be called while in auto-commit mode. at net.sourceforge.jtds.jdbc.ConnectionJDBC2.rollback(ConnectionJDBC2.java:1989) at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.jdbcRollback(BaseWrapperManagedConnection.java:535) at org.jboss.resource.adapter.jdbc.WrappedConnection.rollback(WrappedConnection.java:460) at org.hibernate.transaction.JDBCTransaction.rollbackAndResetAutoCommit(JDBCTransaction.java:163) at org.hibernate.transaction.JDBCTransaction.rollback(JDBCTransaction.java:142) ... 54 more In trying to reproduce this locally, it seems that the JBoss resource adapter may be the source of the problem because I can't get the problem to reproduce wihtout running it under JBoss. This code, if created within a proxied object, should have reproduced the error: @Transactional public void myTransactionalProxiedMethod() { throw new RuntimeException("No database access has occurred yet."); }

    Spring JIRA | 1 decade ago | David D. Kilzer
    org.hibernate.TransactionException: JDBC rollback failed

    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.hibernate.TransactionException

      JDBC rollback failed

      at org.springframework.orm.hibernate3.HibernateTransactionManager.doRollback()
    2. Hibernate
      HibernateTransactionManager.doRollback
      1. org.springframework.orm.hibernate3.HibernateTransactionManager.doRollback(HibernateTransactionManager.java:684)
      1 frame
    3. Spring Tx
      AbstractPlatformTransactionManager.rollback
      1. org.springframework.transaction.support.AbstractPlatformTransactionManager.processRollback(AbstractPlatformTransactionManager.java:849)
      2. org.springframework.transaction.support.AbstractPlatformTransactionManager.rollback(AbstractPlatformTransactionManager.java:826)
      2 frames
    4. Java RT
      DelegatingMethodAccessorImpl.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3 frames