hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 317070 <erstaateenknolraapinmijnt...@gmail.Com>
Subject new ThreadSafeClientConnManager(...) freezes.
Date Sun, 29 Nov 2009 01:44:00 GMT

Hello,


In my code, I do this:

System.out.println("yes1");

HttpParams params = new BasicHttpParams();

ConnManagerParams.setMaxTotalConnections(params, 100);

HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);

System.out.println("yes2");

SchemeRegistry schemeRegistry = new SchemeRegistry();

System.out.println("yes3");

schemeRegistry.register(new Scheme("http",
PlainSocketFactory.getSocketFactory(), 80));

System.out.println("yes4");

ClientConnectionManager cm = new
ThreadSafeClientConnManager(params,schemeRegistry);

System.out.println("yes5");


But when my program is moved into jars, I never get to see the "yes5"
message, nor is there any error or exception thrown, the thread just holds
there. It is like the new ThreadSafeClientConnManager(...) command freezes.
This doesn't occure in my Eclipse IDE. Does someone know what could cause
this, because it is driving me insane at the moment, and I don't see a way
out...


Greets,


Jonas
-- 
View this message in context: http://old.nabble.com/new-ThreadSafeClientConnManager%28...%29-freezes.-tp26558715p26558715.html
Sent from the HttpClient-User mailing list archive at Nabble.com.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message