Making use of HttpClient and PoolingHttpClientConnectionManager, I am calling a 
webservice that requires (SSL and) NTLM-Auth. When two concurrent requests run 
"at the same time" I sometimes/most often get a NoSuchElementException
The stacktrace:
java.util.LinkedList.removeFirst(LinkedList.java:270)
java.util.LinkedList.remove(LinkedList.java:685)
org.apache.http.impl.auth.HttpAuthenticator.generateAuthResponse(HttpAuthenticator.java:193)
org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:262)
org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:71)
<my code follows>

What am I facing?

Note:
In other situations, which may not be of any relevance to the above issue, I 
get 401 from remote Webservice/Server.

Thx
Clemens

Reply via email to