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

Samebug tips

  1. ,

    Normally, the connection to an HTTP server is closed after each response. Change the network connection and make sure the network is stable when making the request. When the server closes such a connection the client usually reopens it again.

Solutions on the web

via Google Groups by Dmitry Sklyut, 2 years ago
via GitHub by kvsrikanth
, 2 years ago
Connection timed out
via GitHub by omiddjoudi
, 2 years ago
Connection reset by peer
via Google Groups by Kaiming Wan, 1 year ago
java.io.IOException: Connection timed out at sun.nio.ch.FileDispatcherImpl.read0(Native Method)[na:1.7.0_40] at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)[na:1.7.0_40] at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)[na:1.7.0_40] at sun.nio.ch.IOUtil.read(IOUtil.java:192)[na:1.7.0_40] at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:379)[na:1.7.0_40] at io.netty.buffer.PooledUnsafeDirectByteBuf.setBytes(PooledUnsafeDirectByteBuf.java:311)[io.netty.netty-all-4.0.18.Final.jar:4.0.18.Final] at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:871)[io.netty.netty-all-4.0.18.Final.jar:4.0.18.Final] at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:224)[io.netty.netty-all-4.0.18.Final.jar:4.0.18.Final] at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:108)[io.netty.netty-all-4.0.18.Final.jar:4.0.18.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:494)[io.netty.netty-all-4.0.18.Final.jar:4.0.18.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:461)[io.netty.netty-all-4.0.18.Final.jar:4.0.18.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:378)[io.netty.netty-all-4.0.18.Final.jar:4.0.18.Final] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:350)[io.netty.netty-all-4.0.18.Final.jar:4.0.18.Final] at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)[io.netty.netty-all-4.0.18.Final.jar:4.0.18.Final] at java.lang.Thread.run(Thread.java:724)[na:1.7.0_40]