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.

  • You guyz consider this api bug??
    via by 807553,
  • JAVA: IO Exception: Reason Stream closed
    via Stack Overflow by Bob
    ,
  • GitHub comment 16#77749820
    via GitHub by garaemon
    ,
  • We have a NFS mountpoint where we store the jenkins jobs directory. When the job is storing the junit test results sometimes we show this Exception and the job fail. Recording test results FATAL: Failed to save the JUnit test result java.io.IOException: Bad file descriptor at java.io.FileOutputStream.close0(Native Method) at java.io.FileOutputStream.close(FileOutputStream.java:279) at sun.nio.cs.StreamEncoder.implClose(StreamEncoder.java:301) at sun.nio.cs.StreamEncoder.close(StreamEncoder.java:130) at java.io.OutputStreamWriter.close(OutputStreamWriter.java:216) at java.io.BufferedWriter.close(BufferedWriter.java:248) at hudson.util.AtomicFileWriter.close(AtomicFileWriter.java:94) at hudson.util.AtomicFileWriter.abort(AtomicFileWriter.java:104) at hudson.XmlFile.write(XmlFile.java:175) at hudson.tasks.junit.TestResultAction.setResult(TestResultAction.java:82) at hudson.tasks.junit.TestResultAction.<init>(TestResultAction.java:67) at hudson.tasks.junit.JUnitResultArchiver.perform(JUnitResultArchiver.java:138) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:682) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:657) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:635) at hudson.model.Build$RunnerImpl.post2(Build.java:161) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:604) at hudson.model.Run.run(Run.java:1400) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:175)
    via by qinqon,
  • We have a NFS mountpoint where we store the jenkins jobs directory. When the job is storing the junit test results sometimes we show this Exception and the job fail. Recording test results FATAL: Failed to save the JUnit test result java.io.IOException: Bad file descriptor at java.io.FileOutputStream.close0(Native Method) at java.io.FileOutputStream.close(FileOutputStream.java:279) at sun.nio.cs.StreamEncoder.implClose(StreamEncoder.java:301) at sun.nio.cs.StreamEncoder.close(StreamEncoder.java:130) at java.io.OutputStreamWriter.close(OutputStreamWriter.java:216) at java.io.BufferedWriter.close(BufferedWriter.java:248) at hudson.util.AtomicFileWriter.close(AtomicFileWriter.java:94) at hudson.util.AtomicFileWriter.abort(AtomicFileWriter.java:104) at hudson.XmlFile.write(XmlFile.java:175) at hudson.tasks.junit.TestResultAction.setResult(TestResultAction.java:82) at hudson.tasks.junit.TestResultAction.<init>(TestResultAction.java:67) at hudson.tasks.junit.JUnitResultArchiver.perform(JUnitResultArchiver.java:138) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:682) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:657) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:635) at hudson.model.Build$RunnerImpl.post2(Build.java:161) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:604) at hudson.model.Run.run(Run.java:1400) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:175)
    via by qinqon,
    • java.io.IOException: There is not enough space on the disk at java.io.FileOutputStream.writeBytes(Native Method) at java.io.FileOutputStream.write(FileOutputStream.java:212) at java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:230) at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:244) at java.io.OutputStreamWriter.close(OutputStreamWriter.java:258) at java.io.BufferedWriter.close(BufferedWriter.java:247) at prog2.writeData(prog2.java:53) at prog2.main(prog2.java:116)

    Users with the same issue

    AlebeyAlebey
    1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Prakash PremkumarPrakash Premkumar
    1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    batwalrus76batwalrus76
    1 times, last one,
    36 more bugmates