Thursday, February 10, 2011

[android-developers] SocketException: No route to host

'No route to host' is the message in my customers log.

This is an http download of an image file from a host.

I and others can access files from this server just fine. In fact, the
user can load a page on the same domain from his browser.

I don't control the server, so I can't change anything there.

It certainly looks like it could be a firewall issue, but the user
doesn't know if he has any firewall. It could be the ISP or the server
is blocking his IP. For what reason, I don't know.

So far, it looks like one of those mysterious network errors that I
may never solve.

Any ideas to tell the user to try?

Nathan

java.net.SocketException: No route to host
at
org.apache.harmony.luni.platform.OSNetworkSystem.connectStreamWithTimeoutSocketImpl(Native
Method)
at
org.apache.harmony.luni.platform.OSNetworkSystem.connectStreamWithTimeoutSocket(OSNetworkSystem.java:
130)
at
org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:
246)
at
org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:
533)
at
java.net.Socket.connect(Socket.java:1055)
at
org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:
119)
at
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:
143)
at
org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:
164)
at
org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:
119)
at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:
348)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:
555)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:
487)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:
465)

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment