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

Solutions on the web

via JDK Bug System by Felix Yang, 1 year ago
Connection reset by peer at sun.nio.ch.FileDispatcherImpl.read0(java.base@9-ea/Native Method) at sun.nio.ch.SocketDispatcher.read(java.base@9-ea/SocketDispatcher.java:39) at sun.nio.ch.IOUtil.readIntoNativeBuffer(java.base@9-ea/IOUtil.java:223
java.io.IOException: Connection reset by peer
	at sun.nio.ch.FileDispatcherImpl.read0(java.base@9-ea/Native Method)
	at sun.nio.ch.SocketDispatcher.read(java.base@9-ea/SocketDispatcher.java:39)
	at sun.nio.ch.IOUtil.readIntoNativeBuffer(java.base@9-ea/IOUtil.java:223)
	at sun.nio.ch.IOUtil.read(java.base@9-ea/IOUtil.java:197)
	at sun.nio.ch.SocketChannelImpl.read(java.base@9-ea/SocketChannelImpl.java:382)
	at java.net.http.PlainHttpConnection.readImpl(java.httpclient@9-ea/PlainHttpConnection.java:222)
	at java.net.http.HttpConnection.read(java.httpclient@9-ea/HttpConnection.java:310)
	at java.net.http.HttpConnection.read(java.httpclient@9-ea/HttpConnection.java:286)
	at java.net.http.Http1Response.getBuffer(java.httpclient@9-ea/Http1Response.java:251)
	at java.net.http.Http1Response.readStatusLine(java.httpclient@9-ea/Http1Response.java:264)
	at java.net.http.Http1Response.readHeaders(java.httpclient@9-ea/Http1Response.java:69)
	at java.net.http.Http1Exchange.getResponse(java.httpclient@9-ea/Http1Exchange.java:144)
	at java.net.http.Exchange.responseImpl0(java.httpclient@9-ea/Exchange.java:149)
	at java.net.http.Exchange.responseImpl(java.httpclient@9-ea/Exchange.java:129)
	at java.net.http.Exchange.response(java.httpclient@9-ea/Exchange.java:86)
	at java.net.http.MultiExchange.response(java.httpclient@9-ea/MultiExchange.java:99)
	at java.net.http.HttpRequestImpl.response(java.httpclient@9-ea/HttpRequestImpl.java:214)	at HeadersTest1.main(HeadersTest1.java:73)