java.io.IOException: cleartool did not return the expected exit code. Command line="desc -fmt %[found_bls]Xp\n stream:CU-HUB_Int@/EPL_Projects", actual exit code=1

Jenkins JIRA | gabrielbaez | 6 years ago
  1. 0

    Going through the Hudson logs I found allot of exception errors that seem to be caused by the ClearCase plug-in. I'm not experiencing any issues at the moment however I waned to point out the errors. The two exceptions below are occurring allot. Jan 20, 2011 6:01:56 AM hudson.plugins.clearcase.ClearCaseUcmSCM createHistoryAction SEVERE: IOException when calculating revisions' java.io.IOException: cleartool did not return the expected exit code. Command line="desc -fmt %[found_bls]Xp\n stream:CU-HUB_Int@/EPL_Projects", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:107) at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:70) at hudson.plugins.clearcase.ClearToolExec.describe(ClearToolExec.java:91) at hudson.plugins.clearcase.ucm.UcmCommon.getBaselinesDesc(UcmCommon.java:179) at hudson.plugins.clearcase.ucm.UcmCommon.getFoundationBaselines(UcmCommon.java:174) at hudson.plugins.clearcase.ClearCaseUcmSCM.createRevisionState(ClearCaseUcmSCM.java:172) at hudson.plugins.clearcase.ClearCaseUcmSCM.calcRevisionsFromBuild(ClearCaseUcmSCM.java:159) at hudson.plugins.clearcase.ClearCaseUcmSCM.createHistoryAction(ClearCaseUcmSCM.java:215) at hudson.plugins.clearcase.AbstractClearCaseScm.compareRemoteRevisionWith(AbstractClearCaseScm.java:540) at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:354) at hudson.scm.SCM.poll(SCM.java:371) at hudson.model.AbstractProject.poll(AbstractProject.java:1289) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:420) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:449) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) Jan 20, 2011 6:01:55 AM hudson.triggers.SCMTrigger$Runner runPolling SEVERE: Failed to record SCM polling java.lang.NullPointerException at hudson.plugins.clearcase.AbstractClearCaseScm.compareRemoteRevisionWith(AbstractClearCaseScm.java:546) at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:354) at hudson.scm.SCM.poll(SCM.java:371) at hudson.model.AbstractProject.poll(AbstractProject.java:1289) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:420) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:449) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) Jan 20, 2011 6:01:55 AM hudson.plugins.clearcase.ClearCaseUcmSCM createHistoryAction

    Jenkins JIRA | 6 years ago | gabrielbaez
    java.io.IOException: cleartool did not return the expected exit code. Command line="desc -fmt %[found_bls]Xp\n stream:CU-HUB_Int@/EPL_Projects", actual exit code=1
  2. 0

    Going through the Hudson logs I found allot of exception errors that seem to be caused by the ClearCase plug-in. I'm not experiencing any issues at the moment however I waned to point out the errors. The two exceptions below are occurring allot. Jan 20, 2011 6:01:56 AM hudson.plugins.clearcase.ClearCaseUcmSCM createHistoryAction SEVERE: IOException when calculating revisions' java.io.IOException: cleartool did not return the expected exit code. Command line="desc -fmt %[found_bls]Xp\n stream:CU-HUB_Int@/EPL_Projects", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:107) at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:70) at hudson.plugins.clearcase.ClearToolExec.describe(ClearToolExec.java:91) at hudson.plugins.clearcase.ucm.UcmCommon.getBaselinesDesc(UcmCommon.java:179) at hudson.plugins.clearcase.ucm.UcmCommon.getFoundationBaselines(UcmCommon.java:174) at hudson.plugins.clearcase.ClearCaseUcmSCM.createRevisionState(ClearCaseUcmSCM.java:172) at hudson.plugins.clearcase.ClearCaseUcmSCM.calcRevisionsFromBuild(ClearCaseUcmSCM.java:159) at hudson.plugins.clearcase.ClearCaseUcmSCM.createHistoryAction(ClearCaseUcmSCM.java:215) at hudson.plugins.clearcase.AbstractClearCaseScm.compareRemoteRevisionWith(AbstractClearCaseScm.java:540) at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:354) at hudson.scm.SCM.poll(SCM.java:371) at hudson.model.AbstractProject.poll(AbstractProject.java:1289) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:420) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:449) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) Jan 20, 2011 6:01:55 AM hudson.triggers.SCMTrigger$Runner runPolling SEVERE: Failed to record SCM polling java.lang.NullPointerException at hudson.plugins.clearcase.AbstractClearCaseScm.compareRemoteRevisionWith(AbstractClearCaseScm.java:546) at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:354) at hudson.scm.SCM.poll(SCM.java:371) at hudson.model.AbstractProject.poll(AbstractProject.java:1289) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:420) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:449) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) Jan 20, 2011 6:01:55 AM hudson.plugins.clearcase.ClearCaseUcmSCM createHistoryAction

    Jenkins JIRA | 6 years ago | gabrielbaez
    java.io.IOException: cleartool did not return the expected exit code. Command line="desc -fmt %[found_bls]Xp\n stream:CU-HUB_Int@/EPL_Projects", actual exit code=1
  3. 0

    In case I configure "Poll SCM" via "Build Triggers" section and the polling is kicked off, cleartool execution will fail. -------------------------------------- FATAL: Base ClearCase failed. exit code=-1073741515 FATAL: cleartool did not return the expected exit code. Command line="catcs -tag XYZ", actual exit code=-1073741515 java.io.IOException: cleartool did not return the expected exit code. Command line="catcs -tag XYZ", actual exit code=-1073741515 at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:121) at hudson.plugins.clearcase.ClearToolExec.runAndProcessOutput(ClearToolExec.java:812) at hudson.plugins.clearcase.ClearToolExec.catcs(ClearToolExec.java:84) at hudson.plugins.clearcase.ClearCaseSCM.hasNewConfigSpec(ClearCaseSCM.java:301) at hudson.plugins.clearcase.AbstractClearCaseScm.compareRemoteRevisionWith(AbstractClearCaseScm.java:726) at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356) at hudson.scm.SCM.poll(SCM.java:373) at hudson.model.AbstractProject.pollWithWorkspace(AbstractProject.java:1585) at hudson.model.AbstractProject._poll(AbstractProject.java:1555) at hudson.model.AbstractProject.poll(AbstractProject.java:1487) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:439) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:468) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Done. Took 1 min 18 sec No changes -------------------------------------- Tried to investigate the issue (checked cleartool execution with process explorer) on my own and figured out that the Cleartool launcher used the environment variables of the Jenkins Master even though the job and polling was executed on the Jenkins slave as intended. Considering Master is 32bit (C:\Program Files\IBM\...) and slave is 64bit environment (C:\Program Files (x86)\IBM\...) all necessary DLLs for cleartool could not be found due to different Path variables necessary between 32 and 64bit OS. I´m using EnvInject plugin as well. Not sure if this issue is caused by either "Jenkins poll SCM" or "Environment Injector" plugin. Please reassign if necessary.

    Jenkins JIRA | 3 years ago | Hans Baer
    java.io.IOException: cleartool did not return the expected exit code. Command line="catcs -tag XYZ", actual exit code=-1073741515
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    In case I configure "Poll SCM" via "Build Triggers" section and the polling is kicked off, cleartool execution will fail. -------------------------------------- FATAL: Base ClearCase failed. exit code=-1073741515 FATAL: cleartool did not return the expected exit code. Command line="catcs -tag XYZ", actual exit code=-1073741515 java.io.IOException: cleartool did not return the expected exit code. Command line="catcs -tag XYZ", actual exit code=-1073741515 at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:121) at hudson.plugins.clearcase.ClearToolExec.runAndProcessOutput(ClearToolExec.java:812) at hudson.plugins.clearcase.ClearToolExec.catcs(ClearToolExec.java:84) at hudson.plugins.clearcase.ClearCaseSCM.hasNewConfigSpec(ClearCaseSCM.java:301) at hudson.plugins.clearcase.AbstractClearCaseScm.compareRemoteRevisionWith(AbstractClearCaseScm.java:726) at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356) at hudson.scm.SCM.poll(SCM.java:373) at hudson.model.AbstractProject.pollWithWorkspace(AbstractProject.java:1585) at hudson.model.AbstractProject._poll(AbstractProject.java:1555) at hudson.model.AbstractProject.poll(AbstractProject.java:1487) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:439) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:468) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Done. Took 1 min 18 sec No changes -------------------------------------- Tried to investigate the issue (checked cleartool execution with process explorer) on my own and figured out that the Cleartool launcher used the environment variables of the Jenkins Master even though the job and polling was executed on the Jenkins slave as intended. Considering Master is 32bit (C:\Program Files\IBM\...) and slave is 64bit environment (C:\Program Files (x86)\IBM\...) all necessary DLLs for cleartool could not be found due to different Path variables necessary between 32 and 64bit OS. I´m using EnvInject plugin as well. Not sure if this issue is caused by either "Jenkins poll SCM" or "Environment Injector" plugin. Please reassign if necessary.

    Jenkins JIRA | 3 years ago | Hans Baer
    java.io.IOException: cleartool did not return the expected exit code. Command line="catcs -tag XYZ", actual exit code=-1073741515
  6. 0

    Clearcase plugin (configure UCM clearcase)

    Google Groups | 5 years ago | francois b.
    java.io.IOException: cleartool did not return the expected exit code. Command line="desc -fmt %[found_bls]Xp\n stream:Test", actual exit code=1

    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

      cleartool did not return the expected exit code. Command line="desc -fmt %[found_bls]Xp\n stream:CU-HUB_Int@/EPL_Projects", actual exit code=1

      at hudson.plugins.clearcase.HudsonClearToolLauncher.run()
    2. hudson.plugins.clearcase
      AbstractClearCaseScm.compareRemoteRevisionWith
      1. hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:107)
      2. hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:70)
      3. hudson.plugins.clearcase.ClearToolExec.describe(ClearToolExec.java:91)
      4. hudson.plugins.clearcase.ucm.UcmCommon.getBaselinesDesc(UcmCommon.java:179)
      5. hudson.plugins.clearcase.ucm.UcmCommon.getFoundationBaselines(UcmCommon.java:174)
      6. hudson.plugins.clearcase.ClearCaseUcmSCM.createRevisionState(ClearCaseUcmSCM.java:172)
      7. hudson.plugins.clearcase.ClearCaseUcmSCM.calcRevisionsFromBuild(ClearCaseUcmSCM.java:159)
      8. hudson.plugins.clearcase.ClearCaseUcmSCM.createHistoryAction(ClearCaseUcmSCM.java:215)
      9. hudson.plugins.clearcase.AbstractClearCaseScm.compareRemoteRevisionWith(AbstractClearCaseScm.java:540)
      9 frames
    3. Hudson
      SequentialExecutionQueue$QueueEntry.run
      1. hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:354)
      2. hudson.scm.SCM.poll(SCM.java:371)
      3. hudson.model.AbstractProject.poll(AbstractProject.java:1289)
      4. hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:420)
      5. hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:449)
      6. hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
      6 frames
    4. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
      2. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
      3. java.util.concurrent.FutureTask.run(FutureTask.java:123)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
      6. java.lang.Thread.run(Thread.java:595)
      6 frames