java.lang.NoSuchMethodError: org.sonar.api.resources.File.fromIOFile(Ljava/io/File;Lorg/sonar/api/resources/Project;)Lorg/sonar/api/resources/File;

GitHub | joanfon | 8 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

    Not compatible with Sonar 6.0

    GitHub | 8 months ago | joanfon
    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 org.sonar.plugins.objectivec.ObjectiveCSquidSensor.saveViolations()
    2. org.sonar.plugins
      ObjectiveCSquidSensor.analyse
      1. org.sonar.plugins.objectivec.ObjectiveCSquidSensor.saveViolations(ObjectiveCSquidSensor.java:146)
      2. org.sonar.plugins.objectivec.ObjectiveCSquidSensor.save(ObjectiveCSquidSensor.java:118)
      3. org.sonar.plugins.objectivec.ObjectiveCSquidSensor.analyse(ObjectiveCSquidSensor.java:97)
      3 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.executeTask
      1. org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:118)
      1 frame
    11. org.sonarsource.scanner
      BatchIsolatedLauncher.execute
      1. org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:62)
      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. org.sonarsource.scanner
      IsolatedLauncherProxy.invoke
      1. org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
      1 frame
    14. com.sun.proxy
      $Proxy0.execute
      1. com.sun.proxy.$Proxy0.execute(Unknown Source)
      1 frame
    15. org.sonarsource.scanner
      Main.main
      1. org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:233)
      2. org.sonarsource.scanner.api.EmbeddedScanner.runAnalysis(EmbeddedScanner.java:151)
      3. org.sonarsource.scanner.cli.Main.runAnalysis(Main.java:110)
      4. org.sonarsource.scanner.cli.Main.execute(Main.java:74)
      5. org.sonarsource.scanner.cli.Main.main(Main.java:61)
      5 frames