java.io.IOException

Connection reset by peer

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 web5009

  • Connection reset by peer
  • via GitHub by stringpeng
    , 3 months ago
    Connection reset by peer
  • Connection reset by peer
  • Stack trace

    • java.io.IOException: Connection reset by peer at sun.nio.ch.FileDispatcherImpl.write0(Native Method)[na:1.8.0_25] at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)[na:1.8.0_25] at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)[na:1.8.0_25] at sun.nio.ch.IOUtil.write(IOUtil.java:65)[na:1.8.0_25] at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:470)[na:1.8.0_25] at com.ning.http.client.multipart.MultipartUtils.writeBytesToChannel(MultipartUtils.java:130)[async-http-client-1.9.19.jar:na] at com.ning.http.client.multipart.ByteArrayPart.write(ByteArrayPart.java:75)[async-http-client-1.9.19.jar:na] at com.ning.http.client.multipart.MultipartBody.transferTo(MultipartBody.java:86)[async-http-client-1.9.19.jar:na] at com.ning.http.client.providers.netty.request.body.BodyFileRegion.transferTo(BodyFileRegion.java:47)[async-http-client-1.9.19.jar:na] at org.jboss.netty.channel.socket.nio.SocketSendBufferPool$FileSendBuffer.transferTo(SocketSendBufferPool.java:331)[netty-3.10.1.Final.jar:na] at org.jboss.netty.channel.socket.nio.AbstractNioWorker.write0(AbstractNioWorker.java:201)[netty-3.10.1.Final.jar:na] at org.jboss.netty.channel.socket.nio.AbstractNioWorker.writeFromUserCode(AbstractNioWorker.java:146)[netty-3.10.1.Final.jar:na] at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink.eventSunk(NioClientSocketPipelineSink.java:84)[netty-3.10.1.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendDownstream(DefaultChannelPipeline.java:779)[netty-3.10.1.Final.jar:na] at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:60)[netty-3.10.1.Final.jar:na] at org.jboss.netty.handler.codec.http.HttpClientCodec.handleDownstream(HttpClientCodec.java:97)[netty-3.10.1.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:591)[netty-3.10.1.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendDownstream(DefaultChannelPipeline.java:784)[netty-3.10.1.Final.jar:na] at org.jboss.netty.handler.stream.ChunkedWriteHandler.flush(ChunkedWriteHandler.java:280)[netty-3.10.1.Final.jar:na] at org.jboss.netty.handler.stream.ChunkedWriteHandler.handleDownstream(ChunkedWriteHandler.java:121)[netty-3.10.1.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:591)[netty-3.10.1.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:582)[netty-3.10.1.Final.jar:na] at org.jboss.netty.channel.Channels.write(Channels.java:704)[netty-3.10.1.Final.jar:na] at org.jboss.netty.channel.Channels.write(Channels.java:671)[netty-3.10.1.Final.jar:na] at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:348)[netty-3.10.1.Final.jar:na] at com.ning.http.client.providers.netty.request.body.NettyBodyBody.write(NettyBodyBody.java:79)[async-http-client-1.9.19.jar:na] at com.ning.http.client.providers.netty.request.NettyRequestSender.writeRequest(NettyRequestSender.java:338)[async-http-client-1.9.19.jar:na] at com.ning.http.client.providers.netty.handler.HttpProtocol.exitAfterHandling100(HttpProtocol.java:279)[async-http-client-1.9.19.jar:na] at com.ning.http.client.providers.netty.handler.HttpProtocol.handleHttpResponse(HttpProtocol.java:433)[async-http-client-1.9.19.jar:na] at com.ning.http.client.providers.netty.handler.HttpProtocol.handle(HttpProtocol.java:480)[async-http-client-1.9.19.jar:na] at com.ning.http.client.providers.netty.handler.Processor.messageReceived(Processor.java:89)[async-http-client-1.9.19.jar:na] at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)[netty-3.10.1.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)[netty-3.10.1.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)[netty-3.10.1.Final.jar:na] at org.jboss.netty.handler.stream.ChunkedWriteHandler.handleUpstream(ChunkedWriteHandler.java:142)[netty-3.10.1.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)[netty-3.10.1.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)[netty-3.10.1.Final.jar:na] at org.jboss.netty.handler.codec.http.HttpContentDecoder.messageReceived(HttpContentDecoder.java:63)[netty-3.10.1.Final.jar:na] at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)[netty-3.10.1.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)[netty-3.10.1.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)[netty-3.10.1.Final.jar:na] at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296)[netty-3.10.1.Final.jar:na] at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:459)[netty-3.10.1.Final.jar:na] at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:536)[netty-3.10.1.Final.jar:na] at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:435)[netty-3.10.1.Final.jar:na] at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)[netty-3.10.1.Final.jar:na] at org.jboss.netty.handler.codec.http.HttpClientCodec.handleUpstream(HttpClientCodec.java:92)[netty-3.10.1.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)[netty-3.10.1.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)[netty-3.10.1.Final.jar:na] at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268)[netty-3.10.1.Final.jar:na] at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255)[netty-3.10.1.Final.jar:na] at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88)[netty-3.10.1.Final.jar:na] at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108)[netty-3.10.1.Final.jar:na] at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337)[netty-3.10.1.Final.jar:na] at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89)[netty-3.10.1.Final.jar:na] at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)[netty-3.10.1.Final.jar:na] at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)[netty-3.10.1.Final.jar:na] at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)[netty-3.10.1.Final.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_25] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_25] at java.lang.Thread.run(Thread.java:745)[na:1.8.0_25]

    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

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 4 weeks ago
    Unknown user
    Once, 3 months ago
    Unknown user
    Once, 10 months ago
    Unknown user
    Once, 11 months ago
    446 more bugmates