InputStream = urlConnection. OutputStreamWriter = new OutputStreamWriter(outputStream) OutputStream = urlConnection.getOutputStream() // exception occurs on this line OutputStreamWriter outputStreamWriter = null Here is the stack trace: : Connection timed outĬaused by: : Connection timed outĪt (Native Method)Īt (PlainSocketImpl.java:333)Īt (PlainSocketImpl.java:195)Īt (PlainSocketImpl.java:182)Īt (Socket.java:516)Īt (Socket.java:466)Īt (NetworkClient.java:157)Īt is a snippet from my code: URLConnection urlConnection = null This doesnt affect all servers, and seems to be this connection specifically, as Ive tried it on a Mac (Mac OSX Snow Leopard, Java 32-bit Update 7 version 45) and it gave me a similar error, io.netty.ConnectException: Connection timed out: no further exceptions. It seems like once one user starts to get this exception they continue to get the exception. Unable to connect to certain 1.7.2 servers, at any time. The same code works for some users, but not others. I'm getting a ConnectException: Connection timed out with some frequency from my code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |