java.util.regex.PatternSyntaxException: Illegal repetition near index 0 ${TAGNAME}: (([0-9]+\.)+)0\.([0-9]+) ^

Jenkins JIRA | Fred G | 4 years ago
  1. 0

    When a string build parameter (eg. "tagname") is used in the tag name field of the CVS job configuration (eg. "${tagname}") and a build is executed, it fails with the following error: {code} FATAL: Illegal repetition near index 0 ${TAGNAME}: (([0-9]+\.)+)0\.([0-9]+) ^ java.util.regex.PatternSyntaxException: Illegal repetition near index 0 ${TAGNAME}: (([0-9]+\.)+)0\.([0-9]+) ^ at java.util.regex.Pattern.error(Pattern.java:1713) at java.util.regex.Pattern.closure(Pattern.java:2775) at java.util.regex.Pattern.sequence(Pattern.java:1889) 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:847) at hudson.scm.CvsChangeLogHelper.getCurrentFileVersion(CvsChangeLogHelper.java:266) at hudson.scm.CvsChangeLogHelper.mapCvsLog(CvsChangeLogHelper.java:151) at hudson.scm.CVSSCM.calculateChangeLog(CVSSCM.java:419) at hudson.scm.CVSSCM.checkout(CVSSCM.java:831) at hudson.model.AbstractProject.checkout(AbstractProject.java:1248) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:589) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:494) at hudson.model.Run.execute(Run.java:1484) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) {code} When the same job is immediately started again with the same build parameter it succeeds. This happens across several different CVS repositories. This issue was also reported on the mailing list here: https://groups.google.com/forum/?fromgroups=#!topic/jenkinsci-users/LJ1UZqV7JC4

    Jenkins JIRA | 4 years ago | Fred G
    java.util.regex.PatternSyntaxException: Illegal repetition near index 0 ${TAGNAME}: (([0-9]+\.)+)0\.([0-9]+) ^
  2. 0

    When a string build parameter (eg. "tagname") is used in the tag name field of the CVS job configuration (eg. "${tagname}") and a build is executed, it fails with the following error: {code} FATAL: Illegal repetition near index 0 ${TAGNAME}: (([0-9]+\.)+)0\.([0-9]+) ^ java.util.regex.PatternSyntaxException: Illegal repetition near index 0 ${TAGNAME}: (([0-9]+\.)+)0\.([0-9]+) ^ at java.util.regex.Pattern.error(Pattern.java:1713) at java.util.regex.Pattern.closure(Pattern.java:2775) at java.util.regex.Pattern.sequence(Pattern.java:1889) 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:847) at hudson.scm.CvsChangeLogHelper.getCurrentFileVersion(CvsChangeLogHelper.java:266) at hudson.scm.CvsChangeLogHelper.mapCvsLog(CvsChangeLogHelper.java:151) at hudson.scm.CVSSCM.calculateChangeLog(CVSSCM.java:419) at hudson.scm.CVSSCM.checkout(CVSSCM.java:831) at hudson.model.AbstractProject.checkout(AbstractProject.java:1248) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:589) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:494) at hudson.model.Run.execute(Run.java:1484) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) {code} When the same job is immediately started again with the same build parameter it succeeds. This happens across several different CVS repositories. This issue was also reported on the mailing list here: https://groups.google.com/forum/?fromgroups=#!topic/jenkinsci-users/LJ1UZqV7JC4

    Jenkins JIRA | 4 years ago | Fred G
    java.util.regex.PatternSyntaxException: Illegal repetition near index 0 ${TAGNAME}: (([0-9]+\.)+)0\.([0-9]+) ^
  3. 0

    Java PatternSyntaxException: Illegal repetition on string substitution?

    Stack Overflow | 3 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

    Exception when replacing brackets

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

    Android app crashes when any math parser is included

    Stack Overflow | 3 years ago | John Smith
    java.util.regex.PatternSyntaxException: Syntax error in regexp pattern near index 1: } ^

  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

    Illegal repetition near index 0 ${TAGNAME}: (([0-9]+\.)+)0\.([0-9]+) ^

    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.closure(Pattern.java:2775)
    3. java.util.regex.Pattern.sequence(Pattern.java:1889)
    4. java.util.regex.Pattern.expr(Pattern.java:1752)
    5. java.util.regex.Pattern.compile(Pattern.java:1460)
    6. java.util.regex.Pattern.<init>(Pattern.java:1133)
    7. java.util.regex.Pattern.compile(Pattern.java:847)
    7 frames
  3. Hudson
    AbstractBuild$AbstractBuildExecution.defaultCheckout
    1. hudson.scm.CvsChangeLogHelper.getCurrentFileVersion(CvsChangeLogHelper.java:266)
    2. hudson.scm.CvsChangeLogHelper.mapCvsLog(CvsChangeLogHelper.java:151)
    3. hudson.scm.CVSSCM.calculateChangeLog(CVSSCM.java:419)
    4. hudson.scm.CVSSCM.checkout(CVSSCM.java:831)
    5. hudson.model.AbstractProject.checkout(AbstractProject.java:1248)
    6. hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:589)
    6 frames
  4. jenkins.scm
    SCMCheckoutStrategy.checkout
    1. jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
    1 frame
  5. Hudson
    Executor.run
    1. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:494)
    2. hudson.model.Run.execute(Run.java:1484)
    3. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    4. hudson.model.ResourceController.execute(ResourceController.java:88)
    5. hudson.model.Executor.run(Executor.java:236)
    5 frames