在 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 爬取了更新日志,但没有发现明显相关的问题。这是一个已知的问题?
非常感谢你的帮助。