java.io.IOException: Clear tool did not return the expected exit code. Command line="cleartool setcs ..\configspec35981.txt", actual exit code=1 at hudson.plugins.clearcase.ClearCaseSCM$ClearToolLauncherImpl.run(ClearCaseSCM.java:271)

Jenkins JIRA | redsolo | 9 years ago
  1. 0

    The new feature to update the config spec if it has been changed throws an exception if the new config spec has less files/folders than the previous config spec. Console output: -------------------------------------------------------------------- started Creating a snapshot clear tool [workspace] $ cleartool catcs -tag hudson_cc5_test #Security Systems - Market Documentation element \security_systems\... /main/sec_1/LATEST element \security_systems\... /main/LATEST -mkbranch sec_1 load \aaa_code\CM [hudson_cc5_test] $ cleartool setcs ..\configspec35981.txt cleartool: Warning: 1 objects were eliminated from the new config spec's load rules: "\ccl\3rdParty\AAAA\FAAA.NET2\bin" Continue, and unload these objects? [no] cleartool: Error: Unable to change configuration specification: error detected by ClearCase subsystem. FATAL: Clear Case failed. exit code=1 FATAL: Clear tool did not return the expected exit code. Command line="cleartool setcs ..\configspec35981.txt", actual exit code=1 java.io.IOException: Clear tool did not return the expected exit code. Command line="cleartool setcs ..\configspec35981.txt", actual exit code=1 at hudson.plugins.clearcase.ClearCaseSCM$ClearToolLauncherImpl.run(ClearCaseSCM.java:271) at hudson.plugins.clearcase.ClearToolSnapshot.setcs(ClearToolSnapshot.java:23) at hudson.plugins.clearcase.ClearCaseSCM.checkout(ClearCaseSCM.java:145) at hudson.model.AbstractProject.checkout(AbstractProject.java:541) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:223) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:189) at hudson.model.Run.run(Run.java:649) at hudson.model.Build.run(Build.java:102) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:62)

    Jenkins JIRA | 9 years ago | redsolo
    java.io.IOException: Clear tool did not return the expected exit code. Command line="cleartool setcs ..\configspec35981.txt", actual exit code=1 at hudson.plugins.clearcase.ClearCaseSCM$ClearToolLauncherImpl.run(ClearCaseSCM.java:271)
  2. 0

    The new feature to update the config spec if it has been changed throws an exception if the new config spec has less files/folders than the previous config spec. Console output: -------------------------------------------------------------------- started Creating a snapshot clear tool [workspace] $ cleartool catcs -tag hudson_cc5_test #Security Systems - Market Documentation element \security_systems\... /main/sec_1/LATEST element \security_systems\... /main/LATEST -mkbranch sec_1 load \aaa_code\CM [hudson_cc5_test] $ cleartool setcs ..\configspec35981.txt cleartool: Warning: 1 objects were eliminated from the new config spec's load rules: "\ccl\3rdParty\AAAA\FAAA.NET2\bin" Continue, and unload these objects? [no] cleartool: Error: Unable to change configuration specification: error detected by ClearCase subsystem. FATAL: Clear Case failed. exit code=1 FATAL: Clear tool did not return the expected exit code. Command line="cleartool setcs ..\configspec35981.txt", actual exit code=1 java.io.IOException: Clear tool did not return the expected exit code. Command line="cleartool setcs ..\configspec35981.txt", actual exit code=1 at hudson.plugins.clearcase.ClearCaseSCM$ClearToolLauncherImpl.run(ClearCaseSCM.java:271) at hudson.plugins.clearcase.ClearToolSnapshot.setcs(ClearToolSnapshot.java:23) at hudson.plugins.clearcase.ClearCaseSCM.checkout(ClearCaseSCM.java:145) at hudson.model.AbstractProject.checkout(AbstractProject.java:541) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:223) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:189) at hudson.model.Run.run(Run.java:649) at hudson.model.Build.run(Build.java:102) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:62)

    Jenkins JIRA | 9 years ago | redsolo
    java.io.IOException: Clear tool did not return the expected exit code. Command line="cleartool setcs ..\configspec35981.txt", actual exit code=1 at hudson.plugins.clearcase.ClearCaseSCM$ClearToolLauncherImpl.run(ClearCaseSCM.java:271)
  3. 0

    ClearCase Plugin - hudson - Hudson Wiki

    hudson-ci.org | 7 months ago
    java.io.IOException: Clear tool did not the expected exit code. Command line= , actual exit code=1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ClearCase Plugin - Jenkins - Jenkins Wiki

    jenkins-ci.org | 1 year ago
    java.io.IOException: Clear tool did not the expected exit code. Command line= , actual exit code=1
  6. 0

    1. Configure a CC so it doesnt use "Use update" 2. Build once to get it working 3. Open a command prompt and go into the hudson view folder 4. Build again, which will fail as the folder can not be removed 5. Build again, now the rmview fails del path fails ---------------------------------------------- [workspace] $ cleartool rmview -force HUDSON_SHORT_CS cleartool: Error: C:\hudson\data\jobs\cc3\workspace\HUDSON_SHORT_CS: Permission denied cleartool: Error: Unable to remove the snapshot view directory. Removing view folder as it was not removed when the view was removed. FATAL: Unable to delete C:\hudson\.\data\jobs\cc3\workspace\HUDSON_SHORT_CS java.io.IOException: Unable to delete C:\hudson\.\data\jobs\cc3\workspace\HUDSON_SHORT_CS at hudson.Util.deleteFile(Util.java:148) at hudson.Util.deleteRecursive(Util.java:155) at hudson.FilePath$5.invoke(FilePath.java:342) at hudson.FilePath$5.invoke(FilePath.java:340) at hudson.FilePath.act(FilePath.java:280) at hudson.FilePath.deleteRecursive(FilePath.java:340) at hudson.plugins.clearcase.ClearToolExec.rmview(ClearToolExec.java:68) at hudson.plugins.clearcase.ClearCaseSCM.checkout(ClearCaseSCM.java:106) at hudson.model.AbstractProject.checkout(AbstractProject.java:529) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:213) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:179) at hudson.model.Run.run(Run.java:579) at hudson.model.Build.run(Build.java:103) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:62) rmview fails ------------------------------------------ [workspace] $ cleartool rmview -force HUDSON_SHORT_CS cleartool: Error: Unable to open file "HUDSON_SHORT_CS\.view": No such file or directory. cleartool: Error: HUDSON_SHORT_CS isn't a view: No such file or directory cleartool: Error: Unable to remove view "HUDSON_SHORT_CS". FATAL: Clear Case failed. exit code=1 FATAL: Clear tool did not return the expected exit code. Command line="cleartool rmview -force HUDSON_SHORT_CS", actual exit code=1 java.io.IOException: Clear tool did not return the expected exit code. Command line="cleartool rmview -force HUDSON_SHORT_CS", actual exit code=1 at hudson.plugins.clearcase.ClearCaseSCM$ClearToolLauncherImpl.run(ClearCaseSCM.java:205) at hudson.plugins.clearcase.ClearToolExec.rmview(ClearToolExec.java:64) at hudson.plugins.clearcase.ClearCaseSCM.checkout(ClearCaseSCM.java:106) at hudson.model.AbstractProject.checkout(AbstractProject.java:529) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:213) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:179) at hudson.model.Run.run(Run.java:579) at hudson.model.Build.run(Build.java:103) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:62)

    Jenkins JIRA | 9 years ago | redsolo
    java.io.IOException: Clear tool did not return the expected exit code. Command line="cleartool rmview -force HUDSON_SHORT_CS", actual exit code=1 at hudson.plugins.clearcase.ClearCaseSCM$ClearToolLauncherImpl.run(ClearCaseSCM.java:205)

    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.io.IOException

      Clear tool did not return the expected exit code. Command line="cleartool setcs ..\configspec35981.txt", actual exit code=1 at hudson.plugins.clearcase.ClearCaseSCM$ClearToolLauncherImpl.run(ClearCaseSCM.java:271)

      at hudson.plugins.clearcase.ClearToolSnapshot.setcs()
    2. hudson.plugins.clearcase
      ClearCaseSCM.checkout
      1. hudson.plugins.clearcase.ClearToolSnapshot.setcs(ClearToolSnapshot.java:23)
      2. hudson.plugins.clearcase.ClearCaseSCM.checkout(ClearCaseSCM.java:145)
      2 frames
    3. Hudson
      Executor.run
      1. hudson.model.AbstractProject.checkout(AbstractProject.java:541)
      2. hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:223)
      3. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:189)
      4. hudson.model.Run.run(Run.java:649)
      5. hudson.model.Build.run(Build.java:102)
      6. hudson.model.ResourceController.execute(ResourceController.java:70)
      7. hudson.model.Executor.run(Executor.java:62)
      7 frames