java.lang.IllegalArgumentException: Illegal group reference

Jenkins JIRA | Richard Taylor | 5 years ago
  1. 0

    The following exception is generated if the change list contains filenames which include the $ character. I would appear as if the filename is being passed through a regex without being correctly escaped first. ---------------------------------------------------------------------------------------------------------------------------- Started by an SCM change Building remotely on build6pcw7 Using remote perforce client: ms_build6pcw7_Games_EVO11-Tools__Edit [EVO11-Tools] $ "C:\\Program Files\\Perforce\\p4.exe" workspace -o ms_build6pcw7_Games_EVO11-Tools__Edit 'Don't update client' is set. Not saving the client changes. Last build changeset: 463401 [EVO11-Tools] $ "C:\\Program Files\\Perforce\\p4.exe" counter change [EVO11-Tools] $ "C:\\Program Files\\Perforce\\p4.exe" -s changes //ms_build6pcw7_Games_EVO11-Tools__Edit/...@463402,@463436 [EVO11-Tools] $ "C:\\Program Files\\Perforce\\p4.exe" describe -s 463436 [EVO11-Tools] $ "C:\\Program Files\\Perforce\\p4.exe" -G where //... [EVO11-Tools] $ "C:\\Program Files\\Perforce\\p4.exe" describe -s 463404 FATAL: Illegal group reference java.lang.IllegalArgumentException: Illegal group reference at java.util.regex.Matcher.appendReplacement(Unknown Source) at java.util.regex.Matcher.replaceFirst(Unknown Source) at hudson.plugins.perforce.PerforceSCMHelper.doMapping(PerforceSCMHelper.java:255) at hudson.plugins.perforce.PerforceSCMHelper.mapToWorkspace(PerforceSCMHelper.java:189) at com.tek42.perforce.parse.Changes.getWorkspacePathForFile(Changes.java:95) at com.tek42.perforce.parse.Changes.calculateWorkspacePaths(Changes.java:89) at com.tek42.perforce.parse.Changes.getChangelist(Changes.java:71) at com.tek42.perforce.parse.Changes.getChangelistsFromNumbers(Changes.java:425) at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:634) at hudson.model.AbstractProject.checkout(AbstractProject.java:1193) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:566) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:454) at hudson.model.Run.run(Run.java:1376) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230)

    Jenkins JIRA | 5 years ago | Richard Taylor
    java.lang.IllegalArgumentException: Illegal group reference
  2. 0

    The following exception is generated if the change list contains filenames which include the $ character. I would appear as if the filename is being passed through a regex without being correctly escaped first. ---------------------------------------------------------------------------------------------------------------------------- Started by an SCM change Building remotely on build6pcw7 Using remote perforce client: ms_build6pcw7_Games_EVO11-Tools__Edit [EVO11-Tools] $ "C:\\Program Files\\Perforce\\p4.exe" workspace -o ms_build6pcw7_Games_EVO11-Tools__Edit 'Don't update client' is set. Not saving the client changes. Last build changeset: 463401 [EVO11-Tools] $ "C:\\Program Files\\Perforce\\p4.exe" counter change [EVO11-Tools] $ "C:\\Program Files\\Perforce\\p4.exe" -s changes //ms_build6pcw7_Games_EVO11-Tools__Edit/...@463402,@463436 [EVO11-Tools] $ "C:\\Program Files\\Perforce\\p4.exe" describe -s 463436 [EVO11-Tools] $ "C:\\Program Files\\Perforce\\p4.exe" -G where //... [EVO11-Tools] $ "C:\\Program Files\\Perforce\\p4.exe" describe -s 463404 FATAL: Illegal group reference java.lang.IllegalArgumentException: Illegal group reference at java.util.regex.Matcher.appendReplacement(Unknown Source) at java.util.regex.Matcher.replaceFirst(Unknown Source) at hudson.plugins.perforce.PerforceSCMHelper.doMapping(PerforceSCMHelper.java:255) at hudson.plugins.perforce.PerforceSCMHelper.mapToWorkspace(PerforceSCMHelper.java:189) at com.tek42.perforce.parse.Changes.getWorkspacePathForFile(Changes.java:95) at com.tek42.perforce.parse.Changes.calculateWorkspacePaths(Changes.java:89) at com.tek42.perforce.parse.Changes.getChangelist(Changes.java:71) at com.tek42.perforce.parse.Changes.getChangelistsFromNumbers(Changes.java:425) at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:634) at hudson.model.AbstractProject.checkout(AbstractProject.java:1193) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:566) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:454) at hudson.model.Run.run(Run.java:1376) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230)

    Jenkins JIRA | 5 years ago | Richard Taylor
    java.lang.IllegalArgumentException: Illegal group reference
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Frontend pushed too hard

    GitHub | 2 years ago | smokingwheels
    java.lang.IllegalArgumentException: Illegal group reference
  5. 0

    Various Errors under constant load

    GitHub | 2 years ago | smokingwheels
    java.lang.IllegalArgumentException: Illegal group reference

    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.lang.IllegalArgumentException

      Illegal group reference

      at java.util.regex.Matcher.appendReplacement()
    2. Java RT
      Matcher.replaceFirst
      1. java.util.regex.Matcher.appendReplacement(Unknown Source)
      2. java.util.regex.Matcher.replaceFirst(Unknown Source)
      2 frames
    3. hudson.plugins.perforce
      PerforceSCMHelper.mapToWorkspace
      1. hudson.plugins.perforce.PerforceSCMHelper.doMapping(PerforceSCMHelper.java:255)
      2. hudson.plugins.perforce.PerforceSCMHelper.mapToWorkspace(PerforceSCMHelper.java:189)
      2 frames
    4. com.tek42.perforce
      Changes.getChangelistsFromNumbers
      1. com.tek42.perforce.parse.Changes.getWorkspacePathForFile(Changes.java:95)
      2. com.tek42.perforce.parse.Changes.calculateWorkspacePaths(Changes.java:89)
      3. com.tek42.perforce.parse.Changes.getChangelist(Changes.java:71)
      4. com.tek42.perforce.parse.Changes.getChangelistsFromNumbers(Changes.java:425)
      4 frames
    5. hudson.plugins.perforce
      PerforceSCM.checkout
      1. hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:634)
      1 frame
    6. Hudson
      Executor.run
      1. hudson.model.AbstractProject.checkout(AbstractProject.java:1193)
      2. hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:566)
      3. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:454)
      4. hudson.model.Run.run(Run.java:1376)
      5. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      6. hudson.model.ResourceController.execute(ResourceController.java:88)
      7. hudson.model.Executor.run(Executor.java:230)
      7 frames