java.sql.SQLException: Can't call commit when autocommit=true

Atlassian JIRA | Dave Loeng [Atlassian] | 1 decade 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
  2. 0
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Hibernate - C3P0 - connectionPool - Transactions

    Stack Overflow | 4 years ago | Jesus Schneider
    java.sql.SQLException: Can't call commit when autocommit=true

    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. java.sql.SQLException

      Can't call commit when autocommit=true

      at com.mysql.jdbc.Connection.commit()
    2. MySQL jdbc
      Connection.commit
      1. com.mysql.jdbc.Connection.commit(Connection.java:1175)
      1 frame
    3. Commons DBCP
      PoolingDataSource$PoolGuardConnectionWrapper.commit
      1. org.apache.commons.dbcp.DelegatingConnection.commit(DelegatingConnection.java:248)
      2. org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.commit(PoolingDataSource.java:244)
      2 frames
    4. com.atlassian.confluence
      VersionedAttachmentDatabaseUpgradeTask.doUpgrade
      1. com.atlassian.confluence.upgrade.VersionedAttachmentDatabaseUpgradeTask.updateAttachmentsTable(VersionedAttachmentDatabaseUpgradeTask.java:71)
      2. com.atlassian.confluence.upgrade.VersionedAttachmentDatabaseUpgradeTask.doUpgrade(VersionedAttachmentDatabaseUpgradeTask.java:41)
      2 frames
    5. bucket.upgrade
      AbstractUpgradeManager.upgrade
      1. bucket.upgrade.AbstractUpgradeManager.doUpgrade(AbstractUpgradeManager.java:82)
      2. bucket.upgrade.AbstractUpgradeManager.upgrade(AbstractUpgradeManager.java:47)
      2 frames