org.sonar.squidbridge.api.AnalysisException: SonarQube is unable to analyze file : 'C:\ws\sonar-cli\Test\src\test\Test.java'

Google Groups | Unknown author | 3 months ago
  1. 0

    Analyzing a small class with one method causes java.lang.IllegalStateException: At least 4 values were expected on the stack!

    Google Groups | 3 months ago | Unknown author
    org.sonar.squidbridge.api.AnalysisException: SonarQube is unable to analyze file : 'C:\ws\sonar-cli\Test\src\test\Test.java'
  2. 0

    Analyzing a small class with one method causes java.lang.IllegalStateException: At least 4 values were expected on the stack!

    Google Groups | 3 months ago | Unknown author
    org.sonar.squidbridge.api.AnalysisException: SonarQube is unable to analyze file : 'C:\ws\sonar-cli\Test\src\test\Test.java'
  3. 0

    Java plugin - SonarQube Add Custom Rule

    Stack Overflow | 1 year ago | Shruti
    java.lang.IllegalStateException: At least one issue expected
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Unexpected remainder on the operand stack: -1

    GitHub | 4 months ago | orange-buffalo
    java.lang.IllegalStateException: Unexpected remainder on the operand stack: -1

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      At least 4 values were expected on the stack!

      at org.sonar.java.se.ProgramState.peekValues()
    2. org.sonar.java
      UnclosedResourcesCheck$PreStatementVisitor.visitMethodInvocation
      1. org.sonar.java.se.ProgramState.peekValues(ProgramState.java:144)
      2. org.sonar.java.se.checks.UnclosedResourcesCheck$PreStatementVisitor.closeArguments(UnclosedResourcesCheck.java:296)
      3. org.sonar.java.se.checks.UnclosedResourcesCheck$PreStatementVisitor.visitMethodInvocation(UnclosedResourcesCheck.java:269)
      3 frames
    3. SonarQube Java :: Squid
      MethodInvocationTreeImpl.accept
      1. org.sonar.java.model.expression.MethodInvocationTreeImpl.accept(MethodInvocationTreeImpl.java:82)
      1 frame
    4. org.sonar.java
      ExplodedGraphWalker.visitMethod
      1. org.sonar.java.se.checks.UnclosedResourcesCheck.checkPreStatement(UnclosedResourcesCheck.java:78)
      2. org.sonar.java.se.CheckerDispatcher.executeCheckPreStatement(CheckerDispatcher.java:48)
      3. org.sonar.java.se.ExplodedGraphWalker.visit(ExplodedGraphWalker.java:345)
      4. org.sonar.java.se.ExplodedGraphWalker.execute(ExplodedGraphWalker.java:188)
      5. org.sonar.java.se.ExplodedGraphWalker.visitMethod(ExplodedGraphWalker.java:152)
      5 frames
    5. SonarQube Java :: Squid
      MethodTreeImpl.accept
      1. org.sonar.java.model.declaration.MethodTreeImpl.accept(MethodTreeImpl.java:218)
      1 frame
    6. org.sonar.java
      SymbolicExecutionVisitor.visitNode
      1. org.sonar.java.se.SymbolicExecutionVisitor.visitNode(SymbolicExecutionVisitor.java:49)
      1 frame
    7. SonarQube Java :: Squid
      JavaSquid.scan
      1. org.sonar.java.ast.visitors.SubscriptionVisitor.visit(SubscriptionVisitor.java:95)
      2. org.sonar.java.ast.visitors.SubscriptionVisitor.visitChildren(SubscriptionVisitor.java:120)
      3. org.sonar.java.ast.visitors.SubscriptionVisitor.visit(SubscriptionVisitor.java:97)
      4. org.sonar.java.ast.visitors.SubscriptionVisitor.visitChildren(SubscriptionVisitor.java:120)
      5. org.sonar.java.ast.visitors.SubscriptionVisitor.visit(SubscriptionVisitor.java:97)
      6. org.sonar.java.ast.visitors.SubscriptionVisitor.scanTree(SubscriptionVisitor.java:78)
      7. org.sonar.java.ast.visitors.SubscriptionVisitor.scanFile(SubscriptionVisitor.java:64)
      8. org.sonar.java.model.VisitorsBridge.visitFile(VisitorsBridge.java:120)
      9. org.sonar.java.ast.JavaAstScanner.simpleScan(JavaAstScanner.java:84)
      10. org.sonar.java.ast.JavaAstScanner.scan(JavaAstScanner.java:67)
      11. org.sonar.java.JavaSquid.scanSources(JavaSquid.java:133)
      12. org.sonar.java.JavaSquid.scan(JavaSquid.java:126)
      12 frames
    8. org.sonar.plugins
      JavaSquidSensor.execute
      1. org.sonar.plugins.java.JavaSquidSensor.execute(JavaSquidSensor.java:93)
      1 frame
    9. org.sonar.scanner
      ModuleScanContainer.doAfterStart
      1. org.sonar.scanner.sensor.SensorWrapper.analyse(SensorWrapper.java:53)
      2. org.sonar.scanner.phases.SensorsExecutor.executeSensor(SensorsExecutor.java:57)
      3. org.sonar.scanner.phases.SensorsExecutor.execute(SensorsExecutor.java:49)
      4. org.sonar.scanner.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:78)
      5. org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:184)
      5 frames
    10. 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
    11. 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
    12. 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
    13. 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
    14. 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
    15. org.sonar.scanner
      GlobalContainer.executeTask
      1. org.sonar.scanner.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:115)
      1 frame
    16. SonarQube
      Batch.executeTask
      1. org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:118)
      1 frame
    17. org.sonarsource.scanner
      BatchIsolatedLauncher.execute
      1. org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:62)
      1 frame
    18. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    19. org.sonarsource.scanner
      IsolatedLauncherProxy.invoke
      1. org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
      1 frame
    20. com.sun.proxy
      $Proxy0.execute
      1. com.sun.proxy.$Proxy0.execute(Unknown Source)
      1 frame
    21. org.sonarsource.scanner
      Main.main
      1. org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:244)
      2. org.sonarsource.scanner.api.EmbeddedScanner.runAnalysis(EmbeddedScanner.java:154)
      3. org.sonarsource.scanner.cli.Main.runAnalysis(Main.java:110)
      4. org.sonarsource.scanner.cli.Main.execute(Main.java:72)
      5. org.sonarsource.scanner.cli.Main.main(Main.java:60)
      5 frames