Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-60072

Confluence search fails with HTTP 500

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • High
    • None
    • 6.15.10
    • Search - Core
    • None

    Description

      Issue Summary

      Hit the Confluence search box on the top left of the screen there is a spinning wheel and then nothing.

      Checking the browser logs (F12 or Developer Tools -> Network tab), it's possible to see a HTTP 500 Error:

      Steps to Reproduce

      1. Try to search
      2. It fails

      Expected Results

      The search works.

      Actual Results

      The below exception is thrown in the atlassian-confluence.log:

      2020-07-17 16:37:45,210 ERROR [ajp-nio-127.0.0.1-8009-exec-208] [[Standalone].[localhost].[/].[file-server]] log Servlet.service() for servlet [file-server] threw exception
       -- referer: https://XXXXXXXX | url: /s/XXXXXXXX-CDN/XX/XXX/XXXXX/XXXXXXX/_/download/contextbatch/js/confluence-search-ui-plugin-main,-_super/batch.js | traceId: XXXXXX | userName: XXXXX
      
      java.lang.StackOverflowError
      	at java.util.regex.Pattern$Branch.match(Pattern.java:4618)
      	at java.util.regex.Pattern$GroupHead.match(Pattern.java:4672)
      	at java.util.regex.Pattern$Branch.match(Pattern.java:4618)
      	at java.util.regex.Pattern$GroupHead.match(Pattern.java:4672)
      	at java.util.regex.Pattern$Loop.match(Pattern.java:4799)
      	at java.util.regex.Pattern$GroupTail.match(Pattern.java:4731)
      	at java.util.regex.Pattern$BranchConn.match(Pattern.java:4582)
      	at java.util.regex.Pattern$BmpCharProperty.match(Pattern.java:3812)
      	at java.util.regex.Pattern$Branch.match(Pattern.java:4618)
      	at java.util.regex.Pattern$GroupHead.match(Pattern.java:4672)
      	at java.util.regex.Pattern$Loop.match(Pattern.java:4799)
      	........
      

      The lines related to java.util.regex.Pattern go on forever for hundred of pages.

      This is most likely caused by https://ecosystem.atlassian.net/browse/PLUGWEB-422

      Workaround

      Increase the Java parameter -Xss to a higher value.

      This parameter is the responsible to address the recursive calls made on the Java code, exactly what is happening as shown in the Exception above, therefore increase it can solve the issue at some degree.

      More details about this parameter can be found in this discussion:

      JVM option -Xss - What does it do exactly?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              6eec25a24f71 Diego Martins
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: