Uploaded image for project: 'Crucible'
  1. Crucible
  2. CRUC-4188

Improve logging of database errors - java.sql.BatchUpdateException: Batch entry 0 ... was aborted. Call getNextException to see the cause.

    XMLWordPrintable

Details

    Description

      Seen in the logs of a support request:

      Caused by: java.sql.BatchUpdateException: Batch entry 0 delete from cru_comment where cru_comment_id=3112 was aborted.  Call getNextException to see the cause.
      	at org.postgresql.jdbc2.AbstractJdbc2Statement$BatchResultHandler.handleError(AbstractJdbc2Statement.java:2537)
      	at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1328)
      	at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:351)
      	at org.postgresql.jdbc2.AbstractJdbc2Statement.executeBatch(AbstractJdbc2Statement.java:2674)
      	at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeBatch(NewProxyPreparedStatement.java:1723)
      	at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:70)
      	at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:268)
      	... 137 more

      Attachments

        Activity

          People

            tom@atlassian.com Tom Davies
            andrew.myers Andrew Myers [Atlassian]
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: