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)

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web8467

  • via JDK Bug System by Felix Yang, 10 months 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
  • via JDK Bug System by Amy Lu, 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
  • ) at java.net.http.MultiExchange.response(java.httpclient@9-internal/MultiExchange.java:146) at java.net.http.HttpRequestImpl.response(java.httpclient@9-internal/HttpRequestImpl.java:251)
  • Stack trace

    • 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)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.