Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Disabling Apache Httpclient

Revision as of 12:00, 9 April 2018 by Unnamed Poltroon (Talk)

Under some conditions, it seems that the Apache httpclient4 provider (which is used by default for p2/Eclipse update) spontaneously disconnects when retrieving files.

An example is bug 344905. Another example for some of the environments associated with bug 422665.


The default filetransfer provider may be changed from httpclient4 to the JRE URLConnection provider by setting the following system property upon eclipse (or other app) startup:

org.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient4

For example, to set this property when starting Eclipse:

eclipse -vmargs -Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient4

This will disable the Apache HttpClient4 provider, and force using the JRE URLConnection provider.

In some proxy environments this will allow the downloads to succeed by using the URLConnection provider rather than the HttpClient4 provider.

Back to the top