cgeo/c-geo-opensource — Issue #1187: Exception when no network
Author: YraFyra
Created: 2012-02-25 22:12:57+00:00
State: open

I was abroad today and turned off data-traffic to save some money.
When starting live-map (and activated Live) I got the following error, and cgeo was closed

02-25 14:38:58.849 I/cgeo (32168): Starting cgeo.geocaching 20120224 a.k.a 2402-a221f3a...
02-25 14:38:58.869 D/cgeo (32168): GET https://www.geocaching.com/login/default.aspx
02-25 14:38:58.879 E/cgeo (32168): Failure 1/5 (java.net.UnknownHostException: www.geocaching.com) (11 ms) - retrying GET https://www.geocaching.com/login/default.aspx
02-25 14:38:58.890 E/cgeo (32168): Failure 2/5 (java.net.UnknownHostException: www.geocaching.com) (0 ms) - retrying GET https://www.geocaching.com/login/default.aspx
02-25 14:38:58.890 E/cgeo (32168): Failure 3/5 (java.net.UnknownHostException: www.geocaching.com) (0 ms) - retrying GET https://www.geocaching.com/login/default.aspx
02-25 14:38:58.890 E/cgeo (32168): Failure 4/5 (java.net.UnknownHostException: www.geocaching.com) (0 ms) - retrying GET https://www.geocaching.com/login/default.aspx
02-25 14:38:58.890 E/cgeo (32168): Failure 5/5 (1 ms) GET https://www.geocaching.com/login/default.aspx
02-25 14:38:58.890 E/cgeo (32168): java.net.UnknownHostException: www.geocaching.com
02-25 14:38:58.890 E/cgeo (32168):	at java.net.InetAddress.lookupHostByName(InetAddress.java:497)
02-25 14:38:58.890 E/cgeo (32168):	at java.net.InetAddress.getAllByNameImpl(InetAddress.java:294)
02-25 14:38:58.890 E/cgeo (32168):	at java.net.InetAddress.getAllByName(InetAddress.java:256)
02-25 14:38:58.890 E/cgeo (32168):	at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:144)
02-25 14:38:58.890 E/cgeo (32168):	at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
02-25 14:38:58.890 E/cgeo (32168):	at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
02-25 14:38:58.890 E/cgeo (32168):	at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:359)
02-25 14:38:58.890 E/cgeo (32168):	at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:580)
02-25 14:38:58.890 E/cgeo (32168):	at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:512)
02-25 14:38:58.890 E/cgeo (32168):	at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:490)
02-25 14:38:58.890 E/cgeo (32168):	at cgeo.geocaching.cgBase.doRequest(cgBase.java:2570)
02-25 14:38:58.890 E/cgeo (32168):	at cgeo.geocaching.cgBase.request(cgBase.java:2550)
02-25 14:38:58.890 E/cgeo (32168):	at cgeo.geocaching.cgBase.request(cgBase.java:2543)
02-25 14:38:58.890 E/cgeo (32168):	at cgeo.geocaching.cgBase.request(cgBase.java:2449)
02-25 14:38:58.890 E/cgeo (32168):	at cgeo.geocaching.cgBase.login(cgBase.java:278)
02-25 14:38:58.890 E/cgeo (32168):	at cgeo.geocaching.cgeo$firstLogin.run(cgeo.java:771)
02-25 14:38:58.890 E/cgeo (32168): cgeoBase.login: Failed to retrieve login page (1st)