Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.0
-
Component/s: None
-
Labels:None
-
Environment:EGit 0.9.1
-
Number of attachments :
Description
Current mechanism uses java.net.ProxySelector and java.net.Authenticator to transfer proxy settings from Eclipse ProxyService to sonar-ws-client.
And it might interfere with EGit as was reported by Freddy Mallet :
2011-03-30 11:24:30,567 [Worker-35] ERROR org.eclipse.core.runtime - Unable to configure proxy for sonar-ws-client java.lang.NullPointerException: null at org.eclipse.core.internal.net.ProxyManager.tryGetURI(ProxyManager.java:330) ~[org.eclipse.core.net_1.2.100.I20100511-0800.jar:na] at org.eclipse.core.internal.net.ProxyManager.getProxyDataForHost(ProxyManager.java:307) ~[org.eclipse.core.net_1.2.100.I20100511-0800.jar:na] at org.eclipse.core.internal.net.ProxyManager.getProxyDataForHost(ProxyManager.java:372) ~[org.eclipse.core.net_1.2.100.I20100511-0800.jar:na] at org.eclipse.egit.ui.EclipseProxySelector.select(EclipseProxySelector.java:45) ~[na:na] at org.sonar.wsclient.WSClientFactory.configureProxy(WSClientFactory.java:76) [org.sonar.ide.eclipse.wsclient_1.1.0.201103281425.jar:na] at org.sonar.wsclient.WSClientFactory.create(WSClientFactory.java:52) [org.sonar.ide.eclipse.wsclient_1.1.0.201103281425.jar:na]
So we should modify current implementation and use Eclipse ProxyService directly.