SonarQube投资组合计算失败

时间:2019-02-27 08:51:02

标签: sonarqube

自从SonarQube 7.6(从7.4版本)升级以来,投资组合后台任务一直失败,但出现以下异常。任何想法如何解决问题?试图重新扫描似乎有效的项目,但现在看来只是改变了项目处理的顺序,所以最终我回到了第一个失败的项目。

org.sonar.ce.task.projectanalysis.component.VisitException: Visit failed for Component {key=PortProj,type=PROJECT_VIEW}  located Port(type=VIEW)
    at org.sonar.ce.task.projectanalysis.component.VisitException.rethrowOrWrap(VisitException.java:44)
    at org.sonar.ce.task.projectanalysis.component.PathAwareCrawler.visit(PathAwareCrawler.java:52)
    at org.sonar.ce.task.projectanalysis.component.PathAwareCrawler.visitChildren(PathAwareCrawler.java:87)
    at org.sonar.ce.task.projectanalysis.component.PathAwareCrawler.visitImpl(PathAwareCrawler.java:70)
    at org.sonar.ce.task.projectanalysis.component.PathAwareCrawler.visit(PathAwareCrawler.java:50)
    at com.A.B.C.D.B.A.execute(Unknown Source)
    at org.sonar.ce.task.step.ComputationStepExecutor.executeStep(ComputationStepExecutor.java:81)
    at org.sonar.ce.task.step.ComputationStepExecutor.executeSteps(ComputationStepExecutor.java:72)
    at org.sonar.ce.task.step.ComputationStepExecutor.execute(ComputationStepExecutor.java:59)
    at com.A.B.C.D.E.A.A.A(Unknown Source)
    at com.A.B.C.D.E.A.D.A(Unknown Source)
    at com.A.B.C.G.A.B(Unknown Source)
    at com.A.B.C.G.A.process(Unknown Source)
    at org.sonar.ce.taskprocessor.CeWorkerImpl$ExecuteTask.executeTask(CeWorkerImpl.java:207)
    at org.sonar.ce.taskprocessor.CeWorkerImpl$ExecuteTask.run(CeWorkerImpl.java:189)
    at org.sonar.ce.taskprocessor.CeWorkerImpl.findAndProcessTask(CeWorkerImpl.java:156)
    at org.sonar.ce.taskprocessor.CeWorkerImpl$TrackRunningState.get(CeWorkerImpl.java:131)
    at org.sonar.ce.taskprocessor.CeWorkerImpl.call(CeWorkerImpl.java:83)
    at org.sonar.ce.taskprocessor.CeWorkerImpl.call(CeWorkerImpl.java:51)
    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:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IllegalStateException: value can not be converted to level because current value type is a NO_VALUE
    at org.sonar.ce.task.projectanalysis.measure.Measure.checkValueType(Measure.java:307)
    at org.sonar.ce.task.projectanalysis.measure.Measure.getLevelValue(Measure.java:290)
    at com.A.B.C.D.B.A$_A.initialize(Unknown Source)
    at org.sonar.ce.task.projectanalysis.formula.FormulaExecutorComponentVisitor.processLeaf(FormulaExecutorComponentVisitor.java:148)
    at org.sonar.ce.task.projectanalysis.formula.FormulaExecutorComponentVisitor.process(FormulaExecutorComponentVisitor.java:125)
    at org.sonar.ce.task.projectanalysis.formula.FormulaExecutorComponentVisitor.visitProjectView(FormulaExecutorComponentVisitor.java:120)
    at org.sonar.ce.task.projectanalysis.component.PathAwareCrawler.visitNode(PathAwareCrawler.java:111)
    at org.sonar.ce.task.projectanalysis.component.PathAwareCrawler.visitImpl(PathAwareCrawler.java:73)
    at org.sonar.ce.task.projectanalysis.component.PathAwareCrawler.visit(PathAwareCrawler.java:50)
    ... 25 more

1 个答案:

答案 0 :(得分:1)

需要重新扫描项目以消除错误。它似乎对我不起作用,但是当我最终删除了我知道没有被重新扫描的几个项目时,我认为它工作正常……