hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Weber <http-as...@dubioso.net>
Subject Re: java.util.ConcurrentModificationException
Date Sat, 18 Nov 2006 11:43:36 GMT
Hello Lalit,

> While using HttpClient in multithreaded environment I am getting following error:
> java.util.ConcurrentModificationException
> 	at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:448)
> 	at java.util.AbstractList$Itr.next(AbstractList.java:419)
> 	at org.apache.commons.httpclient.HeaderGroup.getHeaders(HeaderGroup.java:142)
> 	at org.apache.commons.httpclient.HttpMethodBase.addCookieRequestHeader(HttpMethodBase.java:1167)

Make sure that each HttpMethod is used by only one thread at a time.
In other words, each thread has to create it's own method.


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

View raw message