java.lang.NoSuchMethodError: com.google.common.io.Closeables.closeQuietly(Ljava/io/Closeable;)V

Stack Overflow | Tzrlk | 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

    How do I fix sonarqube guava version incompatibility (closeQuietly) in my project?

    Stack Overflow | 8 months ago | Tzrlk
    java.lang.NoSuchMethodError: com.google.common.io.Closeables.closeQuietly(Ljava/io/Closeable;)V

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      com.google.common.io.Closeables.closeQuietly(Ljava/io/Closeable;)V

      at org.sonar.java.resolve.BytecodeCompleter.loadClass()
    2. SonarQube Java :: Squid
      JavaSquid.scan
      1. org.sonar.java.resolve.BytecodeCompleter.loadClass(BytecodeCompleter.java:220)
      2. org.sonar.java.resolve.Symbols.<init>(Symbols.java:175)
      3. org.sonar.java.resolve.SemanticModel.createFor(SemanticModel.java:56)
      4. org.sonar.java.model.VisitorsBridge.visitFile(VisitorsBridge.java:112)
      5. org.sonar.java.ast.JavaAstScanner.simpleScan(JavaAstScanner.java:84)
      6. org.sonar.java.ast.JavaAstScanner.scan(JavaAstScanner.java:67)
      7. org.sonar.java.JavaSquid.scanSources(JavaSquid.java:136)
      8. org.sonar.java.JavaSquid.scan(JavaSquid.java:129)
      8 frames
    3. org.sonar.plugins
      JavaSquidSensor.analyse
      1. org.sonar.plugins.java.JavaSquidSensor.analyse(JavaSquidSensor.java:90)
      1 frame
    4. SonarQube
      ModuleScanContainer.doAfterStart
      1. org.sonar.batch.phases.SensorsExecutor.executeSensor(SensorsExecutor.java:58)
      2. org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:50)
      3. org.sonar.batch.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:83)
      4. org.sonar.batch.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:192)
      4 frames
    5. 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
    6. SonarQube
      ProjectScanContainer.doAfterStart
      1. org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.java:241)
      2. org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:236)
      3. org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:234)
      4. org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:226)
      4 frames
    7. 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
    8. org.sonar.batch
      TaskContainer.doAfterStart
      1. org.sonar.batch.task.ScanTask.execute(ScanTask.java:47)
      2. org.sonar.batch.task.TaskContainer.doAfterStart(TaskContainer.java:86)
      2 frames
    9. 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
    10. SonarQube
      Batch.executeTask
      1. org.sonar.batch.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:106)
      2. org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:119)
      2 frames
    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
      $Proxy74.execute
      1. com.sun.proxy.$Proxy74.execute(Unknown Source)
      1 frame
    15. org.sonarsource.scanner
      SonarQubeMojo.execute
      1. org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:240)
      2. org.sonarsource.scanner.api.EmbeddedScanner.runAnalysis(EmbeddedScanner.java:151)
      3. org.sonarsource.scanner.maven.bootstrap.ScannerBootstrapper.execute(ScannerBootstrapper.java:78)
      4. org.sonarsource.scanner.maven.SonarQubeMojo.execute(SonarQubeMojo.java:112)
      4 frames
    16. Maven Plugin
      DefaultBuildPluginManager.executeMojo
      1. org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
      1 frame