Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-1173

NoSuchElementException in org.apache.http.impl.cookie.BestMatchSpec.formatCookies

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 4.1.2, 4.1.3
    • None
    • HttpClient (classic)
    • None
    • Ubuntu 10.04/OpenJDK 6

    Description

      I am using the HTTP client using a ThreadSafeClientConnManager. The application is creating up to 300 client threads.
      Occasionally the client starts to throw the following exception after running for several hours:

      at java.util.ArrayList$Itr.next(ArrayList.java:757)
      at org.apache.http.impl.cookie.BestMatchSpec.formatCookies(BestMatchSpec.java:189)
      at org.apache.http.client.protocol.RequestAddCookies.process(RequestAddCookies.java:196)
      at org.apache.http.protocol.ImmutableHttpProcessor.process(ImmutableHttpProcessor.java:108)
      at org.apache.http.protocol.HttpRequestExecutor.preProcess(HttpRequestExecutor.java:174)
      at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:462)
      at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
      at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)

      The requests do not contain any cookies.

      Attachments

        Activity

          People

            Unassigned Unassigned
            c.thieme Christian Thieme
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: