简体   繁体   English

无法将Sonar Eclipse插件连接到Sonar Server

[英]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 : 产品版本:

  • Eclipse 3.8, Eclipse 3.8,
  • Sonar Eclipse Plugin (Java Analyzer & m2e Connector) 3.2.0.20130627-1142-RELEASE, Sonar Eclipse插件(Java分析器和m2e连接器)3.2.0.20130627-1142-RELEASE,
  • SonarQube Server 3.7 (running on http://source01:9000 , in the LAN, not behind the proxy, direct connection possible). SonarQube Server 3.7(在LAN中的http://source01:9000上运行,不在代理后面,可以直接连接)。

Trying to access with the following proxy configurations with an without http_proxy variable in the configuration: 尝试使用以下代理配置(在配置中不带http_proxy变量)进行访问:

  • direct with http_proxy : failure, 直接使用http_proxy:失败,
  • direct without http_proxy : success (but unable to use other Eclipse feature accessing Internet like the Marketplace), 没有http_proxy的直接命令:成功(但无法使用其他Eclipse功能(如Marketplace)访问Internet),
  • native (with or without http_proxy) : failure, 本机(带有或不带有http_proxy):失败,
  • manual (with or without http_proxy): failure. 手册(有无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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM