Skip to main content
Jump to: navigation, search

Difference between revisions of "Disabling Apache Httpclient45"

(update how to disable Apache Httpclient since release of Eclipse Kepler (4.3))
Line 1: Line 1:
Under some conditions, it seems that the Apache httpclient provider (which is used for p2/Eclipse update) spontaneously disconnects when retrieving files.  An example is [https://bugs.eclipse.org/bugs/show_bug.cgi?id=344905 bug 344905].  We're not currently sure if this is some problem with the JRE, or with Apache HttpClient, but in either case, it is possible to disable the HttpClient provider and have ECF use the JRE URLConnection-based provider instead.  This is accomplished by setting this System property:
+
Under some conditions, it seems that the Apache httpclient4 provider (which is used by default for p2/Eclipse update) spontaneously disconnects when retrieving files.   
  
<pre>
+
An example is [https://bugs.eclipse.org/bugs/show_bug.cgi?id=344905 bug 344905].  Another example for some of the environments associated with [https://bugs.eclipse.org/bugs/show_bug.cgi?id=422665 bug 422665].
org.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient
+
</pre>
+
  
For example, to set this property when starting Eclipse:
 
  
<pre>
+
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:
eclipse -vmargs -Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient
+
</pre>
+
 
+
This will disable the Apache HttpClient provider, and force using the JRE URLConnection provider.
+
  
Since release of Eclipse Kepler (4.3), the Apache HttpClient provider was renamed and disabling the HttpClient provider is accomplished by setting this System property:
 
 
<pre>
 
<pre>
 
org.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient4
 
org.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient4
 
</pre>
 
</pre>
  
or by setting this property when starting Eclipse:
+
For example, to set this property when starting Eclipse:
  
 
<pre>
 
<pre>
 
eclipse -vmargs -Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient4
 
eclipse -vmargs -Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient4
 
</pre>
 
</pre>
 +
 +
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.

Revision as of 12:00, 9 April 2018

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.

Copyright © Eclipse Foundation, Inc. All Rights Reserved.