Caused by: org.apache.http.HttpException: Unable to establish route: planned = {}->
http://edu.mah.se;
current = {}->
http://www.edu.mah.se
at org.apache.http.impl.client.DefaultRequestDirector.establishRoute(DefaultRequestDirector.java:842)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:645)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:480)
reference https://issues.apache.org/jira/browse/HTTPCLIENT-1193
at org.apache.http.impl.client.DefaultRequestDirector.establishRoute(DefaultRequestDirector.java:842)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:645)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:480)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
use SingleConnectionManager
Scheme http = new Scheme("http", PlainSocketFactory.getSocketFactory(),
80);
SchemeRegistry schemeRegistry = new SchemeRegistry();
schemeRegistry.register(http);
ClientConnectionManager connManager = new SingleClientConnManager(
getHttpParams(), schemeRegistry);
HttpClient client = new DefaultHttpClient(connManager, getHttpParams());
reference https://issues.apache.org/jira/browse/HTTPCLIENT-1193