java.net.SocketException: Broken pipe

Atlassian JIRA | Roberto Dominguez | 9 years ago
  1. 0

    Looks like the hack in menu.css could have side efects... Using a plain page, got this one when rendering in IE6: {noformat} Apr 19, 2008 9:14:41 AM org.apache.catalina.core.StandardHostValve status WARNING: Exception Processing ErrorPage[errorCode=404, location=/fourohfour.action] ClientAbortException: java.net.SocketException: Broken pipe at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:327) at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:293) at org.apache.catalina.connector.Response.flushBuffer(Response.java:539) at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:287) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) at java.lang.Thread.run(Thread.java:613) Caused by: java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:747) at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:432) at org.apache.coyote.http11.InternalOutputBuffer.flush(InternalOutputBuffer.java:305) at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:992) at org.apache.coyote.Response.action(Response.java:183) at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:322) ... 13 more {noformat} Sometimes there are more. Thing is that IE6 make several requests: {noformat} 192.168.0.150 - - [19/Apr/2008:09:14:41 -0700] "GET /display/EMPTY/Home HTTP/1.1" 200 21643 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 192.168.0.150 - - [19/Apr/2008:09:14:41 -0700] "GET /s/1318/1/3/_/styles/combined.css?spaceKey=EMPTY HTTP/1.1" 200 314 "http://tepoztlan:20280/display/EMPTY/Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 192.168.0.150 - - [19/Apr/2008:09:14:41 -0700] "GET /s/1318/1/3/_/styles/colors.css?spaceKey=EMPTY HTTP/1.1" 200 5849 "http://tepoztlan:20280/display/EMPTY/Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 192.168.0.150 - - [19/Apr/2008:09:14:41 -0700] "GET /s/1318/1/1.0/_/images/icons/fake.gif HTTP/1.1" 404 - "http://tepoztlan:20280/display/EMPTY/Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 192.168.0.150 - - [19/Apr/2008:09:14:41 -0700] "GET /s/1318/1/1.0/_/images/icons/fake.gif HTTP/1.1" 404 - "http://tepoztlan:20280/display/EMPTY/Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 192.168.0.150 - - [19/Apr/2008:09:14:41 -0700] "GET /s/1318/1/1.0/_/images/icons/fake.gif HTTP/1.1" 404 - "http://tepoztlan:20280/display/EMPTY/Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 192.168.0.150 - - [19/Apr/2008:09:14:41 -0700] "GET /s/1318/1/1.0/_/images/icons/fake.gif HTTP/1.1" 404 - "http://tepoztlan:20280/display/EMPTY/Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 192.168.0.150 - - [19/Apr/2008:09:14:41 -0700] "GET /s/1318/1/1.0/_/images/icons/fake.gif HTTP/1.1" 404 - "http://tepoztlan:20280/display/EMPTY/Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 192.168.0.150 - - [19/Apr/2008:09:14:41 -0700] "GET /s/1318/1/1.0/_/images/icons/fake.gif HTTP/1.1" 404 - "http://tepoztlan:20280/display/EMPTY/Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 192.168.0.150 - - [19/Apr/2008:09:14:41 -0700] "GET /s/1318/1/1.0/_/images/icons/fake.gif HTTP/1.1" 404 - "http://tepoztlan:20280/display/EMPTY/Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 192.168.0.150 - - [19/Apr/2008:09:14:41 -0700] "GET /s/1318/1/1.0/_/images/icons/fake.gif HTTP/1.1" 404 - "http://tepoztlan:20280/display/EMPTY/Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 192.168.0.150 - - [19/Apr/2008:09:14:41 -0700] "GET /s/1318/1/1.0/_/images/icons/fake.gif HTTP/1.1" 404 - "http://tepoztlan:20280/display/EMPTY/Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 192.168.0.150 - - [19/Apr/2008:09:14:41 -0700] "GET /s/1318/1/1.0/_/images/icons/fake.gif HTTP/1.1" 404 - "http://tepoztlan:20280/display/EMPTY/Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 192.168.0.150 - - [19/Apr/2008:09:14:41 -0700] "GET /s/1318/1/1.0/_/images/icons/fake.gif HTTP/1.1" 404 - "http://tepoztlan:20280/display/EMPTY/Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 192.168.0.150 - - [19/Apr/2008:09:14:41 -0700] "GET /s/1318/1/1.0/_/images/icons/fake.gif HTTP/1.1" 404 - "http://tepoztlan:20280/display/EMPTY/Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 192.168.0.150 - - [19/Apr/2008:09:14:41 -0700] "GET /s/1318/1/1.0/_/images/icons/fake.gif HTTP/1.1" 404 - "http://tepoztlan:20280/display/EMPTY/Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 192.168.0.150 - - [19/Apr/2008:09:14:41 -0700] "GET /s/1318/1/1.0/_/images/icons/fake.gif HTTP/1.1" 404 - "http://tepoztlan:20280/display/EMPTY/Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 192.168.0.150 - - [19/Apr/2008:09:14:41 -0700] "GET /s/1318/1/1.0/_/images/icons/fake.gif HTTP/1.1" 404 - "http://tepoztlan:20280/display/EMPTY/Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 192.168.0.150 - - [19/Apr/2008:09:14:41 -0700] "GET /s/1318/1/1.0/_/images/icons/fake.gif HTTP/1.1" 404 - "http://tepoztlan:20280/display/EMPTY/Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 192.168.0.150 - - [19/Apr/2008:09:14:41 -0700] "GET /s/1318/1/1.0/_/images/icons/fake.gif HTTP/1.1" 404 - "http://tepoztlan:20280/display/EMPTY/Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 192.168.0.150 - - [19/Apr/2008:09:14:41 -0700] "GET /s/1318/1/1.0/_/images/icons/fake.gif HTTP/1.1" 404 - "http://tepoztlan:20280/display/EMPTY/Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" {noformat} Many requests to a non existing image is going to invoke the {{fourofour.action}} just for free. Now, imagine the multiple requests made by IE6...

    Atlassian JIRA | 9 years ago | Roberto Dominguez
    java.net.SocketException: Broken pipe
  2. 0

    Looks like the hack in menu.css could have side efects... Using a plain page, got this one when rendering in IE6: {noformat} Apr 19, 2008 9:14:41 AM org.apache.catalina.core.StandardHostValve status WARNING: Exception Processing ErrorPage[errorCode=404, location=/fourohfour.action] ClientAbortException: java.net.SocketException: Broken pipe at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:327) at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:293) at org.apache.catalina.connector.Response.flushBuffer(Response.java:539) at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:287) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) at java.lang.Thread.run(Thread.java:613) Caused by: java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:747) at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:432) at org.apache.coyote.http11.InternalOutputBuffer.flush(InternalOutputBuffer.java:305) at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:992) at org.apache.coyote.Response.action(Response.java:183) at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:322) ... 13 more {noformat} Sometimes there are more. Thing is that IE6 make several requests: {noformat} 192.168.0.150 - - [19/Apr/2008:09:14:41 -0700] "GET /display/EMPTY/Home HTTP/1.1" 200 21643 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 192.168.0.150 - - [19/Apr/2008:09:14:41 -0700] "GET /s/1318/1/3/_/styles/combined.css?spaceKey=EMPTY HTTP/1.1" 200 314 "http://tepoztlan:20280/display/EMPTY/Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 192.168.0.150 - - [19/Apr/2008:09:14:41 -0700] "GET /s/1318/1/3/_/styles/colors.css?spaceKey=EMPTY HTTP/1.1" 200 5849 "http://tepoztlan:20280/display/EMPTY/Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 192.168.0.150 - - [19/Apr/2008:09:14:41 -0700] "GET /s/1318/1/1.0/_/images/icons/fake.gif HTTP/1.1" 404 - "http://tepoztlan:20280/display/EMPTY/Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 192.168.0.150 - - [19/Apr/2008:09:14:41 -0700] "GET /s/1318/1/1.0/_/images/icons/fake.gif HTTP/1.1" 404 - "http://tepoztlan:20280/display/EMPTY/Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 192.168.0.150 - - [19/Apr/2008:09:14:41 -0700] "GET /s/1318/1/1.0/_/images/icons/fake.gif HTTP/1.1" 404 - "http://tepoztlan:20280/display/EMPTY/Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 192.168.0.150 - - [19/Apr/2008:09:14:41 -0700] "GET /s/1318/1/1.0/_/images/icons/fake.gif HTTP/1.1" 404 - "http://tepoztlan:20280/display/EMPTY/Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 192.168.0.150 - - [19/Apr/2008:09:14:41 -0700] "GET /s/1318/1/1.0/_/images/icons/fake.gif HTTP/1.1" 404 - "http://tepoztlan:20280/display/EMPTY/Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 192.168.0.150 - - [19/Apr/2008:09:14:41 -0700] "GET /s/1318/1/1.0/_/images/icons/fake.gif HTTP/1.1" 404 - "http://tepoztlan:20280/display/EMPTY/Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 192.168.0.150 - - [19/Apr/2008:09:14:41 -0700] "GET /s/1318/1/1.0/_/images/icons/fake.gif HTTP/1.1" 404 - "http://tepoztlan:20280/display/EMPTY/Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 192.168.0.150 - - [19/Apr/2008:09:14:41 -0700] "GET /s/1318/1/1.0/_/images/icons/fake.gif HTTP/1.1" 404 - "http://tepoztlan:20280/display/EMPTY/Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 192.168.0.150 - - [19/Apr/2008:09:14:41 -0700] "GET /s/1318/1/1.0/_/images/icons/fake.gif HTTP/1.1" 404 - "http://tepoztlan:20280/display/EMPTY/Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 192.168.0.150 - - [19/Apr/2008:09:14:41 -0700] "GET /s/1318/1/1.0/_/images/icons/fake.gif HTTP/1.1" 404 - "http://tepoztlan:20280/display/EMPTY/Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 192.168.0.150 - - [19/Apr/2008:09:14:41 -0700] "GET /s/1318/1/1.0/_/images/icons/fake.gif HTTP/1.1" 404 - "http://tepoztlan:20280/display/EMPTY/Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 192.168.0.150 - - [19/Apr/2008:09:14:41 -0700] "GET /s/1318/1/1.0/_/images/icons/fake.gif HTTP/1.1" 404 - "http://tepoztlan:20280/display/EMPTY/Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 192.168.0.150 - - [19/Apr/2008:09:14:41 -0700] "GET /s/1318/1/1.0/_/images/icons/fake.gif HTTP/1.1" 404 - "http://tepoztlan:20280/display/EMPTY/Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 192.168.0.150 - - [19/Apr/2008:09:14:41 -0700] "GET /s/1318/1/1.0/_/images/icons/fake.gif HTTP/1.1" 404 - "http://tepoztlan:20280/display/EMPTY/Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 192.168.0.150 - - [19/Apr/2008:09:14:41 -0700] "GET /s/1318/1/1.0/_/images/icons/fake.gif HTTP/1.1" 404 - "http://tepoztlan:20280/display/EMPTY/Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 192.168.0.150 - - [19/Apr/2008:09:14:41 -0700] "GET /s/1318/1/1.0/_/images/icons/fake.gif HTTP/1.1" 404 - "http://tepoztlan:20280/display/EMPTY/Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 192.168.0.150 - - [19/Apr/2008:09:14:41 -0700] "GET /s/1318/1/1.0/_/images/icons/fake.gif HTTP/1.1" 404 - "http://tepoztlan:20280/display/EMPTY/Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 192.168.0.150 - - [19/Apr/2008:09:14:41 -0700] "GET /s/1318/1/1.0/_/images/icons/fake.gif HTTP/1.1" 404 - "http://tepoztlan:20280/display/EMPTY/Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" {noformat} Many requests to a non existing image is going to invoke the {{fourofour.action}} just for free. Now, imagine the multiple requests made by IE6...

    Atlassian JIRA | 9 years ago | Roberto Dominguez
    java.net.SocketException: Broken pipe
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    ClientAbortException: java.net.SocketException: Connection reset by peer: socket write error

    Stack Overflow | 7 years ago | Srinivasan
    java.net.SocketException: Connection reset by peer: socket write error
  5. 0

    ClientAbortException: java.net.SocketException: Connection reset by peer: socket write error

    Stack Overflow | 8 years ago
    java.net.SocketException: Connection reset by peer: socket write error

  1. linxiaolong 2 times, last 2 months ago
  2. Tahir 23 times, last 2 months ago
  3. linxiaolong 1 times, last 4 months ago
  4. serious2monkeys 7 times, last 1 week ago
  5. kkandda 2 times, last 6 months ago
