jersey
  1. jersey
  2. JERSEY-729

Upgrade to Apache HttpClient 4.1 from 3.1

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.7
    • Fix Version/s: 1.7
    • Component/s: core
    • Labels:
      None

      Description

      Currently the ApacheHttpClient class references org.apache.commons.httpclient.MultiThreadedHttpConnectionManager which exists in HttpClient 3.1. However, as noted on the Apache HttpComponents page,

      Commons HttpClient 3.x codeline is at the end of life. All users of Commons HttpClient 3.x are strongly encouraged to upgrade to HttpClient 4.1.

      MultiThreadedHttpConnectionManager does not exist in 4.1.

      We have moved our HttpComponent dependecies from 3.x to 4.1 but Jersey is holding us back from completing the transition.

        Activity

        Hide
        Artem Shnayder added a comment -

        FYI, the following bug forced us off of 3.1: https://issues.apache.org/jira/browse/HTTPCORE-190.

        Show
        Artem Shnayder added a comment - FYI, the following bug forced us off of 3.1: https://issues.apache.org/jira/browse/HTTPCORE-190 .
        Hide
        Pavel Bucek added a comment - - edited

        already done.

        see http://jersey.java.net/nonav/apidocs/latest/contribs/jersey-apache-client4/index.html
        and http://blogs.oracle.com/PavelBucek/entry/jersey_client_apache_http_client

        <dependency>
        <groupId>com.sun.jersey.contribs</groupId>
        <artifactId>jersey-apache-http-client4</artifactId>
        <version>1.7</version> <!-- or 1.7-ea04 and newer, when available -->
        </dependency>

        there is an issue with https, but tomorrows release will contain fix (1.8-ea03) or you can try 1.8-SNAPSHOT.

        Show
        Pavel Bucek added a comment - - edited already done. see http://jersey.java.net/nonav/apidocs/latest/contribs/jersey-apache-client4/index.html and http://blogs.oracle.com/PavelBucek/entry/jersey_client_apache_http_client <dependency> <groupId>com.sun.jersey.contribs</groupId> <artifactId>jersey-apache-http-client4</artifactId> <version>1.7</version> <!-- or 1.7-ea04 and newer, when available --> </dependency> there is an issue with https, but tomorrows release will contain fix (1.8-ea03) or you can try 1.8-SNAPSHOT.
        Hide
        Artem Shnayder added a comment -

        Perfect, thank you!

        Show
        Artem Shnayder added a comment - Perfect, thank you!

          People

          • Assignee:
            Pavel Bucek
            Reporter:
            Artem Shnayder
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 4 hours
              4h
              Remaining:
              Remaining Estimate - 4 hours
              4h
              Logged:
              Time Spent - Not Specified
              Not Specified