Unable to save edits on Confluence Cloud pages

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

Summary

Unable to save changes to a Confluence Page after making edits.  The following is generated when trying to save the page:

Oops - an error has occurred: Cause javax.servlet.ServletException: Servlet execution threw an exception at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:313) caused by: java.lang.StackOverflowError at org.owasp.validator.html.scan.AntiSamyDOMScanner.recursiveValidateTag(AntiSamyDOMScanner.java:360) Stack Trace:[hide] javax.servlet.ServletException: Servlet execution threw an exception

Diagnosis

This can occur when data has been copied and pasted from other Confluence pages. Check the Storage Format ( > View Storage Format) of the article and check to see if there are excessive <strong> tags listed; can appear as:

<strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong>

Cause

This can occur when data has been copied and pasted from other Confluence pages. There is currently a bug for this issue, located at CONFCLOUD-54147 - ServletException while saving pages with corrupt formatting

Solution

Workaround 1

  1. Select all of the text on the page

  2. Remove all bold text from the page and save

  3. Once saved, make the necessary text bold again - save the page

Workaround 2

  1. Copy the page from ... > Copy

  2. While in edit mode, Select All content, and Cut to clipboard

  3. Save page

  4. Edit copy of page, and paste all content back in

  5. Save page

  6. Use this copy now as the original page

Updated on June 13, 2025

Still need help?

The Atlassian Community is here for you.