java.io.IOException: Connection reset by peer

JBoss Issue Tracker | Timothy Heider | 3 years ago
  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 | 3 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

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

    jboss.org | 2 months ago
    java.io.IOException: Connection reset by peer
  5. 0

    When a command for the process are sent api-gateway throw an exception

    GitHub | 6 months ago | garayzuev
    org.jboss.resteasy.spi.UnhandledException: Response is committed, can't handle exception

  1. Raggyman 2 times, last 2 months ago
  2. bpbhat77 4 times, last 3 months ago
  3. kid 28 times, last 3 months ago
  4. Piz 4 times, last 4 months ago
  5. poroszd 1 times, last 5 months ago
7 more registered users
88 unregistered visitors
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