You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Albek, Elli (contractor)" <ea...@shaklee.com> on 2013/03/14 21:12:08 UTC

Exception parsing cookies

I would normally put this in Jira, but it does not let me create an
account from some reason.

 

We get this exception sporadically in a production system:

 

java.lang.ArrayIndexOutOfBoundsException: -857528244

      at java.util.ArrayList$Itr.next(ArrayList.java:762)

      at
org.apache.http.impl.cookie.BestMatchSpec.formatCookies(BestMatchSpec.ja
va:189)

      at
org.apache.http.client.protocol.RequestAddCookies.process(RequestAddCook
ies.java:196)

      at
org.apache.http.protocol.ImmutableHttpProcessor.process(ImmutableHttpPro
cessor.java:109)

      at
org.apache.http.protocol.HttpRequestExecutor.preProcess(HttpRequestExecu
tor.java:176)

      at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultReques
tDirector.java:515)

      at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClien
t.java:906)

      at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClien
t.java:805)

      at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClien
t.java:784)

 

We are calling POST URL and we do not send any cookie.

Versions:

httpclient-4.2.3.jar

httpcore-4.2.2.jar

 

If you reply to this post please make sure my email address is not
visible in the body of the email.

 

Thanks


Re: Exception parsing cookies

Posted by Francois-Xavier Bonnet <fr...@centraliens.net>.
Hi,

Could you set org.apache.http.client.protocol.RequestAddCookies
and org.apache.http.client.protocol.ResponseProcessCookies categories to
DEBUG
In addition could your code ?

2013/3/15 Albek, Elli (contractor) <ea...@shaklee.com>

> I would normally put this in Jira, but it does not let me create an
> account from some reason.
>
>
>
> We get this exception sporadically in a production system:
>
>
>
> java.lang.ArrayIndexOutOfBoundsException: -857528244
>
>       at java.util.ArrayList$Itr.next(ArrayList.java:762)
>
>       at
> org.apache.http.impl.cookie.BestMatchSpec.formatCookies(BestMatchSpec.ja
> va:189)
>
>       at
> org.apache.http.client.protocol.RequestAddCookies.process(RequestAddCook
> ies.java:196)
>
>       at
> org.apache.http.protocol.ImmutableHttpProcessor.process(ImmutableHttpPro
> cessor.java:109)
>
>       at
> org.apache.http.protocol.HttpRequestExecutor.preProcess(HttpRequestExecu
> tor.java:176)
>
>       at
> org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultReques
> tDirector.java:515)
>
>       at
> org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClien
> t.java:906)
>
>       at
> org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClien
> t.java:805)
>
>       at
> org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClien
> t.java:784)
>
>
>
> We are calling POST URL and we do not send any cookie.
>
> Versions:
>
> httpclient-4.2.3.jar
>
> httpcore-4.2.2.jar
>
>
>
> If you reply to this post please make sure my email address is not
> visible in the body of the email.
>
>
>
> Thanks
>
>