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

Misleading stacktrace is generated on functional errors in Compute Engine

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: 6.6-M3, 6.6
    • Component/s: Compute Engine
    • Labels:

      Description

      When a task of the compute engine is failing because of a functional check (quality profile not found, inconsistency found in the scanner report, etc.), a stacktrace is generated whereas only a MessageException is expected :

      2017.04.26 11:05:16 INFO  ce[AVupgecdaEQcJAG0Moep][o.s.s.c.t.CeWorkerCallableImpl] Execute task | project=key-gnNVGXNrJwNUyfAuleynbmeWqpGLgRBqGTYczugKMflgTtwRTnGezJFHssrOxCKsepYZafMwUsuEeAKxWRcYgpPxquXdcdvzmCGaYkvkTtJEtrUZFMzMXhEvOqmJVUTbTlxpwZOsjhHCmJVSiMIrQPOrsOGtkxTKTEozJaFFAmWilxXLTYAyKFQfPDVYlKemumznQIZf | type=REPORT | id=AVupgecdaEQcJAG0Moep | submitter=admin
      2017.04.26 11:05:16 ERROR ce[AVupgecdaEQcJAG0Moep][o.s.s.c.t.p.a.p.PostProjectAnalysisTasksExecutor] Execution of task class org.sonar.server.computation.task.projectanalysis.webhook.WebhookPostTask failed
      java.lang.IllegalStateException: Holder has not been initialized yet
      	at com.google.common.base.Preconditions.checkState(Preconditions.java:173)
      	at org.sonar.server.computation.task.projectanalysis.component.TreeRootHolderImpl.checkInitialized(TreeRootHolderImpl.java:100)
      	at org.sonar.server.computation.task.projectanalysis.component.TreeRootHolderImpl.getRoot(TreeRootHolderImpl.java:51)
      	at org.sonar.server.computation.task.projectanalysis.webhook.WebhookPostTask.finished(WebhookPostTask.java:59)
      	at org.sonar.server.computation.task.projectanalysis.api.posttask.PostProjectAnalysisTasksExecutor.executeTask(PostProjectAnalysisTasksExecutor.java:106)
      	at org.sonar.server.computation.task.projectanalysis.api.posttask.PostProjectAnalysisTasksExecutor.finished(PostProjectAnalysisTasksExecutor.java:100)
      	at org.sonar.server.computation.task.step.ComputationStepExecutor.executeListener(ComputationStepExecutor.java:71)
      	at org.sonar.server.computation.task.step.ComputationStepExecutor.execute(ComputationStepExecutor.java:56)
      	at org.sonar.server.computation.task.projectanalysis.taskprocessor.ReportTaskProcessor.process(ReportTaskProcessor.java:75)
      	at org.sonar.server.computation.taskprocessor.CeWorkerCallableImpl.executeTask(CeWorkerCallableImpl.java:85)
      	at org.sonar.server.computation.taskprocessor.CeWorkerCallableImpl.call(CeWorkerCallableImpl.java:58)
      	at org.sonar.server.computation.taskprocessor.CeWorkerCallableImpl.call(CeWorkerCallableImpl.java:36)
      	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.04.26 11:05:16 ERROR ce[AVupgecdaEQcJAG0Moep][o.s.s.c.t.CeWorkerCallableImpl] Failed to execute task AVupgecdaEQcJAG0Moep
      

        Attachments

          Activity

            People

            Assignee:
            sebastien.lesaint Sebastien Lesaint
            Reporter:
            julien.lancelot Julien Lancelot
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: