java.net.SocketTimeoutException

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.net.SocketTimeoutException
  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.net.SocketTimeoutException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    5 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.net.SocketTimeoutException

      No message provided

      at org.apache.coyote.http11.InternalAprInputBuffer.fill()
    2. Grizzly HTTP
      Request.doRead
      1. org.apache.coyote.http11.InternalAprInputBuffer.fill(InternalAprInputBuffer.java:791)
      2. org.apache.coyote.http11.InternalAprInputBuffer$SocketInputBuffer.doRead(InternalAprInputBuffer.java:822)
      3. org.apache.coyote.http11.filters.ChunkedInputFilter.readBytes(ChunkedInputFilter.java:243)
      4. org.apache.coyote.http11.filters.ChunkedInputFilter.parseChunkHeader(ChunkedInputFilter.java:273)
      5. org.apache.coyote.http11.filters.ChunkedInputFilter.doRead(ChunkedInputFilter.java:132)
      6. org.apache.coyote.http11.InternalAprInputBuffer.doRead(InternalAprInputBuffer.java:733)
      7. org.apache.coyote.Request.doRead(Request.java:428)
      7 frames
    3. Glassfish Core
      InputBuffer.realReadBytes
      1. org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:304)
      1 frame
    4. Tomcat Util
      ByteChunk.substract
      1. org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:372)
      1 frame
    5. Glassfish Core
      CoyoteInputStream.read
      1. org.apache.catalina.connector.InputBuffer.readByte(InputBuffer.java:317)
      2. org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:105)
      2 frames
    6. Java RT
      ObjectInputStream.readObject
      1. java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2249)
      2. java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2542)
      3. java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2552)
      4. java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1297)
      5. java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
      5 frames
    7. Hudson :: Remoting Layer
      Channel$ReaderThread.run
      1. hudson.remoting.Channel$ReaderThread.run(Channel.java:856)
      1 frame