java.io.IOException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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.
    via by Hans Baer,
  • 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.
    via by Hans Baer,
  • 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
    via by gabrielbaez,
  • 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
    via by gabrielbaez,
  • ClearCase Plugin - hudson - Hudson Wiki
    via by Unknown author,
  • Re: Base Clearcase issues
    via by BEvans,
    • 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)
    No Bugmate found.