org.sonar.runner.impl.RunnerException: Unable to execute Sonar

GitHub | kcootedinh | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Exception after Upgrading from SQ 5.5 to 6.1

    GitHub | 4 months ago | philipooo
    java.lang.NoSuchMethodError: org.sonar.api.resources.File.fromIOFile(Ljava/io/File;Lorg/sonar/api/resources/Project;)Lorg/sonar/api/resources/File;

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.sonar.api.resources.File.fromIOFile(Ljava/io/File;Lorg/sonar/api/resources/Project;)Lorg/sonar/api/resources/File;

      at com.pablissimo.sonar.TsLintSensor.getFileFromIOFile()
    2. com.pablissimo.sonar
      TsLintSensor.analyse
      1. com.pablissimo.sonar.TsLintSensor.getFileFromIOFile(TsLintSensor.java:168)
      2. com.pablissimo.sonar.TsLintSensor.analyse(TsLintSensor.java:143)
      2 frames
    3. org.sonar.scanner
      ModuleScanContainer.doAfterStart
      1. org.sonar.scanner.phases.SensorsExecutor.executeSensor(SensorsExecutor.java:57)
      2. org.sonar.scanner.phases.SensorsExecutor.execute(SensorsExecutor.java:49)
      3. org.sonar.scanner.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:78)
      4. org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:184)
      4 frames
    4. org.sonar.core
      ComponentContainer.execute
      1. org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
      2. org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
      2 frames
    5. org.sonar.scanner
      ProjectScanContainer.doAfterStart
      1. org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:241)
      2. org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:236)
      3. org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:226)
      3 frames
    6. org.sonar.core
      ComponentContainer.execute
      1. org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
      2. org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
      2 frames
    7. org.sonar.scanner
      TaskContainer.doAfterStart
      1. org.sonar.scanner.task.ScanTask.execute(ScanTask.java:47)
      2. org.sonar.scanner.task.TaskContainer.doAfterStart(TaskContainer.java:86)
      2 frames
    8. org.sonar.core
      ComponentContainer.execute
      1. org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
      2. org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
      2 frames
    9. org.sonar.scanner
      GlobalContainer.executeTask
      1. org.sonar.scanner.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:115)
      1 frame
    10. SonarQube
      Batch.execute
      1. org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:118)
      2. org.sonar.batch.bootstrapper.Batch.execute(Batch.java:78)
      2 frames
    11. SonarQube Runner - Batch
      IsolatedLauncher.execute
      1. org.sonar.runner.batch.IsolatedLauncher.execute(IsolatedLauncher.java:48)
      1 frame
    12. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    13. SonarQube Runner
      BatchLauncher$1.run
      1. org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:87)
      2. org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75)
      2 frames
    14. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    15. SonarQube Runner
      Runner.execute
      1. org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69)
      2. org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)
      3. org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102)
      4. org.sonar.runner.api.Runner.execute(Runner.java:100)
      4 frames
    16. org.sonar.runner
      Main.main
      1. org.sonar.runner.Main.executeTask(Main.java:70)
      2. org.sonar.runner.Main.execute(Main.java:59)
      3. org.sonar.runner.Main.main(Main.java:53)
      3 frames