java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near index 31 href=".*scoverage-report\views\html\pages/ ^

Jenkins JIRA | Akhilesh Kumar | 2 years ago
  1. 0

    Hi Team, I am getting error in server while publishing scoverage xml and html report. java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near index 31 href=".*scoverage-report\views\html\pages/ ^ at java.util.regex.Pattern.error(Pattern.java:1924) at java.util.regex.Pattern.escape(Pattern.java:2416) at java.util.regex.Pattern.atom(Pattern.java:2164) at java.util.regex.Pattern.sequence(Pattern.java:2097) at java.util.regex.Pattern.expr(Pattern.java:1964) at java.util.regex.Pattern.compile(Pattern.java:1665) at java.util.regex.Pattern.<init>(Pattern.java:1337) at java.util.regex.Pattern.compile(Pattern.java:1022) at java.lang.String.replaceAll(String.java:2162) at org.jenkinsci.plugins.scoverage.ScoveragePublisher.processReport(Scov eragePublisher.java:93) at org.jenkinsci.plugins.scoverage.ScoveragePublisher.perform(ScoverageP ublisher.java:58) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBui ld.java:770) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildStep s(AbstractBuild.java:734) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild. java:683) at hudson.model.Run.execute(Run.java:1765) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) In Scoverage publisher class at line 93 the code is FileUtils.writeStringToFile(f, content.replaceAll("href=\".*" + pattern + "/", "href=\"")); for some reason, exception is thrown at this point and rest code does not execute therfore in jenkins, right side graph and coverage graph for scoverage not working (I guess). Do you know why am I failing or what the problem is? I have used sbt plugin and to deploy on jenkins, used scoverage plugin. Thanks AK

    Jenkins JIRA | 2 years ago | Akhilesh Kumar
    java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near index 31 href=".*scoverage-report\views\html\pages/ ^
  2. 0

    Hi, I am getting error in server while publishing scoverage xml and html report. java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near index 31 href=".*scoverage-report\views\html\pages/ ^ at java.util.regex.Pattern.error(Pattern.java:1924) at java.util.regex.Pattern.escape(Pattern.java:2416) at java.util.regex.Pattern.atom(Pattern.java:2164) at java.util.regex.Pattern.sequence(Pattern.java:2097) at java.util.regex.Pattern.expr(Pattern.java:1964) at java.util.regex.Pattern.compile(Pattern.java:1665) at java.util.regex.Pattern.<init>(Pattern.java:1337) at java.util.regex.Pattern.compile(Pattern.java:1022) at java.lang.String.replaceAll(String.java:2162) at org.jenkinsci.plugins.scoverage.ScoveragePublisher.processReport(Scov eragePublisher.java:93) at org.jenkinsci.plugins.scoverage.ScoveragePublisher.perform(ScoverageP ublisher.java:58) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBui ld.java:770) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildStep s(AbstractBuild.java:734) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild. java:683) at hudson.model.Run.execute(Run.java:1765) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) In Scoverage publisher class at line 93 the code is FileUtils.writeStringToFile(f, content.replaceAll("href=\".*" + pattern + "/", "href=\"")); for some reason, exception is thrown at this point and rest code does not execute therfore in jenkins, right side graph and coverage graph for scoverage not working (I guess). Do you know why am I failing or what the problem is? I have used sbt plugin and to deploy on jenkins, used scoverage plugin.

    Jenkins JIRA | 2 years ago | Akhilesh Kumar
    java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near index 31 href=".*scoverage-report\views\html\pages/ ^
  3. 0

    Hi Team, I am getting error in server while publishing scoverage xml and html report. java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near index 31 href=".*scoverage-report\views\html\pages/ ^ at java.util.regex.Pattern.error(Pattern.java:1924) at java.util.regex.Pattern.escape(Pattern.java:2416) at java.util.regex.Pattern.atom(Pattern.java:2164) at java.util.regex.Pattern.sequence(Pattern.java:2097) at java.util.regex.Pattern.expr(Pattern.java:1964) at java.util.regex.Pattern.compile(Pattern.java:1665) at java.util.regex.Pattern.<init>(Pattern.java:1337) at java.util.regex.Pattern.compile(Pattern.java:1022) at java.lang.String.replaceAll(String.java:2162) at org.jenkinsci.plugins.scoverage.ScoveragePublisher.processReport(Scov eragePublisher.java:93) at org.jenkinsci.plugins.scoverage.ScoveragePublisher.perform(ScoverageP ublisher.java:58) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBui ld.java:770) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildStep s(AbstractBuild.java:734) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild. java:683) at hudson.model.Run.execute(Run.java:1765) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) In Scoverage publisher class at line 93 the code is FileUtils.writeStringToFile(f, content.replaceAll("href=\".*" + pattern + "/", "href=\"")); for some reason, exception is thrown at this point and rest code does not execute therfore in jenkins, right side graph and coverage graph for scoverage not working (I guess). Do you know why am I failing or what the problem is? I have used sbt plugin and to deploy on jenkins, used scoverage plugin. Thanks AK

    Jenkins JIRA | 2 years ago | Akhilesh Kumar
    java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near index 31 href=".*scoverage-report\views\html\pages/ ^
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hi, I am getting error in server while publishing scoverage xml and html report. java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near index 31 href=".*scoverage-report\views\html\pages/ ^ at java.util.regex.Pattern.error(Pattern.java:1924) at java.util.regex.Pattern.escape(Pattern.java:2416) at java.util.regex.Pattern.atom(Pattern.java:2164) at java.util.regex.Pattern.sequence(Pattern.java:2097) at java.util.regex.Pattern.expr(Pattern.java:1964) at java.util.regex.Pattern.compile(Pattern.java:1665) at java.util.regex.Pattern.<init>(Pattern.java:1337) at java.util.regex.Pattern.compile(Pattern.java:1022) at java.lang.String.replaceAll(String.java:2162) at org.jenkinsci.plugins.scoverage.ScoveragePublisher.processReport(Scov eragePublisher.java:93) at org.jenkinsci.plugins.scoverage.ScoveragePublisher.perform(ScoverageP ublisher.java:58) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBui ld.java:770) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildStep s(AbstractBuild.java:734) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild. java:683) at hudson.model.Run.execute(Run.java:1765) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) In Scoverage publisher class at line 93 the code is FileUtils.writeStringToFile(f, content.replaceAll("href=\".*" + pattern + "/", "href=\"")); for some reason, exception is thrown at this point and rest code does not execute therfore in jenkins, right side graph and coverage graph for scoverage not working (I guess). Do you know why am I failing or what the problem is? I have used sbt plugin and to deploy on jenkins, used scoverage plugin.

    Jenkins JIRA | 2 years ago | Akhilesh Kumar
    java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near index 31 href=".*scoverage-report\views\html\pages/ ^
  6. 0

    error in Publishing Scoverage XML and HTML report...

    Google Groups | 2 years ago | Unknown author
    java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near index 31 href=".*scoverage-report\views\html\pages/ ^

  1. Handemelindo 1 times, last 1 month ago
