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)) ^

Atlassian JIRA | David Currie [Atlassian] | 4 years ago
  1. 0

    h3. Symptoms When Log Scanner runs, if it encounters an invalid RegEx it will throw a java.util.regex.PatternSyntaxException. {noformat} 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) {noformat} h3. Workaround Use valid Regular Expressions.

    Atlassian JIRA | 4 years ago | David Currie [Atlassian]
    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)) ^
  2. 0

    h3. Symptoms When Log Scanner runs, if it encounters an invalid RegEx it will throw a java.util.regex.PatternSyntaxException. {noformat} 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) {noformat} h3. Workaround Use valid Regular Expressions.

    Atlassian JIRA | 4 years ago | David Currie [Atlassian]
    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)) ^
  3. 0

    Perforce polling broken. No SCM triggered build are working and CI is effectively down. Below is the perforce polling log which is seemingly puking on the use of overlapping workspace chraracter "+" which has been working for us for months.. I use a workspace similiar to //depot/trunk/accounts-payable/... //jenkins-workspace/... +//depot/sandboxes/smacdonald/m3/accounts-payable/... //jenkins-workspace/... Note the "+" which is a legal character in perforce workspace and has been working fine for months up until recently.. I am unsure exactly when this started occurring, but have backed off my recent upgrade 1.426 back to 1.425 and its is still occurring. All my CI builds are currently broke. Polling Log... Started on Aug 17, 2011 3:27:47 PM Looking for changes... Using node: Jenkins Using master perforce client: jenkins_trunk_accounts-payable [.jenkins] $ /usr/bin/p4 workspace -o jenkins_trunk_accounts-payable [.jenkins] $ /usr/bin/p4 counter change [.jenkins] $ /usr/bin/p4 -s changes //jenkins_trunk_accounts-payable/...@41451,@41507 Latest submitted change selected by workspace is 41506 [.jenkins] $ /usr/bin/p4 describe -s 41506 [.jenkins] $ /usr/bin/p4 -G where //depot/sandboxes/smacdonald/m3/accounts-payable/pom.xml ERROR: Failed to record SCM polling java.util.regex.PatternSyntaxException: Dangling meta character '+' near index 0 +//depot/sandboxes/smacdonald/m3/accounts-payable/accounts-payable-db/.* ^ 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 hudson.plugins.perforce.PerforceSCM.doesFilenameMatchP4Pattern(PerforceSCM.java:1055) at hudson.plugins.perforce.PerforceSCM.doesFilenameMatchAnyP4Pattern(PerforceSCM.java:1043) at hudson.plugins.perforce.PerforceSCM.isChangelistExcluded(PerforceSCM.java:1022) at hudson.plugins.perforce.PerforceSCM.getCurrentDepotRevisionState(PerforceSCM.java:963) at hudson.plugins.perforce.PerforceSCM.compareRemoteRevisionWith(PerforceSCM.java:844) at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:355) at hudson.scm.SCM.poll(SCM.java:372) at hudson.model.AbstractProject.poll(AbstractProject.java:1324) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:420) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:449) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) 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:619)

    Jenkins JIRA | 5 years ago | Scott MacDonald
    java.util.regex.PatternSyntaxException: Dangling meta character '+' near index 0 +//depot/sandboxes/smacdonald/m3/accounts-payable/accounts-payable-db/.* ^
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Invalid checkout Rule +=AAA

    YouTrack | 9 years ago
    java.util.regex.PatternSyntaxException: Dangling meta character '+' near index 0 +=A(\/.*)* ^
  6. 0

    resource filters: Invalid regex pattern causes error dialogs and exceptions

    Eclipse Bugzilla | 7 years ago | daniel_megert
    java.util.regex.PatternSyntaxException: Dangling meta character '*' near index 0 * asd. 213 ^

  1. davidvanlaatum 2 times, last 2 months ago
  2. mortalman7 1 times, last 4 months ago
  3. Christopher 5 times, last 5 months ago
6 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. 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()
  2. Java RT
    Pattern.compile
    1. java.util.regex.Pattern.error(Pattern.java:1713)
    2. java.util.regex.Pattern.sequence(Pattern.java:1878)
    3. java.util.regex.Pattern.expr(Pattern.java:1752)
    4. java.util.regex.Pattern.compile(Pattern.java:1460)
    5. java.util.regex.Pattern.<init>(Pattern.java:1133)
    6. java.util.regex.Pattern.compile(Pattern.java:823)
    6 frames
  3. com.atlassian.sisyphus
    DefaultSisyphusPatternMatcher.match
    1. com.atlassian.sisyphus.SisyphusPattern.compile(SisyphusPattern.java:82)
    2. com.atlassian.sisyphus.SisyphusPattern.getPattern(SisyphusPattern.java:106)
    3. com.atlassian.sisyphus.DefaultSisyphusPatternMatcher.matchAttachmentLine(DefaultSisyphusPatternMatcher.java:50)
    4. com.atlassian.sisyphus.DefaultSisyphusPatternMatcher.match(DefaultSisyphusPatternMatcher.java:85)
    4 frames
  4. com.atlassian.support
    SupportToolsHerculesScanAction$3.run
    1. com.atlassian.support.tools.hercules.SupportToolsHerculesScanAction$3.run(SupportToolsHerculesScanAction.java:210)
    1 frame
  5. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    3. java.lang.Thread.run(Thread.java:680)
    3 frames