Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-11280

PostProjectAnalysisTasks API fails when consumed after a Billing error occured

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.3
    • Fix Version/s: 7.4
    • Component/s: Compute Engine
    • Labels:
    • Production Notes:
      None

      Description

      If a Billing exception is raised on a PR, the following error can occur:

      2018.09.18 10:45:05 ERROR ce[AWXr2rcJFozSdSzRWjVE][o.s.c.t.p.a.p.PostProjectAnalysisTasksExecutor] Execution of task class com.sonarsource.branch.pr.PrPostProjectAnalysisTask failed
      java.lang.IllegalStateException: Holder has not been initialized yet
              at com.google.common.base.Preconditions.checkState(Preconditions.java:173)
              at org.sonar.ce.task.projectanalysis.component.TreeRootHolderImpl.checkInitialized(TreeRootHolderImpl.java:104)
              at org.sonar.ce.task.projectanalysis.component.TreeRootHolderImpl.getRoot(TreeRootHolderImpl.java:50)
              at com.sonarsource.branch.pr.PrPostProjectAnalysisTask.createPrData(PrPostProjectAnalysisTask.java:68)
              at com.sonarsource.branch.pr.PrPostProjectAnalysisTask.lambda$finished$1(PrPostProjectAnalysisTask.java:61)
              at java.util.Optional.ifPresent(Optional.java:159)
              at com.sonarsource.branch.pr.PrPostProjectAnalysisTask.finished(PrPostProjectAnalysisTask.java:60)
              at org.sonar.ce.task.projectanalysis.api.posttask.PostProjectAnalysisTasksExecutor.executeTask(PostProjectAnalysisTasksExecutor.java:113)
              at org.sonar.ce.task.projectanalysis.api.posttask.PostProjectAnalysisTasksExecutor.finished(PostProjectAnalysisTasksExecutor.java:107)
              at org.sonar.ce.task.step.ComputationStepExecutor.executeListener(ComputationStepExecutor.java:76)
              at org.sonar.ce.task.step.ComputationStepExecutor.execute(ComputationStepExecutor.java:59)
              at org.sonar.ce.task.projectanalysis.taskprocessor.ReportTaskProcessor.process(ReportTaskProcessor.java:81)
              at org.sonar.ce.taskprocessor.CeWorkerImpl.executeTask(CeWorkerImpl.java:136)
              at org.sonar.ce.taskprocessor.CeWorkerImpl.findAndProcessTask(CeWorkerImpl.java:99)
              at org.sonar.ce.taskprocessor.CeWorkerImpl.withCustomizedThreadName(CeWorkerImpl.java:83)
              at org.sonar.ce.taskprocessor.CeWorkerImpl.call(CeWorkerImpl.java:75)
              at org.sonar.ce.taskprocessor.CeWorkerImpl.call(CeWorkerImpl.java:45)
              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)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sebastien.lesaint Sebastien Lesaint
              Reporter:
              sebastien.lesaint Sebastien Lesaint
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: