java.io.IOException: Connection reset by peer

JBoss Issue Tracker | Timothy Heider | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I have a Comet request in my app. If I break the connection on the remote client the server is generating a log ERROR message. It seems like this is not really an ERROR that should be logged. Subject to interpretation but I wanted to mention it. 15:17:17,493 ERROR [io.undertow.request.io] (default I/O-2) UT005013: An IOException occurred: java.io.IOException: Connection reset by peer at sun.nio.ch.FileDispatcherImpl.read0(Native Method) [rt.jar:1.7.0_21] at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39) [rt.jar:1.7.0_21] at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:225) [rt.jar:1.7.0_21] at sun.nio.ch.IOUtil.read(IOUtil.java:193) [rt.jar:1.7.0_21] at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:359) [rt.jar:1.7.0_21] at org.xnio.nio.NioSocketConduit.read(NioSocketConduit.java:262) [xnio-nio-3.1.0.CR3.jar:3.1.0.CR3] at org.xnio.conduits.ConduitStreamSourceChannel.read(ConduitStreamSourceChannel.java:127) [xnio-api-3.1.0.CR3.jar:3.1.0.CR3] at io.undertow.server.HttpReadListener.handleEvent(HttpReadListener.java:83) at io.undertow.server.HttpReadListener.handleEvent(HttpReadListener.java:43) at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:91) [xnio-api-3.1.0.CR3.jar:3.1.0.CR3] at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:61) [xnio-api-3.1.0.CR3.jar:3.1.0.CR3] at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:85) [xnio-nio-3.1.0.CR3.jar:3.1.0.CR3] at org.xnio.nio.WorkerThread.run(WorkerThread.java:528) [xnio-nio-3.1.0.CR3.jar:3.1.0.CR3]

    JBoss Issue Tracker | 4 years ago | Timothy Heider
    java.io.IOException: Connection reset by peer
  2. 0

    How catch java.io.IOException: An established connection was aborted by the software in your host machine?

    Stack Overflow | 2 years ago | Az.MaYo
    java.io.IOException: An established connection was aborted by the software in your host machine
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    post error

    GitHub | 1 month ago | zczhao
    java.io.IOException: 远程主机强迫关闭了一个现有的连接。
  5. 0

    [undertow-dev] So many connection reset by peer exception and socket leak

    jboss.org | 7 months ago
    java.io.IOException: Connection reset by peer
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.IOException

    Connection reset by peer

    at sun.nio.ch.FileDispatcherImpl.read0()
  2. Java RT
    SocketChannelImpl.read
    1. sun.nio.ch.FileDispatcherImpl.read0(Native Method)[rt.jar:1.7.0_21]
    2. sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)[rt.jar:1.7.0_21]
    3. sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:225)[rt.jar:1.7.0_21]
    4. sun.nio.ch.IOUtil.read(IOUtil.java:193)[rt.jar:1.7.0_21]
    5. sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:359)[rt.jar:1.7.0_21]
    5 frames
  3. XNIO NIO Implementation
    NioSocketConduit.read
    1. org.xnio.nio.NioSocketConduit.read(NioSocketConduit.java:262)[xnio-nio-3.1.0.CR3.jar:3.1.0.CR3]
    1 frame
  4. org.xnio.conduits
    ConduitStreamSourceChannel.read
    1. org.xnio.conduits.ConduitStreamSourceChannel.read(ConduitStreamSourceChannel.java:127)[xnio-api-3.1.0.CR3.jar:3.1.0.CR3]
    1 frame
  5. Undertow Core
    HttpReadListener.handleEvent
    1. io.undertow.server.HttpReadListener.handleEvent(HttpReadListener.java:83)
    2. io.undertow.server.HttpReadListener.handleEvent(HttpReadListener.java:43)
    2 frames
  6. XNIO API
    ChannelListeners.invokeChannelListener
    1. org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:91)[xnio-api-3.1.0.CR3.jar:3.1.0.CR3]
    1 frame
  7. org.xnio.conduits
    ReadReadyHandler$ChannelListenerHandler.readReady
    1. org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:61)[xnio-api-3.1.0.CR3.jar:3.1.0.CR3]
    1 frame
  8. XNIO NIO Implementation
    WorkerThread.run
    1. org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:85)[xnio-nio-3.1.0.CR3.jar:3.1.0.CR3]
    2. org.xnio.nio.WorkerThread.run(WorkerThread.java:528)[xnio-nio-3.1.0.CR3.jar:3.1.0.CR3]
    2 frames