Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,

    The socket has shut down its end of the socket before communication was complete. About half of those were because the program communicating on that socket had terminated. Check whether the application is still up and communicating via the socket.

Solutions on the web

via Google Groups by Paul Chauvet, 1 year ago
java.io.IOException: Broken pipe	at sun.nio.ch.FileDispatcherImpl.write0(Native Method)	at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)	at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)	at sun.nio.ch.IOUtil.write(IOUtil.java:65)	at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:471)	at org.apache.tomcat.util.net.NioChannel.write(NioChannel.java:124)	at org.apache.tomcat.util.net.NioBlockingSelector.write(NioBlockingSelector.java:101)	at org.apache.tomcat.util.net.NioSelectorPool.write(NioSelectorPool.java:172)	at org.apache.coyote.ajp.AjpNioProcessor.output(AjpNioProcessor.java:140)	at org.apache.coyote.ajp.AbstractAjpProcessor.writeResponseMessage(AbstractAjpProcessor.java:1754)	at org.apache.coyote.ajp.AbstractAjpProcessor.writeData(AbstractAjpProcessor.java:1673)	at org.apache.coyote.ajp.AbstractAjpProcessor.access$300(AbstractAjpProcessor.java:62)	at org.apache.coyote.ajp.AbstractAjpProcessor$SocketOutputBuffer.doWrite(AbstractAjpProcessor.java:1820)	at org.apache.coyote.Response.doWrite(Response.java:491)	at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:391)	at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:426)	at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:345)	at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:320)	at org.apache.catalina.connector.CoyoteOutputStream.flush(CoyoteOutputStream.java:110)	at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:297)	at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141)	at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229)	at com.sun.org.apache.xml.internal.serialize.Printer.flush(Printer.java:324)	at com.sun.org.apache.xml.internal.serialize.XMLSerializer.endElementIO(XMLSerializer.java:413)	at com.sun.org.apache.xml.internal.serialize.XMLSerializer.serializeElement(XMLSerializer.java:1072)	at com.sun.org.apache.xml.internal.serialize.BaseMarkupSerializer.serializeNode(BaseMarkupSerializer.java:1192)	at com.sun.org.apache.xml.internal.serialize.BaseMarkupSerializer.serialize(BaseMarkupSerializer.java:410)	at com.sun.org.apache.xml.internal.serialize.DOMSerializerImpl.write(DOMSerializerImpl.java:812)	at net.shibboleth.utilities.java.support.xml.SerializeSupport.writeNode(SerializeSupport.java:137)	at net.shibboleth.utilities.java.support.xml.SerializeSupport.writeNode(SerializeSupport.java:114)	at org.opensaml.soap.soap11.encoder.http.impl.HTTPSOAP11Encoder.doEncode(HTTPSOAP11Encoder.java:99)	at org.opensaml.messaging.encoder.AbstractMessageEncoder.encode(AbstractMessageEncoder.java:53)	at org.opensaml.messaging.encoder.servlet.BaseHttpServletResponseXMLMessageEncoder.encode(BaseHttpServletResponseXMLMessageEncoder.java:50)	at org.jasig.cas.support.saml.util.Saml10ObjectBuilder.encodeSamlResponse_aroundBody16(Saml10ObjectBuilder.java:245)	at org.jasig.cas.support.saml.util.Saml10ObjectBuilder$AjcClosure17.run(Saml10ObjectBuilder.java:1)	at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)	at org.jasig.inspektr.aspect.TraceLogAspect.traceMethod(TraceLogAspect.java:44)	at org.jasig.cas.support.saml.util.Saml10ObjectBuilder.encodeSamlResponse(Saml10ObjectBuilder.java:234)	at org.jasig.cas.support.saml.web.view.AbstractSaml10ResponseView.renderMergedOutputModel(AbstractSaml10ResponseView.java:107)	at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:303)	at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1244)	at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1027)	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:971)	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)	at org.apereo.cas.security.ResponseHeadersEnforcementFilter.doFilter(ResponseHeadersEnforcementFilter.java:238)	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)	at org.apereo.cas.security.RequestParameterPolicyEnforcementFilter.doFilter(RequestParameterPolicyEnforcementFilter.java:261)	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)	at org.jasig.inspektr.common.web.ClientInfoThreadLocalFilter.doFilter(ClientInfoThreadLocalFilter.java:62)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:121)	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)	at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:676)	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:528)	at org.apache.coyote.ajp.AbstractAjpProcessor.process(AbstractAjpProcessor.java:873)	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:670)	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1520)	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1476)	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)	at java.lang.Thread.run(Thread.java:745)