java.nio.channels.ClosedByInterruptException

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.

  • Hudson Unable to Clone from Gerrit
    via by Nicholas Mucci,
  • Reload errors
    via GitHub by SERVERCONSOLE
    ,
  • The build times out due to some software issue which prevents the build to make certain files that should be archived in the end. There are two issues: 1) Even though the build is marked as failed its final status is ABORTED. That means the ball is grey instead of red. This might be caused by the second issue. 2) IOException while archiving files which due to a build error do not exist 00:21:07 Build timed out (after 120 minutes). Marking the build as failed. 00:21:07 Archiving artifacts 00:21:08 ERROR: Failed to archive artifacts: xxx/xxx/xxx/, xxx.exe 00:21:08 hudson.util.IOException2: Failed to copy x:\xxx/xxx/xxx/xxx/, xxx.exe to x:\xxx\jobs\xxx\builds\2011-07-22_22-21-07\archive 00:21:08 at hudson.FilePath$31.invoke(FilePath.java:1526) 00:21:08 at hudson.FilePath$31.invoke(FilePath.java:1493) 00:21:08 at hudson.FilePath.act(FilePath.java:758) 00:21:08 at hudson.FilePath.act(FilePath.java:740) 00:21:08 at hudson.FilePath.copyRecursiveTo(FilePath.java:1493) 00:21:08 at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:117) 00:21:08 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) 00:21:08 at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:663) 00:21:08 at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:638) 00:21:08 at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:616) 00:21:08 at hudson.model.Build$RunnerImpl.post2(Build.java:161) 00:21:08 at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:585) 00:21:08 at hudson.model.Run.run(Run.java:1399) 00:21:08 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 00:21:08 at hudson.model.ResourceController.execute(ResourceController.java:88) 00:21:08 at hudson.model.Executor.run(Executor.java:145) 00:21:08 Caused by: Failed to copy x:\xxx\xxx\xxx\xxx\xxx\xxx\xxx.h to x:\xxx\jobs\xxx\builds\2011-07-22_22-21-07\archive\xxx\xxx\xxx\xxx\xxx\xxx.h due to java.nio.channels.ClosedByInterruptException 00:21:08 at org.apache.tools.ant.taskdefs.Copy.doFileOperations(Copy.java:839) 00:21:08 at hudson.FilePath$31$1CopyImpl.doFileOperations(FilePath.java:1509) 00:21:08 at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:508) 00:21:08 at hudson.FilePath$31.invoke(FilePath.java:1523) 00:21:08 ... 15 more 00:21:08 Caused by: java.nio.channels.ClosedByInterruptException 00:21:08 at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:184) 00:21:08 at sun.nio.ch.FileChannelImpl.size(FileChannelImpl.java:304) 00:21:08 at org.apache.tools.ant.util.ResourceUtils.copyResource(ResourceUtils.java:466) 00:21:08 at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:519) 00:21:08 at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:481) 00:21:08 at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:310) 00:21:08 at org.apache.tools.ant.taskdefs.Copy.doFileOperations(Copy.java:827) 00:21:08 ... 18 more 00:21:08 No emails were triggered. 00:21:08 Notifying upstream build xxx #70 of job completion 00:21:08 Project xxx still waiting for 1 builds to complete 00:21:08 Notifying upstream projects of job completion 00:21:08 Notifying upstream of completion: xxx #70 00:21:08 Finished: ABORTED
    via by robsimon,
    • java.nio.channels.ClosedByInterruptException: null at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:202) at sun.nio.ch.FileChannelImpl.size(FileChannelImpl.java:314) at org.apache.commons.io.FileUtils.doCopyFile(FileUtils.java:1142) at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:1091) at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:1038) at org.jvnet.hudson.test.JenkinsRule$7$Jpl.resolveDependencies(JenkinsRule.java:1671) at org.jvnet.hudson.test.JenkinsRule$7.decorateHome(JenkinsRule.java:1613) at org.jvnet.hudson.test.JenkinsRule.newHudson(JenkinsRule.java:557) at org.jvnet.hudson.test.JenkinsRule.before(JenkinsRule.java:346) at org.jvnet.hudson.test.JenkinsRule$2.evaluate(JenkinsRule.java:504)

    Users with the same issue

    Unknown visitor1 times, last one,
    jstrayer
    24 times, last one,
    nasimk
    2 times, last one,
    davidvanlaatum
    5 times, last one,
    max_samebug
    1 times, last one,
    13 more bugmates