Sonar Runner没有开始

时间:2012-08-12 17:19:48

标签: sonarqube

我正在尝试使用java 1.7.0_05在我的Windows 7 64位操作系统中配置Sonar 3.2。

当我启动Sonar runner-1.4时,我得到了这个异常

Exception in thread "main" org.sonar.batch.bootstrapper.BootstrapException: org.sonar.batch.bootstrapper.BootstrapException: Fail to download the file: http://localhost:9000/batch/hibernate-entitymanager-3.4.0.GA.jar
        at org.sonar.batch.bootstrapper.Bootstrapper.downloadBatchFiles(Bootstrapper.java:164)
        at org.sonar.batch.bootstrapper.Bootstrapper.createClassLoader(Bootstrapper.java:87)
        at org.sonar.runner.Runner.createClassLoader(Runner.java:176)
        at org.sonar.runner.Runner.execute(Runner.java:84)
        at org.sonar.runner.Main.main(Main.java:67)
Caused by: org.sonar.batch.bootstrapper.BootstrapException: Fail to download the file: http://localhost:9000/batch/hibernate-entitymanager-3.4.0.GA.jar
        at org.sonar.batch.bootstrapper.Bootstrapper.remoteContentToFile(Bootstrapper.java:113)
        at org.sonar.batch.bootstrapper.Bootstrapper.downloadBatchFiles(Bootstrapper.java:159)
        ... 4 more
Caused by: java.net.SocketTimeoutException: Read timed out
        at java.net.SocketInputStream.socketRead0(Native Method)
        at java.net.SocketInputStream.read(SocketInputStream.java:150)
        at java.net.SocketInputStream.read(SocketInputStream.java:121)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:275)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
        at sun.net.www.http.ChunkedInputStream.fastRead(ChunkedInputStream.java:239)
        at sun.net.www.http.ChunkedInputStream.read(ChunkedInputStream.java:680)
        at java.io.FilterInputStream.read(FilterInputStream.java:133)
        at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3035)
        at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3029)
        at org.sonar.batch.bootstrapper.BootstrapperIOUtils.copyLarge(BootstrapperIOUtils.java:63)
        at org.sonar.batch.bootstrapper.Bootstrapper.remoteContentToFile(Bootstrapper.java:109)

任何解决此问题的解决方案都表示赞赏。

我可以在浏览器中从http://localhost:9000/batch/hibernate-entitymanager-3.4.0.GA.jar下载hibernate-entitymanager-3.4.0.GA.jar。

2 个答案:

答案 0 :(得分:1)

我在您的配置详细信息中看到您正在使用Java 7 VM运行Sonar:您能否尝试使用Java 6?

这可能不是根本原因,但我知道我们有用户报告了Java 7的一些问题。

答案 1 :(得分:0)

这是我在没有管理权限的情况下执行跑步者时遇到的错误。

如果您从DOS提示符启动跑步者,请尝试右键单击“Windows Command Processor”并选择“以管理员身份运行。”