java.sql.BatchUpdateException: ORA-00001: unique constraint > (SONAR_DEV.FILE_SOURCES_FILE_UUID_UNIQ) violated > > at > oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:10296) > ~[ojdbc6-11.2.0.2.0.jar:11.2.0.2.0] > at > oracle.jdbc.driver.OracleStatementWrapper.executeBatch(OracleStatementWrapper.java:216) > ~[ojdbc6-11.2.0.2.0.jar:11.2.0.2.0] > at > org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:297) > ~[commons-dbcp-1.4.jar:1.4] > at > org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:297) > ~[commons-dbcp-1.4.jar:1.4] > at org.sonar.db.version.UpsertImpl.addBatch(UpsertImpl.java:41)

Google Groups | Michael Giroux | 1 year ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Upgrade to 5.2 fails due to unique constraint

    Google Groups | 1 year ago | Michael Giroux
    java.sql.BatchUpdateException: ORA-00001: unique constraint > (SONAR_DEV.FILE_SOURCES_FILE_UUID_UNIQ) violated > > at > oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:10296) > ~[ojdbc6-11.2.0.2.0.jar:11.2.0.2.0] > at > oracle.jdbc.driver.OracleStatementWrapper.executeBatch(OracleStatementWrapper.java:216) > ~[ojdbc6-11.2.0.2.0.jar:11.2.0.2.0] > at > org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:297) > ~[commons-dbcp-1.4.jar:1.4] > at > org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:297) > ~[commons-dbcp-1.4.jar:1.4] > at org.sonar.db.version.UpsertImpl.addBatch(UpsertImpl.java:41)

    Root Cause Analysis

    1. java.sql.BatchUpdateException

      ORA-00001: unique constraint > (SONAR_DEV.FILE_SOURCES_FILE_UUID_UNIQ) violated > > at > oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:10296) > ~[ojdbc6-11.2.0.2.0.jar:11.2.0.2.0] > at > oracle.jdbc.driver.OracleStatementWrapper.executeBatch(OracleStatementWrapper.java:216) > ~[ojdbc6-11.2.0.2.0.jar:11.2.0.2.0] > at > org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:297) > ~[commons-dbcp-1.4.jar:1.4] > at > org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:297) > ~[commons-dbcp-1.4.jar:1.4] > at org.sonar.db.version.UpsertImpl.addBatch(UpsertImpl.java:41)

      at org.sonar.db.version.MassUpdate$1.handle()
    2. org.sonar.db
      SelectImpl.scroll
      1. org.sonar.db.version.MassUpdate$1.handle(MassUpdate.java:80)
      2. org.sonar.db.version.SelectImpl.scroll(SelectImpl.java:78)
      2 frames