java.io.EOFException

Jenkins JIRA | Simon Poirier | 5 years ago
  1. 0

    According to this bug https://issues.apache.org/bugzilla/show_bug.cgi?id=39658 an the mod_jk documentation, ssl_key_size attribute is passed as an integer. Winstone parses it as a string and generates a stack trace. Steps to reproduce: 1. Start jenkins in standalone mode with AJP activated on some port 2. Setup a reverse proxy on apache on a virtualhost which has ssl configured 3. navigate to https://rproxy.address/jenkins Results - Apache returns an "Internal error" - /var/log/jenkins/jenkins.log is filled with EOFException stack such as this one java.io.EOFException at java.io.DataInputStream.readFully(DataInputStream.java:197) at java.io.DataInputStream.readFully(DataInputStream.java:169) at winstone.ajp13.Ajp13IncomingPacket.readString(Ajp13IncomingPacket.java:244) at winstone.ajp13.Ajp13IncomingPacket.readString(Ajp13IncomingPacket.java:231) at winstone.ajp13.Ajp13IncomingPacket.parsePacket(Ajp13IncomingPacket.java:168) at winstone.ajp13.Ajp13Listener.allocateRequestResponse(Ajp13Listener.java:184) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:67) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636) Expected behaviour: A jenkins page, like when using http

    Jenkins JIRA | 5 years ago | Simon Poirier
    java.io.EOFException
  2. 0

    According to this bug https://issues.apache.org/bugzilla/show_bug.cgi?id=39658 an the mod_jk documentation, ssl_key_size attribute is passed as an integer. Winstone parses it as a string and generates a stack trace. Steps to reproduce: 1. Start jenkins in standalone mode with AJP activated on some port 2. Setup a reverse proxy on apache on a virtualhost which has ssl configured 3. navigate to https://rproxy.address/jenkins Results - Apache returns an "Internal error" - /var/log/jenkins/jenkins.log is filled with EOFException stack such as this one java.io.EOFException at java.io.DataInputStream.readFully(DataInputStream.java:197) at java.io.DataInputStream.readFully(DataInputStream.java:169) at winstone.ajp13.Ajp13IncomingPacket.readString(Ajp13IncomingPacket.java:244) at winstone.ajp13.Ajp13IncomingPacket.readString(Ajp13IncomingPacket.java:231) at winstone.ajp13.Ajp13IncomingPacket.parsePacket(Ajp13IncomingPacket.java:168) at winstone.ajp13.Ajp13Listener.allocateRequestResponse(Ajp13Listener.java:184) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:67) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636) Expected behaviour: A jenkins page, like when using http

    Jenkins JIRA | 5 years ago | Simon Poirier
    java.io.EOFException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Some weeks ago, we migrated from Hudson to Jenkins. Since that time (same configuration with Apache httpd & Winstone) the Winestone server crashes sporadicaly. The only abnormal log entry is this [Winstone 2011/11/06 06:25:22] - Error within request handler thread java.io.EOFException at java.io.DataInputStream.readFully(DataInputStream.java:197) at java.io.DataInputStream.readFully(DataInputStream.java:169) at winstone.ajp13.Ajp13IncomingPacket.<init>(Ajp13IncomingPacket.java:60) at winstone.ajp13.Ajp13Listener.allocateRequestResponse(Ajp13Listener.java:173) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:79) at java.lang.Thread.run(Thread.java:636) and this [Winstone 2011/11/07 13:41:07] - Error within request handler thread winstone.ClientSocketException: Failed to write to client at winstone.ClientOutputStream.write(ClientOutputStream.java:33) at winstone.ajp13.Ajp13OutputStream.finishResponse(Ajp13OutputStream.java:160) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:154) at java.lang.Thread.run(Thread.java:636) Caused by: java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109) at java.net.SocketOutputStream.write(SocketOutputStream.java:141) at winstone.ClientOutputStream.write(ClientOutputStream.java:31) ... 3 more The rest of the logfile seems to be ok. I attatched our logfiles and the server config (Apache httpd + Jenkins). I hope you are able to help!

    Jenkins JIRA | 5 years ago | René Charbonneau
    java.io.EOFException

    8 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.readFully()
    2. Java RT
      DataInputStream.readFully
      1. java.io.DataInputStream.readFully(DataInputStream.java:197)
      2. java.io.DataInputStream.readFully(DataInputStream.java:169)
      2 frames
    3. winstone.ajp13
      Ajp13Listener.allocateRequestResponse
      1. winstone.ajp13.Ajp13IncomingPacket.readString(Ajp13IncomingPacket.java:244)
      2. winstone.ajp13.Ajp13IncomingPacket.readString(Ajp13IncomingPacket.java:231)
      3. winstone.ajp13.Ajp13IncomingPacket.parsePacket(Ajp13IncomingPacket.java:168)
      4. winstone.ajp13.Ajp13Listener.allocateRequestResponse(Ajp13Listener.java:184)
      4 frames
    4. winstone
      RequestHandlerThread.run
      1. winstone.RequestHandlerThread.run(RequestHandlerThread.java:67)
      1 frame
    5. Java RT
      FutureTask.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      2. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      3. java.util.concurrent.FutureTask.run(FutureTask.java:166)
      3 frames
    6. winstone
      BoundedExecutorService$1.run
      1. winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
      1 frame
    7. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      3. java.lang.Thread.run(Thread.java:636)
      3 frames