java.lang.IllegalStateException: Expected to have a deferred type but got Object

Google Groups | Andrew Baptist | 5 months ago
  1. 0

    Problem analyzing a file using "stream" and "map" with IllegalArgumentException

    Google Groups | 5 months ago | Andrew Baptist
    java.lang.IllegalStateException: Expected to have a deferred type but got Object
  2. 0

    Cant open chest or anything.

    GitHub | 3 years ago | KirjoZzZ
    java.lang.IllegalStateException: Cannot call getOfflinePlayer(UUID) on main thread, this operation is blocking!
  3. 0

    Exception from sonarqube scan when using using kafka (or scala in general?)

    Stack Overflow | 2 years ago
    java.lang.IllegalStateException: Innerclass: colon and classSymbol: Stream are not the same.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    SonarQube is unable to analyze file: bridge method not marked as synthetic

    Stack Overflow | 2 years ago | Mircea D.
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.5:sonar (default-cli) on project [...] -gui-product: SonarQube is unable to analyze file : 'D:\projects\[...]gui\application\controller\ ConfigurationController.java'
  6. 0

    Cygnus install on localhost

    Stack Overflow | 2 years ago
    java.lang.IllegalStateException: Running HTTP Server found in source: http-source before I started one.Will not attempt to start.
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

    Expected to have a deferred type but got Object

    at com.google.common.base.Preconditions.checkState()
  2. Guava
    Preconditions.checkState
    1. com.google.common.base.Preconditions.checkState(Preconditions.java:145)[sonar-plugin-api-deps2147618160911810946jar:na]
    1 frame
  3. SonarQube Java :: Squid
    JavaSquid.scan
    1. org.sonar.java.model.AbstractTypedTree.setInferedType(AbstractTypedTree.java:60)[java-frontend-3.14.jar:na]
    2. org.sonar.java.resolve.TypeAndReferenceSolver.setInferedType(TypeAndReferenceSolver.java:232)[java-frontend-3.14.jar:na]
    3. org.sonar.java.resolve.TypeAndReferenceSolver.inferArgumentTypes(TypeAndReferenceSolver.java:654)[java-frontend-3.14.jar:na]
    4. org.sonar.java.resolve.TypeAndReferenceSolver.visitMethodInvocation(TypeAndReferenceSolver.java:223)[java-frontend-3.14.jar:na]
    5. org.sonar.java.model.expression.MethodInvocationTreeImpl.accept(MethodInvocationTreeImpl.java:82)[java-frontend-3.14.jar:na]
    6. org.sonar.plugins.java.api.tree.BaseTreeVisitor.scan(BaseTreeVisitor.java:43)[java-frontend-3.14.jar:na]
    7. org.sonar.plugins.java.api.tree.BaseTreeVisitor.visitLambdaExpression(BaseTreeVisitor.java:343)[java-frontend-3.14.jar:na]
    8. org.sonar.java.resolve.TypeAndReferenceSolver.visitLambdaExpression(TypeAndReferenceSolver.java:449)[java-frontend-3.14.jar:na]
    9. org.sonar.java.model.expression.LambdaExpressionTreeImpl.accept(LambdaExpressionTreeImpl.java:91)[java-frontend-3.14.jar:na]
    10. org.sonar.java.resolve.TypeAndReferenceSolver.setInferedType(TypeAndReferenceSolver.java:233)[java-frontend-3.14.jar:na]
    11. org.sonar.java.resolve.TypeAndReferenceSolver.inferArgumentTypes(TypeAndReferenceSolver.java:654)[java-frontend-3.14.jar:na]
    12. org.sonar.java.resolve.TypeAndReferenceSolver.visitMethodInvocation(TypeAndReferenceSolver.java:223)[java-frontend-3.14.jar:na]
    13. org.sonar.java.model.expression.MethodInvocationTreeImpl.accept(MethodInvocationTreeImpl.java:82)[java-frontend-3.14.jar:na]
    14. org.sonar.plugins.java.api.tree.BaseTreeVisitor.scan(BaseTreeVisitor.java:43)[java-frontend-3.14.jar:na]
    15. org.sonar.plugins.java.api.tree.BaseTreeVisitor.visitExpressionStatement(BaseTreeVisitor.java:101)[java-frontend-3.14.jar:na]
    16. org.sonar.java.resolve.TypeAndReferenceSolver.visitExpressionStatement(TypeAndReferenceSolver.java:628)[java-frontend-3.14.jar:na]
    17. org.sonar.java.model.statement.ExpressionStatementTreeImpl.accept(ExpressionStatementTreeImpl.java:65)[java-frontend-3.14.jar:na]
    18. org.sonar.plugins.java.api.tree.BaseTreeVisitor.scan(BaseTreeVisitor.java:43)[java-frontend-3.14.jar:na]
    19. org.sonar.plugins.java.api.tree.BaseTreeVisitor.scan(BaseTreeVisitor.java:37)[java-frontend-3.14.jar:na]
    20. org.sonar.plugins.java.api.tree.BaseTreeVisitor.visitBlock(BaseTreeVisitor.java:85)[java-frontend-3.14.jar:na]
    21. org.sonar.java.model.statement.BlockTreeImpl.accept(BlockTreeImpl.java:77)[java-frontend-3.14.jar:na]
    22. org.sonar.plugins.java.api.tree.BaseTreeVisitor.scan(BaseTreeVisitor.java:43)[java-frontend-3.14.jar:na]
    23. org.sonar.java.resolve.TypeAndReferenceSolver.visitMethod(TypeAndReferenceSolver.java:129)[java-frontend-3.14.jar:na]
    24. org.sonar.java.model.declaration.MethodTreeImpl.accept(MethodTreeImpl.java:218)[java-frontend-3.14.jar:na]
    25. org.sonar.plugins.java.api.tree.BaseTreeVisitor.scan(BaseTreeVisitor.java:43)[java-frontend-3.14.jar:na]
    26. org.sonar.plugins.java.api.tree.BaseTreeVisitor.scan(BaseTreeVisitor.java:37)[java-frontend-3.14.jar:na]
    27. org.sonar.java.resolve.TypeAndReferenceSolver.visitClass(TypeAndReferenceSolver.java:138)[java-frontend-3.14.jar:na]
    28. org.sonar.java.model.declaration.ClassTreeImpl.accept(ClassTreeImpl.java:198)[java-frontend-3.14.jar:na]
    29. org.sonar.plugins.java.api.tree.BaseTreeVisitor.scan(BaseTreeVisitor.java:43)[java-frontend-3.14.jar:na]
    30. org.sonar.plugins.java.api.tree.BaseTreeVisitor.scan(BaseTreeVisitor.java:37)[java-frontend-3.14.jar:na]
    31. org.sonar.plugins.java.api.tree.BaseTreeVisitor.visitCompilationUnit(BaseTreeVisitor.java:55)[java-frontend-3.14.jar:na]
    32. org.sonar.java.resolve.SemanticModel.createFor(SemanticModel.java:63)[java-frontend-3.14.jar:na]
    33. org.sonar.java.model.VisitorsBridge.visitFile(VisitorsBridge.java:112)[java-frontend-3.14.jar:na]
    34. org.sonar.java.ast.JavaAstScanner.simpleScan(JavaAstScanner.java:84)[java-frontend-3.14.jar:na]
    35. org.sonar.java.ast.JavaAstScanner.scan(JavaAstScanner.java:67)[java-frontend-3.14.jar:na]
    36. org.sonar.java.JavaSquid.scanTests(JavaSquid.java:149)[java-frontend-3.14.jar:na]
    37. org.sonar.java.JavaSquid.scan(JavaSquid.java:138)[java-frontend-3.14.jar:na]
    37 frames
  4. org.sonar.plugins
    JavaSquidSensor.analyse
    1. org.sonar.plugins.java.JavaSquidSensor.analyse(JavaSquidSensor.java:95)[sonar-java-plugin-3.14.jar:na]
    1 frame
  5. org.sonarsource.sonarlint
    StandaloneSonarLintEngineImpl.analyze
    1. org.sonarsource.sonarlint.core.analyzer.sensor.SensorsExecutor.executeSensor(SensorsExecutor.java:72)[org.sonarsource.sonarlint.core.sonarlint-core_2.3.2.jar:na]
    2. org.sonarsource.sonarlint.core.analyzer.sensor.SensorsExecutor.execute(SensorsExecutor.java:62)[org.sonarsource.sonarlint.core.sonarlint-core_2.3.2.jar:na]
    3. org.sonarsource.sonarlint.core.analyzer.sensor.PhaseExecutor.execute(PhaseExecutor.java:45)[org.sonarsource.sonarlint.core.sonarlint-core_2.3.2.jar:na]
    4. org.sonarsource.sonarlint.core.container.analysis.AnalysisContainer.doAfterStart(AnalysisContainer.java:137)[org.sonarsource.sonarlint.core.sonarlint-core_2.3.2.jar:na]
    5. org.sonarsource.sonarlint.core.container.ComponentContainer.startComponents(ComponentContainer.java:125)[org.sonarsource.sonarlint.core.sonarlint-core_2.3.2.jar:na]
    6. org.sonarsource.sonarlint.core.container.ComponentContainer.execute(ComponentContainer.java:110)[org.sonarsource.sonarlint.core.sonarlint-core_2.3.2.jar:na]
    7. org.sonarsource.sonarlint.core.container.standalone.StandaloneGlobalContainer.analyze(StandaloneGlobalContainer.java:117)[org.sonarsource.sonarlint.core.sonarlint-core_2.3.2.jar:na]
    8. org.sonarsource.sonarlint.core.StandaloneSonarLintEngineImpl.analyze(StandaloneSonarLintEngineImpl.java:93)[org.sonarsource.sonarlint.core.sonarlint-core_2.3.2.jar:na]
    9. org.sonarsource.sonarlint.core.StandaloneSonarLintEngineImpl.analyze(StandaloneSonarLintEngineImpl.java:83)[org.sonarsource.sonarlint.core.sonarlint-core_2.3.2.jar:na]
    9 frames
  6. org.sonarlint.eclipse
    AnalyzeProjectJob$1.run
    1. org.sonarlint.eclipse.core.internal.jobs.StandaloneSonarLintClientFacade.startAnalysis(StandaloneSonarLintClientFacade.java:58)[org.sonarlint.eclipse.core_2.1.0.20160603-1122-RELEASE.jar:na]
    2. org.sonarlint.eclipse.core.internal.jobs.AnalyzeProjectJob$1.run(AnalyzeProjectJob.java:377)[org.sonarlint.eclipse.core_2.1.0.20160603-1122-RELEASE.jar:na]
    2 frames