hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m0j0j0j0 <silvio.technolog...@gmail.com>
Subject Re: Help with Multiple Connections
Date Sun, 19 Feb 2012 16:28:24 GMT

Here is the stack trace

Exception in thread "pool-4-thread-488" java.lang.IllegalStateException:
Connection pool shut down
	at
org.apache.http.impl.conn.tsccm.ConnPoolByRoute.getEntryBlocking(ConnPoolByRoute.java:346)
	at
org.apache.http.impl.conn.tsccm.ConnPoolByRoute$1.getPoolEntry(ConnPoolByRoute.java:300)
	at
org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager$1.getConnection(ThreadSafeClientConnManager.java:224)
	at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:401)
	at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
	at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:941)
	at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:919)
	at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:910)
	at GetThread.run(HTTP_Con.java:125)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)


java.lang.IllegalStateException: Connection pool shut down
	at
org.apache.http.impl.conn.tsccm.ConnPoolByRoute.getEntryBlocking(ConnPoolByRoute.java:346)
	at
org.apache.http.impl.conn.tsccm.ConnPoolByRoute$1.getPoolEntry(ConnPoolByRoute.java:300)
	at
org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager$1.getConnection(ThreadSafeClientConnManager.java:224)
	at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:401)
	at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
	at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:941)
	at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:919)
	at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:910)
	at GetThread.run(HTTP_Con.java:125)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
java.lang.IllegalStateException: Connection pool shut down
	at
org.apache.http.impl.conn.tsccm.ConnPoolByRoute.getEntryBlocking(ConnPoolByRoute.java:346)
	at
org.apache.http.impl.conn.tsccm.ConnPoolByRoute$1.getPoolEntry(ConnPoolByRoute.java:300)
	at
org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager$1.getConnection(ThreadSafeClientConnManager.java:224)
	at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:401)
	at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
	at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:941)
	at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:919)
	at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:910)
	at GetThread.run(HTTP_Con.java:125)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
java.lang.IllegalStateException: Connection pool shut down
	at
org.apache.http.impl.conn.tsccm.ConnPoolByRoute.getEntryBlocking(ConnPoolByRoute.java:346)
	at
org.apache.http.impl.conn.tsccm.ConnPoolByRoute$1.getPoolEntry(ConnPoolByRoute.java:300)
	at
org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager$1.getConnection(ThreadSafeClientConnManager.java:224)
	at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:401)
	at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
	at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:941)
	at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:919)
	at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:910)
	at GetThread.run(HTTP_Con.java:125)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

----------------------------------------------------------------------

line 125 in HTTP_Con class i created is this line which is where the stack
trace points me 
but i dontknow what im doing wrong, i did a fair ammount of research
regarding httpclient4 and 
have tried everything, even removing my logic i use to process the data in
my get thread and 
simplifying it down to an alive check with exception handling everywhere,
consumeentity etc.. 



			byte[] response = httpClient.execute(httpget, handler);

If you look in the original post i have this surrounded in a try catch
block, also i consumeentity to encourage resource release.

-- 
View this message in context: http://old.nabble.com/Help-with-Multiple-Connections-tp33350254p33352391.html
Sent from the HttpClient-User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message