java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near index 3 .*\CVS ^

Jenkins JIRA | Sagar Khushalani | 5 years ago
  1. 0

    If a particular line in the "Excluded Regions" of is a bad regex, polling fails with the following. However, it does not send an email, or notify the admin in any way. Would it be possible to either send an email (or otherwise notify), or cause the build to fail so the admin can check on it? Thanks! {noformat} ERROR: Failed to record SCM polling java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near index 3 .*\CVS ^ at java.util.regex.Pattern.error(Pattern.java:1730) at java.util.regex.Pattern.escape(Pattern.java:2194) at java.util.regex.Pattern.atom(Pattern.java:1969) at java.util.regex.Pattern.sequence(Pattern.java:1851) at java.util.regex.Pattern.expr(Pattern.java:1769) at java.util.regex.Pattern.compile(Pattern.java:1477) at java.util.regex.Pattern.<init>(Pattern.java:1150) at java.util.regex.Pattern.compile(Pattern.java:840) at hudson.scm.CVSSCM.getExcludedRegionsPatterns(CVSSCM.java:316) at hudson.scm.CVSSCM.compareRemoteRevisionWith(CVSSCM.java:205) at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356) at hudson.scm.SCM.poll(SCM.java:373) at hudson.model.AbstractProject.poll(AbstractProject.java:1313) 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:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636) {noformat}

    Jenkins JIRA | 5 years ago | Sagar Khushalani
    java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near index 3 .*\CVS ^
  2. 0

    If a particular line in the "Excluded Regions" of is a bad regex, polling fails with the following. However, it does not send an email, or notify the admin in any way. Would it be possible to either send an email (or otherwise notify), or cause the build to fail so the admin can check on it? Thanks! {noformat} ERROR: Failed to record SCM polling java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near index 3 .*\CVS ^ at java.util.regex.Pattern.error(Pattern.java:1730) at java.util.regex.Pattern.escape(Pattern.java:2194) at java.util.regex.Pattern.atom(Pattern.java:1969) at java.util.regex.Pattern.sequence(Pattern.java:1851) at java.util.regex.Pattern.expr(Pattern.java:1769) at java.util.regex.Pattern.compile(Pattern.java:1477) at java.util.regex.Pattern.<init>(Pattern.java:1150) at java.util.regex.Pattern.compile(Pattern.java:840) at hudson.scm.CVSSCM.getExcludedRegionsPatterns(CVSSCM.java:316) at hudson.scm.CVSSCM.compareRemoteRevisionWith(CVSSCM.java:205) at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356) at hudson.scm.SCM.poll(SCM.java:373) at hudson.model.AbstractProject.poll(AbstractProject.java:1313) 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:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636) {noformat}

    Jenkins JIRA | 5 years ago | Sagar Khushalani
    java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near index 3 .*\CVS ^
  3. 0

    Java PatternSyntaxException: Illegal repetition on string substitution?

    Stack Overflow | 4 years ago
    java.util.regex.PatternSyntaxException: Illegal repetition near index 0 ${fizz} ^
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    PatternSyntaxException when trying to access Website with HtmlUnit

    Stack Overflow | 2 years ago
    java.util.regex.PatternSyntaxException: Illegal octal escape sequence near index 2 \0+$ ^
  6. 0

    Exception when replacing brackets

    Stack Overflow | 3 years ago | Kewitschka
    java.util.regex.PatternSyntaxException: Incorrectly nested parentheses in regexp pattern near index 1: ) ^

  1. Handemelindo 1 times, last 3 weeks ago
  2. raytest 1 times, last 4 weeks ago
  3. rlovtangen 1 times, last 1 month ago
  4. davidvanlaatum 2 times, last 4 months ago
  5. mortalman7 1 times, last 6 months ago
1 more registered users
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

    Illegal/unsupported escape sequence near index 3 .*\CVS ^

    at java.util.regex.Pattern.error()
  2. Java RT
    Pattern.compile
    1. java.util.regex.Pattern.error(Pattern.java:1730)
    2. java.util.regex.Pattern.escape(Pattern.java:2194)
    3. java.util.regex.Pattern.atom(Pattern.java:1969)
    4. java.util.regex.Pattern.sequence(Pattern.java:1851)
    5. java.util.regex.Pattern.expr(Pattern.java:1769)
    6. java.util.regex.Pattern.compile(Pattern.java:1477)
    7. java.util.regex.Pattern.<init>(Pattern.java:1150)
    8. java.util.regex.Pattern.compile(Pattern.java:840)
    8 frames
  3. Hudson
    SequentialExecutionQueue$QueueEntry.run
    1. hudson.scm.CVSSCM.getExcludedRegionsPatterns(CVSSCM.java:316)
    2. hudson.scm.CVSSCM.compareRemoteRevisionWith(CVSSCM.java:205)
    3. hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356)
    4. hudson.scm.SCM.poll(SCM.java:373)
    5. hudson.model.AbstractProject.poll(AbstractProject.java:1313)
    6. hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:420)
    7. hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:449)
    8. hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
    8 frames
  4. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    2. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    3. java.util.concurrent.FutureTask.run(FutureTask.java:166)
    4. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    6. java.lang.Thread.run(Thread.java:636)
    6 frames