map.com.tek42.perforce.PerforceException: Could not parse Where map.

Jenkins JIRA | Ondrej Kunc | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Jenkins Perforce plugin can not parse where map on windows slave. It is not problem to do it on any other slave (running customized ubuntu), so problem is likely not on server. Tried multiple versions of P4 client (currently 2016.1). $ p4 -G where //... Caught exception communicating with perforce. Could not parse Where map.com.tek42.perforce.PerforceException: Could not parse Where map. at hudson.plugins.perforce.PerforceSCMHelper.parseWhereMapping(PerforceSCMHelper.java:174) at com.tek42.perforce.parse.Changes.calculateWorkspacePaths(Changes.java:83) at com.tek42.perforce.parse.Changes.getChangelist(Changes.java:72) at com.tek42.perforce.parse.Changes.getChangelistsFromNumbers(Changes.java:431) at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:1073) at hudson.model.AbstractProject.checkout(AbstractProject.java:1269) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529) at hudson.model.Run.execute(Run.java:1738) at hudson.matrix.MatrixBuild.run(MatrixBuild.java:301) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: java.io.IOException: Expected 's', but got '108'. at hudson.plugins.perforce.PerforceSCMHelper.readPythonDictionary(PerforceSCMHelper.java:113) at hudson.plugins.perforce.PerforceSCMHelper.parseWhereMapping(PerforceSCMHelper.java:149) ... 12 more ERROR: Unable to communicate with perforce. Could not parse Where map.

    Jenkins JIRA | 8 months ago | Ondrej Kunc
    map.com.tek42.perforce.PerforceException: Could not parse Where map.
  2. 0

    As part of the polling process, this happened: {noformat} 00:04:27 [Nightly-Build-yellow-submarine-on-CentOS48-i386] $ /usr/local/bin/p4 -G where "//depot/sdat/SRS/Web/SRS/images/staples/Proc�d� Pour Soumettre Un.pdf" 00:04:28 Caught exception communicating with perforce. Could not parse Where map.com.tek42.perforce.PerforceException: Could not parse Where map. 00:04:28 at hudson.plugins.perforce.PerforceSCMHelper.parseWhereMapping(PerforceSCMHelper.java:144) 00:04:28 at com.tek42.perforce.parse.Changes.getWorkspacePathForFile(Changes.java:91) 00:04:28 at com.tek42.perforce.parse.Changes.calculateWorkspacePaths(Changes.java:83) 00:04:28 at com.tek42.perforce.parse.Changes.getChangelist(Changes.java:68) 00:04:28 at com.tek42.perforce.parse.Changes.getChangelistsFromNumbers(Changes.java:422) 00:04:28 at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:633) 00:04:28 at hudson.model.AbstractProject.checkout(AbstractProject.java:1193) 00:04:28 at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:555) 00:04:28 at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:443) 00:04:28 at hudson.model.Run.run(Run.java:1376) 00:04:28 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 00:04:28 at hudson.model.ResourceController.execute(ResourceController.java:88) 00:04:28 at hudson.model.Executor.run(Executor.java:230) {noformat} I'm not sure what the answer to this is, and I've made it not affect my build (hence the minor), but this is a problem. The output from p4 files //depot/sdat/SRS/Web/SRS/images/staples/* shows the question marks as well on my Linux box, but shows Procúdú on Windows (which is definitely wrong). The data's bad, but the NPE is equally bad.

    Jenkins JIRA | 5 years ago | halostatue
    map.com.tek42.perforce.PerforceException: Could not parse Where map.
  3. 0

    As part of the polling process, this happened: {noformat} 00:04:27 [Nightly-Build-yellow-submarine-on-CentOS48-i386] $ /usr/local/bin/p4 -G where "//depot/sdat/SRS/Web/SRS/images/staples/Proc�d� Pour Soumettre Un.pdf" 00:04:28 Caught exception communicating with perforce. Could not parse Where map.com.tek42.perforce.PerforceException: Could not parse Where map. 00:04:28 at hudson.plugins.perforce.PerforceSCMHelper.parseWhereMapping(PerforceSCMHelper.java:144) 00:04:28 at com.tek42.perforce.parse.Changes.getWorkspacePathForFile(Changes.java:91) 00:04:28 at com.tek42.perforce.parse.Changes.calculateWorkspacePaths(Changes.java:83) 00:04:28 at com.tek42.perforce.parse.Changes.getChangelist(Changes.java:68) 00:04:28 at com.tek42.perforce.parse.Changes.getChangelistsFromNumbers(Changes.java:422) 00:04:28 at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:633) 00:04:28 at hudson.model.AbstractProject.checkout(AbstractProject.java:1193) 00:04:28 at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:555) 00:04:28 at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:443) 00:04:28 at hudson.model.Run.run(Run.java:1376) 00:04:28 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 00:04:28 at hudson.model.ResourceController.execute(ResourceController.java:88) 00:04:28 at hudson.model.Executor.run(Executor.java:230) {noformat} I'm not sure what the answer to this is, and I've made it not affect my build (hence the minor), but this is a problem. The output from p4 files //depot/sdat/SRS/Web/SRS/images/staples/* shows the question marks as well on my Linux box, but shows Procúdú on Windows (which is definitely wrong). The data's bad, but the NPE is equally bad.

    Jenkins JIRA | 5 years ago | halostatue
    map.com.tek42.perforce.PerforceException: Could not parse Where map.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      Expected 's', but got '108'.

      at hudson.plugins.perforce.PerforceSCMHelper.readPythonDictionary()
    2. hudson.plugins.perforce
      PerforceSCMHelper.parseWhereMapping
      1. hudson.plugins.perforce.PerforceSCMHelper.readPythonDictionary(PerforceSCMHelper.java:113)
      2. hudson.plugins.perforce.PerforceSCMHelper.parseWhereMapping(PerforceSCMHelper.java:149)
      2 frames
    3. com.tek42.perforce
      Changes.getChangelistsFromNumbers
      1. com.tek42.perforce.parse.Changes.calculateWorkspacePaths(Changes.java:83)
      2. com.tek42.perforce.parse.Changes.getChangelist(Changes.java:72)
      3. com.tek42.perforce.parse.Changes.getChangelistsFromNumbers(Changes.java:431)
      3 frames
    4. hudson.plugins.perforce
      PerforceSCM.checkout
      1. hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:1073)
      1 frame
    5. Hudson
      AbstractBuild$AbstractBuildExecution.defaultCheckout
      1. hudson.model.AbstractProject.checkout(AbstractProject.java:1269)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607)
      2 frames
    6. jenkins.scm
      SCMCheckoutStrategy.checkout
      1. jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      1 frame
    7. Hudson
      Executor.run
      1. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
      2. hudson.model.Run.execute(Run.java:1738)
      3. hudson.matrix.MatrixBuild.run(MatrixBuild.java:301)
      4. hudson.model.ResourceController.execute(ResourceController.java:98)
      5. hudson.model.Executor.run(Executor.java:410)
      5 frames