java.io.IOException: Broken pipe

Posted 抓手

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了java.io.IOException: Broken pipe相关的知识,希望对你有一定的参考价值。

o.s.web.servlet.HandlerExecutionChain    : HandlerInterceptor.afterCompletion threw exception

org.apache.catalina.connector.ClientAbortException: java.io.IOException: Broken pipe
	at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:364) ~[tomcat-embed-core-8.5.39.jar!/:8.5.39]
	at org.apache.catalina.connector.OutputBuffer.flushByteBuffer(OutputBuffer.java:833) ~[tomcat-embed-core-8.5.39.jar!/:8.5.39]
	at org.apache.catalina.connector.OutputBuffer.append(OutputBuffer.java:738) ~[tomcat-embed-core-8.5.39.jar!/:8.5.39]
	at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:399) ~[tomcat-embed-core-8.5.39.jar!/:8.5.39]
	at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:377) ~[tomcat-embed-core-8.5.39.jar!/:8.5.39]
	at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:96) ~[tomcat-embed-core-8.5.39.jar!/:8.5.39]
	at com.fasterxml.jackson.core.json.UTF8JsonGenerator._flushBuffer(UTF8JsonGenerator.java:2085) ~[jackson-core-2.9.8.jar!/:2.9.8]
	at com.fasterxml.jackson.core.json.UTF8JsonGenerator._writeNull(UTF8JsonGenerator.java:2049) ~[jackson-core-2.9.8.jar!/:2.9.8]
	......
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_111]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_111]
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-embed-core-8.5.39.jar!/:8.5.39]
	at java.lang.Thread.run(Thread.java:745) [na:1.8.0_111]
Caused by: java.io.IOException: Broken pipe
	at sun.nio.ch.FileDispatcherImpl.write0(Native Method) ~[na:1.8.0_111]
	at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47) ~[na:1.8.0_111]
	at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93) ~[na:1.8.0_111]
	at sun.nio.ch.IOUtil.write(IOUtil.java:65) ~[na:1.8.0_111]
	at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:471) ~[na:1.8.0_111]
	at org.apache.tomcat.util.net.NioChannel.write(NioChannel.java:134) ~[tomcat-embed-core-8.5.39.jar!/:8.5.39]
	at org.apache.tomcat.util.net.NioBlockingSelector.write(NioBlockingSelector.java:101) ~[tomcat-embed-core-8.5.39.jar!/:8.5.39]
	at org.apache.tomcat.util.net.NioselectorPool.write(NioSelectorPool.java:157) ~[tomcat-embed-core-8.5.39.jar!/:8.5.39]
	at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.doWrite(NioEndpoint.java:1306) ~[tomcat-embed-core-8.5.39.jar!/:8.5.39]
	at org.apache.tomcat.util.net.SocketWrapperBase.doWrite(SocketWrapperBase.java:731) ~[tomcat-embed-core-8.5.39.jar!/:8.5.39]
	at org.apache.tomcat.util.net.SocketWrapperBase.writeBlocking(SocketWrapperBase.java:501) ~[tomcat-embed-core-8.5.39.jar!/:8.5.39]
	at org.apache.tomcat.util.net.SocketWrapperBase.write(SocketWrapperBase.java:439) ~[tomcat-embed-core-8.5.39.jar!/:8.5.39]
	at org.apache.coyote.http11.Http11OutputBuffer$SocketOutputBuffer.doWrite(Http11OutputBuffer.java:623) ~[tomcat-embed-core-8.5.39.jar!/:8.5.39]
	at org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:123) ~[tomcat-embed-core-8.5.39.jar!/:8.5.39]
	at org.apache.coyote.http11.Http11OutputBuffer.doWrite(Http11OutputBuffer.java:225) ~[tomcat-embed-core-8.5.39.jar!/:8.5.39]
	at org.apache.coyote.Response.doWrite(Response.java:606) ~[tomcat-embed-core-8.5.39.jar!/:8.5.39]
	at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:352) ~[tomcat-embed-core-8.5.39.jar!/:8.5.39]
	... 87 common frames omitted

pipe是管道的意思,管道里面是数据流,通常是从文件或网络套接字读取的数据。 当该管道从另一端突然关闭时,会发生数据突然中断Broken pipe。

对于服务器来说,该底层异常,并不影响,所以暂可忽略。

以上是关于java.io.IOException: Broken pipe的主要内容,如果未能解决你的问题,请参考以下文章

java.io.IOException: toDerInputStream 拒绝标签类型 77

java.io.IOException:系统找不到指定的路径

java.io.IOException: Connection reset by peer和java.io.IOException: Connection timed out。Socket

android java.io.IOException:传输端点未连接

任务 ':app:compileDebugKotlin' java.io.IOException 执行失败

火花:java.io.IOException:设备上没有剩余空间[再次!]