2 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 31 href=".*scoverage-report\views\html\pages/ ^

    at java.util.regex.Pattern.error()
  2. Java RT
    String.replaceAll
    1. java.util.regex.Pattern.error(Pattern.java:1924)
    2. java.util.regex.Pattern.escape(Pattern.java:2416)
    3. java.util.regex.Pattern.atom(Pattern.java:2164)
    4. java.util.regex.Pattern.sequence(Pattern.java:2097)
    5. java.util.regex.Pattern.expr(Pattern.java:1964)
    6. java.util.regex.Pattern.compile(Pattern.java:1665)
    7. java.util.regex.Pattern.<init>(Pattern.java:1337)
    8. java.util.regex.Pattern.compile(Pattern.java:1022)
    9. java.lang.String.replaceAll(String.java:2162)
    9 frames
  3. org.jenkinsci.plugins
    ScoveragePublisher.perform
    1. org.jenkinsci.plugins.scoverage.ScoveragePublisher.processReport(ScoveragePublisher.java:93)
    2. org.jenkinsci.plugins.scoverage.ScoveragePublisher.perform(ScoveragePublisher.java:58)
    2 frames
  4. Hudson
    Executor.run
    1. hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
    2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
    3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
    4. hudson.model.Build$BuildExecution.post2(Build.java:183)
    5. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683)
    6. hudson.model.Run.execute(Run.java:1765)
    7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    8. hudson.model.ResourceController.execute(ResourceController.java:89)
    9. hudson.model.Executor.run(Executor.java:240)
    9 frames