0

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

SonarQube 5.3。声纳跑者 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 上的插件列表(升级前):(从扩展/插件目录打印列表)

<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>

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

4

0 回答 0