[英]Unable to connect Sonar Eclipse Plugin to Sonar Server
I have installed the latest version on the Sonar Eclipse Plugin on an Eclipse Juno 3.8. 我已经在Eclipse Juno 3.8的Sonar Eclipse插件上安装了最新版本。 I am desperatly trying to connect the plugin to our running instance of Sonar.
我拼命尝试将插件连接到我们正在运行的Sonar实例。 I'm behind a NTLM v2 Proxy.
我在使用NTLM v2代理。 Hereunder, details of my configuration and my attempts.
以下是我的配置和尝试的详细信息。
Versions of products : 产品版本:
http://source01:9000
, in the LAN, not behind the proxy, direct connection possible). http://source01:9000
上运行,不在代理后面,可以直接连接)。 Trying to access with the following proxy configurations with an without http_proxy variable in the configuration: 尝试使用以下代理配置(在配置中不带http_proxy变量)进行访问:
I systematically got org.apache.http.conn.ConnectTimeoutException in the logs (trying to access http://source01:9000/api/authentication/validate
which work in a browser). 我在日志中系统地获得了org.apache.http.conn.ConnectTimeoutException(试图访问在浏览器中工作的
http://source01:9000/api/authentication/validate
)。
No more idea on what to test. 没有更多关于测试什么的想法。
I have finally found the problem seeking for a different one (Tomcat WST server started but Eclipse was unable to connect to it and timed out). 我终于找到了寻找另一台服务器的问题(Tomcat WST服务器已启动,但是Eclipse无法连接到服务器并超时)。
The problem comes from a strange and unpredictable behavior of the SOCKS proxy parameter. 问题来自SOCKS代理参数的奇怪且不可预测的行为。
When SOCKS proxy is defined, in some undefined cases, both starting a WST server or connecting to a SonarQube server through the plugin fail, whereas other functions like plugin installs work like a charm. 定义SOCKS代理后,在某些未定义的情况下,启动WST服务器或通过插件连接到SonarQube服务器都会失败,而其他功能(如插件安装)会像超级按钮一样工作。
The solution came from https://stackoverflow.com/a/6459816/256561 and is to clear SOCKS proxy settings. 该解决方案来自https://stackoverflow.com/a/6459816/256561 ,目的是清除SOCKS代理设置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.