SonarQube分析在teamcity上取得了成功,但Sonar的工作失败了

时间:2016-03-05 21:15:56

标签: java sonarqube html-lists sonar-runner sonarqube-ops

所有使用teamcity的SonarQube Runner插件的新项目都取得了成功(teamcity构建日志显示分析成功并将结果发布到Sonar),但是"后台任务"因为以上是Sonar的失败,但有以下异常,因此Sonar没有相关信息。 我们最近从SonarQube 4.x版本升级到5.3版本。所以,目前的规格是..

SonarQube 5.3。 SonarRunner 2.4。 Java Gradle项目有两个子模块。 SonarQube运行jre - 1.8.0_11(64位)。

< 更新:当我使用新数据库(在内存H2中)而不是现有数据库时,它工作正常。如果是这样,如何清理数据库或知道如何解决此问题?>

2016.02.22 16:25:05 ERROR [o.s.s.c.t.CeWorkerCallableImpl] Failed to execute task XXXX
java.lang.NullPointerException: null
    at org.sonar.server.computation.step.LoadDebtModelStep.toCharacteristic(LoadDebtModelStep.java:81) ~[sonar-server-5.3.jar:na]
    at org.sonar.server.computation.step.LoadDebtModelStep.feedDebtModel(LoadDebtModelStep.java:73) ~[sonar-server-5.3.jar:na]
    at org.sonar.server.computation.step.LoadDebtModelStep.execute(LoadDebtModelStep.java:57) ~[sonar-server-5.3.jar:na]
    at org.sonar.server.computation.step.ComputationStepExecutor.execute(ComputationStepExecutor.java:39) ~[sonar-server-5.3.jar:na]
    at org.sonar.server.computation.taskprocessor.report.ReportTaskProcessor.process(ReportTaskProcessor.java:72) ~[sonar-server-5.3.jar:na]
    at org.sonar.server.computation.taskprocessor.CeWorkerCallableImpl.executeTask(CeWorkerCallableImpl.java:81) [sonar-server-5.3.jar:na]
    at org.sonar.server.computation.taskprocessor.CeWorkerCallableImpl.call(CeWorkerCallableImpl.java:56) [sonar-server-5.3.jar:na]
    at org.sonar.server.computation.taskprocessor.CeWorkerCallableImpl.call(CeWorkerCallableImpl.java:35) [sonar-server-5.3.jar:na]
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) [na:1.7.0_15]
    at java.util.concurrent.FutureTask.run(Unknown Source) [na:1.7.0_15]
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [na:1.7.0_15]
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) [na:1.7.0_15]
    at java.util.concurrent.FutureTask.run(Unknown Source) [na:1.7.0_15]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source) [na:1.7.0_15]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [na:1.7.0_15]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.7.0_15]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.7.0_15]
    at java.lang.Thread.run(Unknown Source) [na:1.7.0_15]

<的更新 SonarQube 4.5.6上的插件列表(升级前): (从extensions / plugins目录打印列表)

<ol>
    <li>sonar-csharp-plugin-4.4.jar</li>
    <li>sonar-csharp-stylecop-plugin-2.1.jar</li>
    <li>sonar-dotnet-fxcop-plugin-2.1.jar</li>
    <li>sonar-dotnet-gallio-plugin-2.1.jar</li>
    <li>sonar-dotnet-gendarme-plugin-2.1.jar</li>
    <li>sonar-dotnet-ndeps-plugin-2.1.jar</li>
    <li>sonar-dotnet-plugin-2.1.jar</li>
    <li>sonar-findbugs-plugin-2.1.jar</li>
    <li>sonar-jacoco-plugin-2.1.jar</li>
    <li>sonar-java-plugin-2.1.jar</li>
    <li>sonar-scm-activity-plugin-1.7.jar</li>
    <li>sonar-scm-stats-plugin-0.3.1.jar</li>
    <li>sonar-squid-java-plugin-2.1.jar</li>
    <li>sonar-surefire-plugin-2.1.jar</li>
</ol>

SonarQube 5.3上的插件列表(之后)

<ol>
    <li>sonar-csharp-plugin-4.5.jar</li>
    <li>sonar-java-plugin-3.7.1.jar</li>
    <li>sonar-javascript-plugin-2.10.jar</li>
    <li>sonar-scm-git-plugin-1.1.jar</li>
    <li>sonar-scm-svn-plugin-1.2.jar</li>
    <li>sonar-web-plugin-2.4.jar</li>
</ol>

知道这是什么问题吗?这绝对是可怕的。

0 个答案:

没有答案