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

Google Groups | Andrew Baptist | 8 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rp . Or join the community to write better ones.
  1. 0

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

    Google Groups | 8 months ago | Andrew Baptist
    java.lang.IllegalStateException: Expected to have a deferred type but got Object
  2. 0
    samebug tip
    Check if there is no nexus running. If not, delete sonatype-work/nexus/nexus.lock .
  3. 0

    flume-user | 1 year ago | beargan
    java.lang.IllegalStateException: begin() called when transaction is COMPLETED!
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    FLUME IllegalStateException: begin() called when transaction is OPEN

    Stack Overflow | 1 year ago | Farda arda
    org.apache.flume.EventDeliveryException: MySink - Failed to publish events. Exception: at com.XYZ.flume.maprdb.MySink.process(MySink.java:116)
  6. 0

    Hive on Spark编程入门指南 – 过往记忆

    iteblog.com | 10 months ago
    java.lang.IllegalStateException: RPC channel is closed.
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