Uploaded image for project: 'JIRA Server (including JIRA Core)'
  1. JIRA Server (including JIRA Core)
  2. JRASERVER-29890

Hercules throws a java.util.regex.PatternSyntaxException when scanning the logs

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Low
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Regular Expression:
      java\.util\.regex\.PatternSyntaxException

      Description

      Symptoms

      When Log Scanner runs, if it encounters an invalid RegEx it will throw a java.util.regex.PatternSyntaxException.

      2012-09-27 10:27:52,030 HerculesWorker_1 ERROR admin 627x88x1 1205bs4 172.20.6.95 /plugins/servlet/stp/view/hercules/execute [com.atlassian.sisyphus.SisyphusPattern] Failed to compile pattern 'After upgrade to JIRA 5, Activity Stream or another gadget/plugin doesn't work' at https://confluence.atlassian.com/pages/viewpage.action?pageId=298977954
      java.util.regex.PatternSyntaxException: Dangling meta character '?' near index 0
      ?.*(Caused\sby\:\sjava\.lang\.NoClassDefFoundError\:\scom\/opensymphony\/user\/User\;)|.*(java\.lang\.NoClassDefFoundError\:\scom\/opensymphony\/user\/User)|.*(Missing\sclass\:\scom\/opensymphony\/user\/User)|.*(java\.lang\.NoSuchMethodError\:.*com\/opensymphony\/user\/User)|.*(Caused\sby\:\sjava\.lang\.ClassNotFoundException\:\scom\.opensymphony\.user\.(User|Group))
      ^
      	at java.util.regex.Pattern.error(Pattern.java:1713)
      	at java.util.regex.Pattern.sequence(Pattern.java:1878)
      	at java.util.regex.Pattern.expr(Pattern.java:1752)
      	at java.util.regex.Pattern.compile(Pattern.java:1460)
      	at java.util.regex.Pattern.<init>(Pattern.java:1133)
      	at java.util.regex.Pattern.compile(Pattern.java:823)
      	at com.atlassian.sisyphus.SisyphusPattern.compile(SisyphusPattern.java:82)
      	at com.atlassian.sisyphus.SisyphusPattern.getPattern(SisyphusPattern.java:106)
      	at com.atlassian.sisyphus.DefaultSisyphusPatternMatcher.matchAttachmentLine(DefaultSisyphusPatternMatcher.java:50)
      	at com.atlassian.sisyphus.DefaultSisyphusPatternMatcher.match(DefaultSisyphusPatternMatcher.java:85)
      	at com.atlassian.support.tools.hercules.SupportToolsHerculesScanAction$3.run(SupportToolsHerculesScanAction.java:210)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      	at java.lang.Thread.run(Thread.java:680)
      2012-09-27 10:27:52,107 HerculesWorker_1 ERROR admin 627x88x1 1205bs4 172.20.6.95 /plugins/servlet/stp/view/hercules/execute [com.atlassian.sisyphus.SisyphusPattern] Failed to compile pattern 'JIRA Keeps Asking for Login' at https://confluence.atlassian.com/display/JIRAKB/JIRA+Keeps+Asking+for+Login
      java.util.regex.PatternSyntaxException: Dangling meta character '?' near index 0
      ?
      ^
      	at java.util.regex.Pattern.error(Pattern.java:1713)
      	at java.util.regex.Pattern.sequence(Pattern.java:1878)
      	at java.util.regex.Pattern.expr(Pattern.java:1752)
      	at java.util.regex.Pattern.compile(Pattern.java:1460)
      	at java.util.regex.Pattern.<init>(Pattern.java:1133)
      	at java.util.regex.Pattern.compile(Pattern.java:823)
      	at com.atlassian.sisyphus.SisyphusPattern.compile(SisyphusPattern.java:82)
      	at com.atlassian.sisyphus.SisyphusPattern.getPattern(SisyphusPattern.java:106)
      	at com.atlassian.sisyphus.DefaultSisyphusPatternMatcher.matchAttachmentLine(DefaultSisyphusPatternMatcher.java:50)
      	at com.atlassian.sisyphus.DefaultSisyphusPatternMatcher.match(DefaultSisyphusPatternMatcher.java:85)
      	at com.atlassian.support.tools.hercules.SupportToolsHerculesScanAction$3.run(SupportToolsHerculesScanAction.java:210)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      	at java.lang.Thread.run(Thread.java:680)
      

      Workaround

      Use valid Regular Expressions.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                dcurrie@atlassian.com David Currie
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: