SonarQube 6.2计算引擎NullPointerException

时间:2017-12-06 18:39:33

标签: sonarqube sonarqube-ops

我的SonarQube服务器上有一个项目在过去几天内开始失败(可能是因为使用升级中心升级了一些插件和/或使用Python配置文件?)。我关闭了Python配置文件并重新启动了服务器,但是当项目扫描上传到服务器时,ce.log文件包含以下内容(其他项目仍能正常工作):

2017.12.06 10:24:02 INFO  ce[AWAtEf8ZpSfG1LhTt-eQ][o.s.s.c.t.CeWorkerCallableImpl] Execute task | project=mypackage:myproject | type=REPORT | id=AWAtEf8ZpSfG1LhTt-eQ
2017.12.06 10:24:04 ERROR ce[AWAtEf8ZpSfG1LhTt-eQ][o.s.s.c.t.CeWorkerCallableImpl] Failed to execute task AWAtEf8ZpSfG1LhTt-eQ
java.lang.NullPointerException: null
        at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:210)
        at com.google.common.base.Splitter.splitToList(Splitter.java:416)
        at org.sonar.server.computation.task.projectanalysis.filemove.FileMoveDetectionStep.getFile(FileMoveDetectionStep.java:239)
        at org.sonar.server.computation.task.projectanalysis.filemove.FileMoveDetectionStep.computeScoreMatrix(FileMoveDetectionStep.java:208)
        at org.sonar.server.computation.task.projectanalysis.filemove.FileMoveDetectionStep.execute(FileMoveDetectionStep.java:127)
        at org.sonar.server.computation.task.step.ComputationStepExecutor.executeSteps(ComputationStepExecutor.java:64)
        at org.sonar.server.computation.task.step.ComputationStepExecutor.execute(ComputationStepExecutor.java:52)
        at org.sonar.server.computation.task.projectanalysis.taskprocessor.ReportTaskProcessor.process(ReportTaskProcessor.java:75)
        at org.sonar.server.computation.taskprocessor.CeWorkerCallableImpl.executeTask(CeWorkerCallableImpl.java:84)
        at org.sonar.server.computation.taskprocessor.CeWorkerCallableImpl.call(CeWorkerCallableImpl.java:57)
        at org.sonar.server.computation.taskprocessor.CeWorkerCallableImpl.call(CeWorkerCallableImpl.java:35)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
2017.12.06 10:24:04 ERROR ce[AWAtEf8ZpSfG1LhTt-eQ][o.s.s.c.t.CeWorkerCallableImpl] Executed task | project=oracle.weblogic.lifecycle:wls-deploy | type=REPORT | id=AWAtEf8ZpSfG1LhTt-eQ | time=1423ms

任何线索?

1 个答案:

答案 0 :(得分:1)

此错误已在6.3版中修复(请参阅https://jira.sonarsource.com/browse/SONAR-8835https://groups.google.com/forum/#!topic/sonarqube/MKlBDdMZJRk)。

请注意,强烈建议使用长期支持版本,在撰写本文时为6.7。它可以防止像你面对的那样面对恼人的错误。