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

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

,
via GitHub by nathandunn

Nginx does not handle websocket requests. Configure nginx proxy for websockets.

,
via GitHub by ritchieGitHub

Set larger socket timeout (or 0 to set no timeout).

Solutions on the web

via pentaho.com by Unknown author, 1 year ago
Connection reset by peer: socket write error
via YouTrack by Unknown author, 1 year ago
via Oracle Community by s.frings, 1 year ago
Connection reset by peer: socket write error
via Stack Overflow by PaddarajuChittala
, 1 year ago
Software caused connection abort: socket write error
java.net.SocketException: Connection reset by peer: socket write error
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.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:434)
at org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:764)
at org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:126)
at org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:573)
at org.apache.coyote.Response.doWrite(Response.java:560)
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:434)
at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:381)
at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:370)
at java.io.BufferedOutputStream.write(BufferedOutputStream.java:105)
at com.lowagie.text.pdf.OutputStreamCounter.write(OutputStreamCounter.java:160)
at java.io.ByteArrayOutputStream.writeTo(ByteArrayOutputStream.java:109)
at com.lowagie.text.pdf.PdfStream.toPdf(PdfStream.java:307)
at com.lowagie.text.pdf.PdfIndirectObject.writeTo(PdfIndirectObject.java:167)
at com.lowagie.text.pdf.PdfWriter$PdfBody.add(PdfWriter.java:369)
at com.lowagie.text.pdf.PdfWriter$PdfBody.add(PdfWriter.java:349)
at com.lowagie.text.pdf.PdfWriter$PdfBody.add(PdfWriter.java:302)
at com.lowagie.text.pdf.PdfWriter.addToBody(PdfWriter.java:1982)
at com.lowagie.text.pdf.TrueTypeFont.writeFont(TrueTypeFont.java:1218)
at com.lowagie.text.pdf.FontDetails.writeFont(FontDetails.java:244)
at com.lowagie.text.pdf.PdfWriter.addSharedObjectsToBody(PdfWriter.java:1211)
at com.lowagie.text.pdf.PdfWriter.close(PdfWriter.java:1292)
at com.lowagie.text.pdf.PdfDocument.close(PdfDocument.java:957)
at com.lowagie.text.Document.close(Document.java:517)
at org.pentaho.reporting.engine.classic.core.modules.output.pageable.pdf.internal.PdfDocumentWriter.close(PdfDocumentWriter.java:272)
at org.pentaho.reporting.engine.classic.core.modules.output.pageable.pdf.PdfOutputProcessor.processingContentFinished(PdfOutputProcessor.java:128)
at org.pentaho.reporting.engine.classic.core.layout.output.AbstractOutputProcessor.processingFinished(AbstractOutputProcessor.java:87)
at org.pentaho.reporting.engine.classic.core.modules.output.pageable.base.PageableRenderer.performPagination(PageableRenderer.java:177)
at org.pentaho.reporting.engine.classic.core.layout.AbstractRenderer.processPage(AbstractRenderer.java:923)
at org.pentaho.reporting.engine.classic.core.layout.output.AbstractReportProcessor.processPage(AbstractReportProcessor.java:1142)
at org.pentaho.reporting.engine.classic.core.layout.output.AbstractReportProcessor.processReport(AbstractReportProcessor.java:1231)
at org.pentaho.reporting.engine.classic.core.modules.output.pageable.pdf.PdfReportUtil.createPDF(PdfReportUtil.java:122)
at controller.ListaDeCausasConComisaria.doGet(ListaDeCausasConComisaria.java:86)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at java.lang.Thread.run(Thread.java:619)

Users with the same issue

Once, 12 hours ago
4 times, 1 day ago
Once, 6 days ago
Once, 1 week ago
Once, 4 weeks ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.