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

Migration issue to SQ 4.4 when the quality profile used to analyze the last version of a project has been removed before the migration

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.4
    • Fix Version/s: 4.5
    • Component/s: None
    • Labels:
      None

      Description

      In such case the following exception occurs when analyzing this project for the first time after the migration to SQ 4.4 :

      ERROR: Error during Sonar runner execution
      
      org.sonar.runner.impl.RunnerException: Unable to execute Sonar
      
              at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:91)
      
              at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75)
      
              at java.security.AccessController.doPrivileged(Native Method)
      
              at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69)
      
              at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)
      
              at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102)
      
              at org.sonar.runner.api.Runner.execute(Runner.java:100)
      
              at org.sonar.runner.Main.executeTask(Main.java:70)
      
              at org.sonar.runner.Main.execute(Main.java:59)
      
              at org.sonar.runner.Main.main(Main.java:53)
      
      Caused by: org.sonar.api.utils.SonarException: Fail to decorate 'org.sonar.api.resources.Project@14b2db7[id=66537,key=com.xxx.xxx:xxx.public,qualifier=TRK]'
      
              at org.sonar.batch.phases.DecoratorsExecutor.executeDecorator(DecoratorsExecutor.java:99)
      
             at org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:82)
      
              at org.sonar.batch.phases.DecoratorsExecutor.execute(DecoratorsExecutor.java:66)
      
              at org.sonar.batch.phases.PhaseExecutor.execute(PhaseExecutor.java:123)
      
              at org.sonar.batch.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:217)
      
              at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92)
      
              at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)
      
              at org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.java:217)
      
              at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:212)
      
              at org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:205)
      
              at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92)
      
              at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)
      
              at org.sonar.batch.scan.ScanTask.scan(ScanTask.java:64)
      
              at org.sonar.batch.scan.ScanTask.execute(ScanTask.java:51)
      
              at org.sonar.batch.bootstrap.TaskContainer.doAfterStart(TaskContainer.java:110)
      
              at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92)
      
              at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)
      
              at org.sonar.batch.bootstrap.BootstrapContainer.executeTask(BootstrapContainer.java:185)
      
              at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:95)
      
              at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:67)
      
              at org.sonar.runner.batch.IsolatedLauncher.execute(IsolatedLauncher.java:48)
      
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      
              at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      
              at java.lang.reflect.Method.invoke(Unknown Source)
      
              at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:87)
      
              ... 9 more
      
      Caused by: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 6
      
              at com.google.gson.JsonParser.parse(JsonParser.java:65)
      
              at com.google.gson.JsonParser.parse(JsonParser.java:45)
      
              at org.sonar.batch.rule.UsedQProfiles.fromJson(UsedQProfiles.java:55)
      
              at org.sonar.batch.rule.QProfileEventsDecorator.decorate(QProfileEventsDecorator.java:81)
      
              at org.sonar.batch.phases.DecoratorsExecutor.executeDecorator(DecoratorsExecutor.java:91)
      
              ... 34 more
      
      Caused by: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 6
      
              at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505)
      
              at com.google.gson.stream.JsonReader.checkLenient(JsonReader.java:1386)
      
              at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:531)
      
              at com.google.gson.stream.JsonReader.peek(JsonReader.java:414)
      
              at com.google.gson.JsonParser.parse(JsonParser.java:60)
      
              ... 38 more
      

        Attachments

          Activity

            People

            Assignee:
            simon.brandhof Simon Brandhof (Inactive)
            Reporter:
            freddy.mallet Freddy Mallet (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: