java.nio.channels.ClosedByInterruptException

Jenkins JIRA | robsimon | 5 years ago
  1. 0

    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

    Jenkins JIRA | 5 years ago | robsimon
    java.nio.channels.ClosedByInterruptException
  2. 0

    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

    Jenkins JIRA | 5 years ago | robsimon
    java.nio.channels.ClosedByInterruptException
  3. 0

    Thucydides: User Forum: Browser closed by InterruptException — Project Kenai

    java.net | 3 months ago
    net.thucydides.core.webdriver.UnsupportedDriverException: Could not instantiate class org.openqa.selenium.firefox.FirefoxDriver
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hudson Unable to Clone from Gerrit

    Google Groups | 6 years ago | Nicholas Mucci
    java.nio.channels.ClosedByInterruptException
  6. 0

    GitHub comment 6368#145533195

    GitHub | 1 year ago | ahmetmircik
    java.nio.channels.ClosedByInterruptException

    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.nio.channels.ClosedByInterruptException

      No message provided

      at java.nio.channels.spi.AbstractInterruptibleChannel.end()
    2. Java RT
      FileChannelImpl.size
      1. java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:184)
      2. sun.nio.ch.FileChannelImpl.size(FileChannelImpl.java:304)
      2 frames
    3. Ant
      Copy.doFileOperations
      1. org.apache.tools.ant.util.ResourceUtils.copyResource(ResourceUtils.java:466)
      2. org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:519)
      3. org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:481)
      4. org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:310)
      5. org.apache.tools.ant.taskdefs.Copy.doFileOperations(Copy.java:827)
      6. org.apache.tools.ant.taskdefs.Copy.doFileOperations(Copy.java:839)
      6 frames
    4. Hudson
      FilePath$31$1CopyImpl.doFileOperations
      1. hudson.FilePath$31$1CopyImpl.doFileOperations(FilePath.java:1509)
      1 frame
    5. Ant
      Copy.execute
      1. org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:508)
      1 frame
    6. Hudson
      FilePath$31.invoke
      1. hudson.FilePath$31.invoke(FilePath.java:1523)
      1 frame