1

在 Jenkins 构建中,这是我们拥有的堆栈:

[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.6:sonar (default-cli) on project gwt-parent: Fail to execute request [code=500, url=http://forge.mipih.net/sonar/batch/issues?key=fr.pgih.socle%3Agwt-parent]: Fail to download [http://forge.mipih.net/sonar/batch/issues?key=fr.pgih.socle%3Agwt-parent]. Response code: 500 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.6:sonar (default-cli) on project gwt-parent: Fail to execute request [code=500, url=http://forge.mipih.net/sonar/batch/issues?key=fr.pgih.socle%3Agwt-parent]
   [snip]
   ... 19 more
Caused by: java.lang.IllegalStateException: Fail to execute request [code=500, url=http://forge.mipih.net/sonar/batch/issues?key=fr.pgih.socle%3Agwt-parent]
    at org.sonar.batch.bootstrap.ServerClient.handleHttpException(ServerClient.java:139)
    at org.sonar.batch.repository.DefaultServerIssuesLoader.load(DefaultServerIssuesLoader.java:49)
  [snip]
    ... 22 more
Caused by: org.sonar.api.utils.HttpDownloader$HttpException: Fail to download [http://forge.mipih.net/sonar/batch/issues?key=fr.pgih.socle%3Agwt-parent]. Response code: 500
    at org.sonar.api.utils.HttpDownloader$BaseHttpDownloader$HttpInputSupplier.getInput(HttpDownloader.java:305)
  [snip]

在服务器上

2015.08.31 12:56:55 ERROR web[o.s.s.w.WebServiceEngine] Fail to process request http://forge.mipih.net/sonar/batch/issues?key=fr.pgih.socle%3Agwt-parent
java.lang.NullPointerException: null
        at org.sonar.batch.protocol.input.BatchInput$ServerIssue$Builder.setModuleKey(BatchInput.java:1451) ~[sonar-batch-protocol-5.1.1.jar:na]
        at org.sonar.server.batch.IssuesAction.handleIssue(IssuesAction.java:96) ~[sonar-server-5.1.1.jar:na]
        at org.sonar.server.batch.IssuesAction.handle(IssuesAction.java:87) ~[sonar-server-5.1.1.jar:na]
        at org.sonar.server.ws.WebServiceEngine.execute(WebServiceEngine.java:84) ~[sonar-server-5.1.1.jar:na]
        at sun.reflect.GeneratedMethodAccessor170.invoke(Unknown Source) ~[na:na]
        [snip]

但事实上,这个 URL 可以从我的浏览器访问。这是它的服务:

{"errors":[{"msg":""}]}

你知道它可能来自哪里吗?

以防万一,仅供参考,SonarQube 5.1.1 正在通过官方 sonarqube 和 mysql 图像运行。

我从 5.1.2 爬取了更新日志,但没有发现明显相关的问题。这是一个已知的问题?

非常感谢你的帮助。

4

1 回答 1

0

看起来您正面临此处报告的相同问题,至少它是完全相同的堆栈跟踪,自 5.1 以来已修复。

唯一可能发生此错误的情况是您正在运行的 Jenkins 作业正在尝试分析已删除的模块。由于分析一个模块有点奇怪,您可能正在分析一个曾经是一个项目的模块。然后修复将更新您的 Jenkins 工作以分析新项目。

于 2015-09-03T10:34:37.173 回答