java.util.regex.PatternSyntaxException: Dangling meta character '+' near index 0 +//depot/sandboxes/smacdonald/m3/accounts-payable/accounts-payable-db/.* ^

Jenkins JIRA | Scott MacDonald | 5 years ago
  1. 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/.* ^
  2. 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/.* ^
  3. 0

    Hi there, It appears the "Poll Exclude File(s)" section of the Perforce plugin doesn't support build parameters. In my Perforce view configuration I'm quite happily using something like: //mydepot/${branch}/Engine/Include/Macros.h "//workspace/Engine/Include/Macros.h" where "branch" is a string parameter specified under the "This build is parameterized" option. However, if I enter the following in "Poll Exclude File(s)": //mydepot/${branch}/Engine/Tools/Source/StripELF/Readme_e.txt I get: {code} ERROR: Failed to record SCM polling java.util.regex.PatternSyntaxException: Illegal repetition near index 8 //mydepot/${branch}/Engine/Tools/Source/StripELF/Readme_e.txt ^ at java.util.regex.Pattern.error(Unknown Source) at java.util.regex.Pattern.closure(Unknown Source) at java.util.regex.Pattern.sequence(Unknown Source) at java.util.regex.Pattern.expr(Unknown Source) at java.util.regex.Pattern.compile(Unknown Source) at java.util.regex.Pattern.<init>(Unknown Source) at java.util.regex.Pattern.compile(Unknown Source) at hudson.plugins.perforce.PerforceSCM.doesFilenameMatchP4Pattern(PerforceSCM.java:1112) at hudson.plugins.perforce.PerforceSCM.doesFilenameMatchAnyP4Pattern(PerforceSCM.java:1100) at hudson.plugins.perforce.PerforceSCM.isChangelistExcluded(PerforceSCM.java:1079) at hudson.plugins.perforce.PerforceSCM.getCurrentDepotRevisionState(PerforceSCM.java:1020) at hudson.plugins.perforce.PerforceSCM.compareRemoteRevisionWith(PerforceSCM.java:900) at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356) at hudson.scm.SCM.poll(SCM.java:373) at hudson.model.AbstractProject.poll(AbstractProject.java:1326) 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(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) {code} Can this be fixed please? Regards, Tom.

    Jenkins JIRA | 5 years ago | Thomas Fields
    java.util.regex.PatternSyntaxException: Illegal repetition near index 8 //mydepot/${branch}/Engine/Tools/Source/StripELF/Readme_e.txt ^
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hi there, It appears the "Poll Exclude File(s)" section of the Perforce plugin doesn't support build parameters. In my Perforce view configuration I'm quite happily using something like: //mydepot/${branch}/Engine/Include/Macros.h "//workspace/Engine/Include/Macros.h" where "branch" is a string parameter specified under the "This build is parameterized" option. However, if I enter the following in "Poll Exclude File(s)": //mydepot/${branch}/Engine/Tools/Source/StripELF/Readme_e.txt I get: {code} ERROR: Failed to record SCM polling java.util.regex.PatternSyntaxException: Illegal repetition near index 8 //mydepot/${branch}/Engine/Tools/Source/StripELF/Readme_e.txt ^ at java.util.regex.Pattern.error(Unknown Source) at java.util.regex.Pattern.closure(Unknown Source) at java.util.regex.Pattern.sequence(Unknown Source) at java.util.regex.Pattern.expr(Unknown Source) at java.util.regex.Pattern.compile(Unknown Source) at java.util.regex.Pattern.<init>(Unknown Source) at java.util.regex.Pattern.compile(Unknown Source) at hudson.plugins.perforce.PerforceSCM.doesFilenameMatchP4Pattern(PerforceSCM.java:1112) at hudson.plugins.perforce.PerforceSCM.doesFilenameMatchAnyP4Pattern(PerforceSCM.java:1100) at hudson.plugins.perforce.PerforceSCM.isChangelistExcluded(PerforceSCM.java:1079) at hudson.plugins.perforce.PerforceSCM.getCurrentDepotRevisionState(PerforceSCM.java:1020) at hudson.plugins.perforce.PerforceSCM.compareRemoteRevisionWith(PerforceSCM.java:900) at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356) at hudson.scm.SCM.poll(SCM.java:373) at hudson.model.AbstractProject.poll(AbstractProject.java:1326) 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(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) {code} Can this be fixed please? Regards, Tom.

    Jenkins JIRA | 5 years ago | Thomas Fields
    java.util.regex.PatternSyntaxException: Illegal repetition near index 8 //mydepot/${branch}/Engine/Tools/Source/StripELF/Readme_e.txt ^
  6. 0

    Invalid checkout Rule +=AAA

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

  1. davidvanlaatum 2 times, last 3 months ago
  2. mortalman7 1 times, last 4 months ago
  3. Christopher 5 times, last 6 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 +//depot/sandboxes/smacdonald/m3/accounts-payable/accounts-payable-db/.* ^

    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. hudson.plugins.perforce
    PerforceSCM.compareRemoteRevisionWith
    1. hudson.plugins.perforce.PerforceSCM.doesFilenameMatchP4Pattern(PerforceSCM.java:1055)
    2. hudson.plugins.perforce.PerforceSCM.doesFilenameMatchAnyP4Pattern(PerforceSCM.java:1043)
    3. hudson.plugins.perforce.PerforceSCM.isChangelistExcluded(PerforceSCM.java:1022)
    4. hudson.plugins.perforce.PerforceSCM.getCurrentDepotRevisionState(PerforceSCM.java:963)
    5. hudson.plugins.perforce.PerforceSCM.compareRemoteRevisionWith(PerforceSCM.java:844)
    5 frames
  4. Hudson
    SequentialExecutionQueue$QueueEntry.run
    1. hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:355)
    2. hudson.scm.SCM.poll(SCM.java:372)
    3. hudson.model.AbstractProject.poll(AbstractProject.java:1324)
    4. hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:420)
    5. hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:449)
    6. hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
    6 frames
  5. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    2. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    3. java.util.concurrent.FutureTask.run(FutureTask.java:138)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    6. java.lang.Thread.run(Thread.java:619)
    6 frames