5 more registered users
85 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.SocketException

    Broken pipe

    at java.net.SocketOutputStream.socketWrite0()
  2. Java RT
    SocketOutputStream.write
    1. java.net.SocketOutputStream.socketWrite0(Native Method)
    2. java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
    3. java.net.SocketOutputStream.write(SocketOutputStream.java:136)
    3 frames
  3. Grizzly HTTP
    InternalOutputBuffer.realWriteBytes
    1. org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:747)
    1 frame
  4. Tomcat Util
    ByteChunk.flushBuffer
    1. org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:432)
    1 frame
  5. Grizzly HTTP
    Response.action
    1. org.apache.coyote.http11.InternalOutputBuffer.flush(InternalOutputBuffer.java:305)
    2. org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:992)
    3. org.apache.coyote.Response.action(Response.java:183)
    3 frames
  6. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:322)
    2. org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:293)
    3. org.apache.catalina.connector.Response.flushBuffer(Response.java:539)
    4. org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:287)
    5. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
    6. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    7. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
    8. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
    8 frames
  7. Grizzly HTTP
    LeaderFollowerWorkerThread.runIt
    1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
    2. org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
    3. org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
    4. org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
    4 frames
  8. Tomcat Util
    ThreadPool$ControlRunnable.run
    1. org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
    1 frame
  9. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:613)
    1 frame