3

我正在尝试将一个新项目添加到sonar. 运行 sonar runner 时,出现以下错误,谁能帮我解决这个问题。

sonar-runner

Runner configuration file: /opt/lampp/htdocs/typo3/sonar-runner-1/conf/sonar-
runner.properties
Project configuration file: /opt/lampp/htdocs/typo3/sonar-project.properties
Runner version: 2.0
Java version: 1.6.0_24, vendor: Sun Microsystems Inc.
OS name: "Linux", version: "2.6.38-8-generic", arch: "i386"
Default locale: "en_IN", source code encoding: "UTF-8"
Server: http://localhost:9000
Work directory: /opt/lampp/htdocs/typo3/.sonar
Total time: 1:00.153s
Final Memory: 0M/30M
Exception in thread "main" java.lang.IllegalStateException: Fail to request server 
version
    at org.sonar.runner.Bootstrapper.getServerVersion(Bootstrapper.java:73)
    at org.sonar.runner.Runner.checkSonarVersion(Runner.java:220)
    at org.sonar.runner.Runner.execute(Runner.java:15
at org.sonar.runner.Main.execute(Main.java:84)
at org.sonar.runner.Main.main(Main.java:56)
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read1(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.URLConnection.getContent(Unknown Source)
at org.sonar.runner.Bootstrapper.remoteContent(Bootstrapper.java:125)
at org.sonar.runner.Bootstrapper.getServerVersion(Bootstrapper.java:71)
... 4 more

XXXXXXXXX:/opt/lampp/htdocs/typo3$ `
4

2 回答 2

3

好的,我自己找到了修复程序,我的声纳在端口 9005 中工作,所以我设置了 url sonar.properties 文件。

于 2013-01-11T05:46:52.907 回答
2

消息“请求服务器失败”明确指出这与声纳服务器有关。要么它不可用(它可能已关闭),要么您的配置不正确。

于 2013-01-11T13:05:52.503 回答