Reviews cannot be created due to ConstraintViolationException

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Problem

When creating a review, the following message is displayed to the user:

1 2 3 4 5 URL: /json/cru/createReviewDialog   An org.hibernate.exception.ConstraintViolationException was encountered could not execute statement ORA-00001: unique constraint (CRUCIBLE.SYS_C0054150) violated

The following appears in the atlassian-fisheye-YYYY-MM-DD.log:

1 2 3 4 5 6 7 WARN [qtp1345923076-254092 ] org.hibernate.engine.jdbc.spi.SqlExceptionHelper SqlExceptionHelper-logExceptions - SQL Error: 1, SQLState: 23000 ERROR [qtp1345923076-254092 ] org.hibernate.engine.jdbc.spi.SqlExceptionHelper SqlExceptionHelper-logExceptions - ORA-00001: unique constraint (CRUCIBLE.SYS_C0054150) violated ERROR [qtp1345923076-254092 ] fisheye SessionState-commitAllTx - Commit failed. Rolling back. org.hibernate.exception.ConstraintViolationException: could not execute statement at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:74) [hibernate-core-4.2.13.Final.jar:4.2.13.Final] ... Caused by: java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique constraint (CRUCIBLE.SYS_C0054150) violated

Cause

Two separate Fisheye/Crucible servers (e.g. a test and a production one) are connecting to the same database.

There is an existing suggestion to prevent this case from happening: FE-6658 - Prevent multiple Crucible instances connecting to a single database

Resolution

Stop the non-production Fisheye/Crucible server.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.