java - 显示 http ://localhost:9000 can not be reached 的 Sonar 转轮

标签 java sonarqube sonar-runner

我在成功安装 sonarqube 和 sonar runner 后遇到了这个问题。 当我在项目/sonar-runner 中运行时,它显示错误。 任何人都可以帮忙吗?

ERROR: Sonar server 'http://localhost:9000' can not be reached
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
Total time: 0.109s
Final Memory: 0M/87M
INFO: ------------------------------------------------------------------------
ERROR: Error during Sonar runner execution
org.sonar.runner.kevinsawicki.HttpRequest$HttpRequestException: java.net.ConnectException: Connection refused at org.sonar.runner.kevinsawicki.HttpRequest.code(HttpRequest.java:1392)
at org.sonar.runner.kevinsawicki.HttpRequest.ok(HttpRequest.java:1417)
at org.sonar.runner.impl.ServerConnection.downloadString(ServerConnection.java:93) at org.sonar.runner.impl.ServerVersion.downloadVersion(ServerVersion.java:47)
at org.sonar.runner.impl.ServerVersion.version(ServerVersion.java:38)
at org.sonar.runner.impl.ServerVersion.is37Compatible(ServerVersion.java:58)
at org.sonar.runner.impl.JarDownloader.checkVersionAndDownload(JarDownloader.java:36) at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:71) at java.security.AccessController.doPrivileged(Native Method) at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69) at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50) at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102)
at org.sonar.runner.api.Runner.execute(Runner.java:100) at org.sonar.runner.Main.executeTask(Main.java:70)  at org.sonar.runner.Main.execute(Main.java:59)  at org.sonar.runner.Main.main(Main.java:53) Caused by: java.net.ConnectException: Connection refused
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:534) at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1548) at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1544) at java.security.AccessController.doPrivileged(Native Method) at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1542) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1193) at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:397) at org.sonar.runner.kevinsawicki.HttpRequest.code(HttpRequest.java:1390) ... 15 more

下面提到的 Sonar 日志是:

    --> Wrapper Started as Daemon
Launching a JVM...
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
  Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.

WrapperSimpleApp: Unable to locate the class org.sonar.application.App: java.lang.UnsupportedClassVersionError: org/sonar/application/App : Unsupported major.minor version 51.0

WrapperSimpleApp Usage:
  java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class} [app_arguments]

Where:
  app_class:      The fully qualified class name of the application to run.
  app_arguments:  The arguments that would normally be passed to the
                  application.

最佳答案

在我的例子中,我已经替换了 sonar.host.url= http://10.xxx.XX.30:9000

关于java - 显示 http ://localhost:9000 can not be reached 的 Sonar 转轮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32990475/

相关文章:

java - 可用帧大小和 Windows 管理器帧大小

eclipse - 如何按严重性(主要、次要、严重)对 SonarLint for Eclipse 3.2.0 结果进行分组?

java - 我可以在 Sonar 中使用 EclEmma 覆盖报告吗?

java - 与 Sonar 插件关联...组 ID 为空

c# - 使用 Simple Java Runner 的具有多个模块的 Sonar C# 项目

java - 错误 :error: '__ANDROID_API__' macro redefined [-Werror, -Wmacro-redefined] -Android Studio

java - 我如何在 Java 中实现这个 Python 片段?

java - 尝试执行 POST 时不允许使用 REST Java 方法

java - Sonar "useless assignment to local variable"解决方法?

sonarqube - 使用 jstestdriver 将 javascript xml junit 测试导入到 SONAR 失败