'org.springframework.transaction.UnexpectedRollbackException' when Viewing or Creating a Page
Platform Notice: Data Center - This article applies to Atlassian products on the Data Center platform.
Note that this knowledge base article was created for the Data Center version of the product. Data Center knowledge base articles 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
Symptoms
The following appears in the atlassian-confluence.log
:
org.springframework.transaction.UnexpectedRollbackException: Transaction rolled back because it has been marked as rollback-only
at
org.springframework.transaction.support.AbstractPlatformTransactionManager.commit
...
Cause
This error can be a result of a number of causes. It's thrown by the Spring framework, and generally appears as a symptom of another issue.
Diagnosis
To identify the specific root cause of an occurrence of this error, you'll need to consult the atlassian-confluence.log
. The ERROR thrown before 'org.springframework.transaction.UnexpectedRollbackException' and the related stack trace will point to the issue that eventually caused the Spring framework error.
Resolution
- The resolution might be different in each case, and depends on the issue identified in the log analysis.
- If this problem occurs when viewing a page, follow the instructions Cannot edit page: Editing or Deleting a Page That Won't Render.