com.tek42.perforce.PerforceException: No output for: C:\apps\perforce\p4.exe workspace -o -S //test/test_stream testclient-12345678

Jenkins JIRA | Markus Strand | 4 years 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

    When there is an error in the global configuration that injects broken environment variables (blank name for the variable) the Perforce-plugin fails with: Started by user testuser [EnvInject] - Loading node environment variables. Building remotely on testslave in workspace E:\build_e\workspace\Test_Component Using remote perforce client: testclient-12345678 [Test_Component] $ C:\apps\perforce\p4.exe workspace -o -S //test/test_stream testclient-12345678 Caught exception communicating with perforce. No output for: C:\apps\perforce\p4.exe workspace -o -S //test/test_stream testclient-12345678 com.tek42.perforce.PerforceException: No output for: C:\apps\perforce\p4.exe workspace -o -S //test/test_stream testclient-12345678 at com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:384) at com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:292) at com.tek42.perforce.parse.Workspaces.getWorkspace(Workspaces.java:61) at hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:1528) at hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:1489) at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:795) at hudson.model.AbstractProject.checkout(AbstractProject.java:1195) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:579) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:468) at hudson.model.Run.run(Run.java:1408) at hudson.model.Build.run(Build.java:110) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) ERROR: Unable to communicate with perforce. No output for: C:\apps\perforce\p4.exe workspace -o -S //test/test_stream testclient-12345678 Finished: FAILURE The correct error would be something like, can't "run the command". Because the actual error is something like: Caused by: java.io.IOException: Cannot run program "cmd.exe" (in directory "E:\build_e\workspace\Test_Component"): CreateProcess error=87, The parameter is incorrect at java.lang.ProcessBuilder.start(Unknown Source) at hudson.Proc$LocalProc.<init>(Proc.java:244)

    Jenkins JIRA | 4 years ago | Markus Strand
    com.tek42.perforce.PerforceException: No output for: C:\apps\perforce\p4.exe workspace -o -S //test/test_stream testclient-12345678
  2. 0

    When there is an error in the global configuration that injects broken environment variables (blank name for the variable) the Perforce-plugin fails with: Started by user testuser [EnvInject] - Loading node environment variables. Building remotely on testslave in workspace E:\build_e\workspace\Test_Component Using remote perforce client: testclient-12345678 [Test_Component] $ C:\apps\perforce\p4.exe workspace -o -S //test/test_stream testclient-12345678 Caught exception communicating with perforce. No output for: C:\apps\perforce\p4.exe workspace -o -S //test/test_stream testclient-12345678 com.tek42.perforce.PerforceException: No output for: C:\apps\perforce\p4.exe workspace -o -S //test/test_stream testclient-12345678 at com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:384) at com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:292) at com.tek42.perforce.parse.Workspaces.getWorkspace(Workspaces.java:61) at hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:1528) at hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:1489) at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:795) at hudson.model.AbstractProject.checkout(AbstractProject.java:1195) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:579) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:468) at hudson.model.Run.run(Run.java:1408) at hudson.model.Build.run(Build.java:110) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) ERROR: Unable to communicate with perforce. No output for: C:\apps\perforce\p4.exe workspace -o -S //test/test_stream testclient-12345678 Finished: FAILURE The correct error would be something like, can't "run the command". Because the actual error is something like: Caused by: java.io.IOException: Cannot run program "cmd.exe" (in directory "E:\build_e\workspace\Test_Component"): CreateProcess error=87, The parameter is incorrect at java.lang.ProcessBuilder.start(Unknown Source) at hudson.Proc$LocalProc.<init>(Proc.java:244)

    Jenkins JIRA | 4 years ago | Markus Strand
    com.tek42.perforce.PerforceException: No output for: C:\apps\perforce\p4.exe workspace -o -S //test/test_stream testclient-12345678
  3. 0

    Perforce Plugin - Jenkins - Jenkins Wiki

    jenkins-ci.org | 2 months ago
    com.tek42.perforce.PerforceException: No output for: p4 workspace -o HUDSON-BUILD
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Perforce Plugin - hudson - Hudson Wiki

    hudson-ci.org | 7 months ago
    com.tek42.perforce.PerforceException: No output for: C:\Program Files (x86)\Perforce\p4.exe workspace -o YYY
  6. 0

    Perforce Plugin - hudson - Hudson Wiki

    hudson-ci.org | 8 months ago
    com.tek42.perforce.PerforceException: No output for: C:\Program Files (x86)\Perforce\p4.exe workspace -o YYY

    1 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. com.tek42.perforce.PerforceException

      No output for: C:\apps\perforce\p4.exe workspace -o -S //test/test_stream testclient-12345678

      at com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse()
    2. com.tek42.perforce
      Workspaces.getWorkspace
      1. com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:384)
      2. com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:292)
      3. com.tek42.perforce.parse.Workspaces.getWorkspace(Workspaces.java:61)
      3 frames
    3. hudson.plugins.perforce
      PerforceSCM.checkout
      1. hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:1528)
      2. hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:1489)
      3. hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:795)
      3 frames
    4. Hudson
      Executor.run
      1. hudson.model.AbstractProject.checkout(AbstractProject.java:1195)
      2. hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:579)
      3. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:468)
      4. hudson.model.Run.run(Run.java:1408)
      5. hudson.model.Build.run(Build.java:110)
      6. hudson.model.ResourceController.execute(ResourceController.java:88)
      7. hudson.model.Executor.run(Executor.java:238)
      7 frames