无法将声纳 Eclipse 插件连接到声纳服务器
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18956746/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Unable to connect Sonar Eclipse Plugin to Sonar Server
提问by Doc Davluz
I have installed the latest version on the Sonar Eclipse Plugin on an Eclipse Juno 3.8. I am desperatly trying to connect the plugin to our running instance of Sonar. I'm behind a NTLM v2 Proxy. Hereunder, details of my configuration and my attempts.
我已经在 Eclipse Juno 3.8 上的 Sonar Eclipse 插件上安装了最新版本。我拼命地试图将插件连接到我们正在运行的声纳实例。我支持 NTLM v2 代理。以下是我的配置和尝试的详细信息。
Versions of products :
产品版本:
- Eclipse 3.8,
- Sonar Eclipse Plugin (Java Analyzer & m2e Connector) 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).
- 日食 3.8,
- 声纳 Eclipse 插件(Java 分析器和 m2e 连接器)3.2.0.20130627-1142-RELEASE,
- SonarQube Server 3.7(
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,
- direct without http_proxy : success (but unable to use other Eclipse feature accessing Internet like the Marketplace),
- native (with or without http_proxy) : failure,
- manual (with or without http_proxy): failure.
- 直接使用 http_proxy :失败,
- direct without http_proxy :成功(但无法使用其他 Eclipse 功能访问 Internet,如 Marketplace),
- 本机(有或没有 http_proxy):失败,
- 手动(有或没有 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.
不知道要测试什么。
采纳答案by Doc Davluz
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/256561and is to clear SOCKS proxy settings.
解决方案来自https://stackoverflow.com/a/6459816/256561,是清除SOCKS代理设置。