java.io.EOFException

Jenkins JIRA | plouj | 6 years ago
  1. 0

    Executing CLI commands over http in the recent Hudson revisions results in the following errors being printed in the server log: INFO: JNLP slave agent listener started on TCP port 52302 22-Jul-2010 3:54:42 PM hudson.remoting.Channel$ReaderThread run SEVERE: I/O error in channel HTTP full-duplex channel b3cb0c36-1574-4924-946b-0113232c5e7c org.mortbay.jetty.EofException at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:303) at org.mortbay.jetty.HttpParser$Input.blockForContent(HttpParser.java:1050) at org.mortbay.jetty.HttpParser$Input.read(HttpParser.java:987) at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2249) at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2542) at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2552) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1297) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at hudson.remoting.Channel$ReaderThread.run(Channel.java:869) I run Hudson in jetty with: mvn hudson-dev:run and I execute the CLI as follows: java -jar ./war/target/hudson/WEB-INF/hudson-cli.jar -s http://localhost:8080/ help When I run Hudson (1.355) inside Tomcat I get a similar error: INFO: Accepted connection #1 from /127.0.0.1:38064 Jul 22, 2010 11:02:08 AM hudson.TcpSlaveAgentListener$ConnectionHandler run WARNING: Connection #1 failed java.io.EOFException at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:323) at java.io.DataInputStream.readUTF(DataInputStream.java:572) at java.io.DataInputStream.readUTF(DataInputStream.java:547) at hudson.TcpSlaveAgentListener$ConnectionHandler.run(TcpSlaveAgentListener.java:162) Jul 22, 2010 11:02:13 AM hudson.TcpSlaveAgentListener$ConnectionHandler run INFO: Accepted connection #2 from /127.0.0.1:38089 Jul 22, 2010 11:02:13 AM hudson.TcpSlaveAgentListener$ConnectionHandler run WARNING: Connection #2 failed java.io.EOFException at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:323) at java.io.DataInputStream.readUTF(DataInputStream.java:572) at java.io.DataInputStream.readUTF(DataInputStream.java:547) at hudson.TcpSlaveAgentListener$ConnectionHandler.run(TcpSlaveAgentListener.java:162) Jul 22, 2010 11:03:16 AM hudson.remoting.Channel$ReaderThread run SEVERE: I/O error in channel HTTP full-duplex channel f6497f2a-1ca1-4699-b5b4-0a22b39b947e java.net.SocketTimeoutException at org.apache.coyote.http11.InternalAprInputBuffer.fill(InternalAprInputBuffer.java:791) at org.apache.coyote.http11.InternalAprInputBuffer$SocketInputBuffer.doRead(InternalAprInputBuffer.java:822) at org.apache.coyote.http11.filters.ChunkedInputFilter.readBytes(ChunkedInputFilter.java:243) at org.apache.coyote.http11.filters.ChunkedInputFilter.parseChunkHeader(ChunkedInputFilter.java:273) at org.apache.coyote.http11.filters.ChunkedInputFilter.doRead(ChunkedInputFilter.java:132) at org.apache.coyote.http11.InternalAprInputBuffer.doRead(InternalAprInputBuffer.java:733) at org.apache.coyote.Request.doRead(Request.java:428) at org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:304) at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:372) at org.apache.catalina.connector.InputBuffer.readByte(InputBuffer.java:317) at org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:105) at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2249) at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2542) at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2552) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1297) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at hudson.remoting.Channel$ReaderThread.run(Channel.java:856) Other than this server exception, the CLI seems to work fine. It outputs the expected result and java returns a zero error code.

    Jenkins JIRA | 6 years ago | plouj
    java.io.EOFException
  2. 0

    Executing CLI commands over http in the recent Hudson revisions results in the following errors being printed in the server log: INFO: JNLP slave agent listener started on TCP port 52302 22-Jul-2010 3:54:42 PM hudson.remoting.Channel$ReaderThread run SEVERE: I/O error in channel HTTP full-duplex channel b3cb0c36-1574-4924-946b-0113232c5e7c org.mortbay.jetty.EofException at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:303) at org.mortbay.jetty.HttpParser$Input.blockForContent(HttpParser.java:1050) at org.mortbay.jetty.HttpParser$Input.read(HttpParser.java:987) at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2249) at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2542) at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2552) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1297) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at hudson.remoting.Channel$ReaderThread.run(Channel.java:869) I run Hudson in jetty with: mvn hudson-dev:run and I execute the CLI as follows: java -jar ./war/target/hudson/WEB-INF/hudson-cli.jar -s http://localhost:8080/ help When I run Hudson (1.355) inside Tomcat I get a similar error: INFO: Accepted connection #1 from /127.0.0.1:38064 Jul 22, 2010 11:02:08 AM hudson.TcpSlaveAgentListener$ConnectionHandler run WARNING: Connection #1 failed java.io.EOFException at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:323) at java.io.DataInputStream.readUTF(DataInputStream.java:572) at java.io.DataInputStream.readUTF(DataInputStream.java:547) at hudson.TcpSlaveAgentListener$ConnectionHandler.run(TcpSlaveAgentListener.java:162) Jul 22, 2010 11:02:13 AM hudson.TcpSlaveAgentListener$ConnectionHandler run INFO: Accepted connection #2 from /127.0.0.1:38089 Jul 22, 2010 11:02:13 AM hudson.TcpSlaveAgentListener$ConnectionHandler run WARNING: Connection #2 failed java.io.EOFException at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:323) at java.io.DataInputStream.readUTF(DataInputStream.java:572) at java.io.DataInputStream.readUTF(DataInputStream.java:547) at hudson.TcpSlaveAgentListener$ConnectionHandler.run(TcpSlaveAgentListener.java:162) Jul 22, 2010 11:03:16 AM hudson.remoting.Channel$ReaderThread run SEVERE: I/O error in channel HTTP full-duplex channel f6497f2a-1ca1-4699-b5b4-0a22b39b947e java.net.SocketTimeoutException at org.apache.coyote.http11.InternalAprInputBuffer.fill(InternalAprInputBuffer.java:791) at org.apache.coyote.http11.InternalAprInputBuffer$SocketInputBuffer.doRead(InternalAprInputBuffer.java:822) at org.apache.coyote.http11.filters.ChunkedInputFilter.readBytes(ChunkedInputFilter.java:243) at org.apache.coyote.http11.filters.ChunkedInputFilter.parseChunkHeader(ChunkedInputFilter.java:273) at org.apache.coyote.http11.filters.ChunkedInputFilter.doRead(ChunkedInputFilter.java:132) at org.apache.coyote.http11.InternalAprInputBuffer.doRead(InternalAprInputBuffer.java:733) at org.apache.coyote.Request.doRead(Request.java:428) at org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:304) at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:372) at org.apache.catalina.connector.InputBuffer.readByte(InputBuffer.java:317) at org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:105) at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2249) at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2542) at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2552) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1297) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at hudson.remoting.Channel$ReaderThread.run(Channel.java:856) Other than this server exception, the CLI seems to work fine. It outputs the expected result and java returns a zero error code.

    Jenkins JIRA | 6 years ago | plouj
    java.io.EOFException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Jenkins slave with java.io.EOFException

    Google Groups | 3 years ago | Stefan Strobel
    java.io.EOFException

  1. davidvanlaatum 1 times, last 3 months ago
  2. Bardh 4 times, last 6 months ago
4 unregistered visitors
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.io.EOFException

    No message provided

    at java.io.DataInputStream.readUnsignedShort()
  2. Java RT
    DataInputStream.readUTF
    1. java.io.DataInputStream.readUnsignedShort(DataInputStream.java:323)
    2. java.io.DataInputStream.readUTF(DataInputStream.java:572)
    3. java.io.DataInputStream.readUTF(DataInputStream.java:547)
    3 frames
  3. Hudson
    TcpSlaveAgentListener$ConnectionHandler.run
    1. hudson.TcpSlaveAgentListener$ConnectionHandler.run(TcpSlaveAgentListener.java:162)
    1 frame