'java.util.regex.PatternSyntaxException Unexpected character' when Creating a Page Due to JDK 1.4

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

Symptoms

A user is unable to create a page. The following appears in the atlassian-confluence.log:

1 2 3 4 Cause: java.util.regex.PatternSyntaxException: Unexpected character '?' near index 74 {((?:??)|(?:*)|(?:^)|(?:~)|(?:_)|(?|(?:+)|(?:)|(?:))}(?![{\p{L}\p{Nd}]) ^ at java.util.regex.Pattern.error(Pattern.java:1472)

Cause

This is a known problem when using older version of 1.4 JDK.

Resolution

Upgrading the JDK to version 1.4.2 or later fixed the problem. Check the system requirements page for further information.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.