java.io.EOFException

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.

  • java.io.EOFException GDrive API authorization
    via by Furqan Ahmed via StackOverflow,
  • Stack Size Too Large - Java.lang.verify error
    via by DaveWoodbury,
  • GitHub comment 7#132200344
    via GitHub by ramich
    ,
  • Attempting to use the "archive artifacts" option on a job that is run on a windows slave (and a separate workspace) managed by a solaris hudson master fails during the archive step. It appears that the file path pattern contains mixed unix (/) and windows (\) path separators. A cursory glimpse at the code shows FilePath::readFromTar hard-coding a unix file separator when constructing a path for remote -> local copies rather than the character defined by the property file.separator. But I'm not sure that is the root cause of the problem yet (I have been running the slave as a JNLP applet, not under a debugger). A sample exception in the build log follows. Also notice that the warning parser failed with an NPE, possibly due to java exceptions being present in the log. Time Elapsed 00:01:32.20 [locks-and-latches] Releasing all the locks [locks-and-latches] All the locks released ERROR: Failed to archive artifacts: bin\*.* hudson.util.IOException2: hudson.util.IOException2: Failed to read the remote stream S:\Projects\libPlasma\Plasma/bin\*.* at hudson.FilePath.readFromTar(FilePath.java:1024) at hudson.FilePath.copyRecursiveTo(FilePath.java:936) at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:78) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:323) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:311) at hudson.model.Build$RunnerImpl.post2(Build.java:132) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:296) at hudson.model.Run.run(Run.java:862) at hudson.model.Build.run(Build.java:88) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:90) Caused by: Error while expanding S:\Projects\libPlasma\Plasma/bin\*.* at org.apache.tools.ant.taskdefs.Untar.expandResource(Untar.java:121) at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:119) at hudson.FilePath.readFromTar(FilePath.java:1022) ... 10 more Caused by: java.io.IOException: Write end dead at java.io.PipedInputStream.read(PipedInputStream.java:294) at java.io.PipedInputStream.read(PipedInputStream.java:361) at hudson.util.HeadBufferingStream.read(HeadBufferingStream.java:36) at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:221) at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:141) at java.util.zip.GZIPInputStream.read(GZIPInputStream.java:92) at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at java.io.BufferedInputStream.read1(BufferedInputStream.java:258) at java.io.BufferedInputStream.read(BufferedInputStream.java:317) at java.io.BufferedInputStream.read1(BufferedInputStream.java:256) at java.io.BufferedInputStream.read(BufferedInputStream.java:317) at org.apache.tools.tar.TarBuffer.readBlock(TarBuffer.java:257) at org.apache.tools.tar.TarBuffer.readRecord(TarBuffer.java:223) at org.apache.tools.tar.TarInputStream.read(TarInputStream.java:340) at java.io.FilterInputStream.read(FilterInputStream.java:90) at org.apache.tools.ant.taskdefs.Expand.extractFile(Expand.java:282) at org.apache.tools.ant.taskdefs.Untar.expandStream(Untar.java:142) at org.apache.tools.ant.taskdefs.Untar.expandResource(Untar.java:119) ... 12 more at hudson.FilePath.copyRecursiveTo(FilePath.java:943) at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:78) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:323) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:311) at hudson.model.Build$RunnerImpl.post2(Build.java:132) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:296) at hudson.model.Run.run(Run.java:862) at hudson.model.Build.run(Build.java:88) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:90) Caused by: java.util.concurrent.ExecutionException: hudson.remoting.RequestAbortedException: java.io.EOFException at hudson.remoting.Request$1.get(Request.java:179) at hudson.remoting.Request$1.get(Request.java:134) at hudson.remoting.FutureAdapter.get(FutureAdapter.java:36) at hudson.FilePath.copyRecursiveTo(FilePath.java:939) ... 9 more Caused by: hudson.remoting.RequestAbortedException: java.io.EOFException at hudson.remoting.Request.abort(Request.java:200) at hudson.remoting.Channel.terminate(Channel.java:500) at hudson.remoting.Channel$ReaderThread.run(Channel.java:656) Caused by: java.io.EOFException at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2281) at java.io.ObjectInputStream$BlockDataInputStream.readUnsignedShort(ObjectInputStream.java:2762) at java.io.ObjectInputStream$BlockDataInputStream.readUTF(ObjectInputStream.java:2820) at java.io.ObjectInputStream.readString(ObjectInputStream.java:1599) at java.io.ObjectInputStream.readTypeString(ObjectInputStream.java:1401) at java.io.ObjectStreamClass.readNonProxy(ObjectStreamClass.java:650) at java.io.ObjectInputStream.readClassDescriptor(ObjectInputStream.java:809) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1565) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at hudson.remoting.Channel$ReaderThread.run(Channel.java:637) [WARNINGS] Parsing warnings in log file... FATAL: null java.lang.NullPointerException at hudson.plugins.warnings.WarningsPublisher.perform(WarningsPublisher.java:152) at hudson.plugins.warnings.util.HealthAwarePublisher.perform(HealthAwarePublisher.java:179) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:323) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:311) at hudson.model.Build$RunnerImpl.post2(Build.java:132) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:296) at hudson.model.Run.run(Run.java:862) at hudson.model.Build.run(Build.java:88) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:90)
    via by tallpgr,
    • java.io.EOFException at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    filpgame
    2 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    18 more bugmates