Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-5834

Class cast exception using web service with bind varables

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 13.0, 12.3.1
    • 11.1.2
    • Query Engine
    • None
    • 3

      I am using a restful web service, which works fine if literal values are used to constrain it. However, when I use bind variables, it gives me a traceback:

      java.lang.ClassCastException: org.teiid.query.sql.lang.ImmutableCompareCriteria cannot be cast to org.teiid.query.sql.lang.AbstractSetCriteria
      at org.teiid.query.processor.relational.DependentCriteriaProcessor.prepareCriteria(DependentCriteriaProcessor.java:352)
      at org.teiid.query.processor.relational.DependentProcedureCriteriaProcessor.prepareNextCommand(DependentProcedureCriteriaProcessor.java:60)
      at org.teiid.query.processor.relational.DependentProcedureExecutionNode.prepareNextCommand(DependentProcedureExecutionNode.java:88)
      at org.teiid.query.processor.relational.PlanExecutionNode.open(PlanExecutionNode.java:79)
      at org.teiid.query.processor.relational.DependentProcedureExecutionNode.open(DependentProcedureExecutionNode.java:108)
      at org.teiid.query.processor.relational.RelationalNode.open(RelationalNode.java:250)
      at org.teiid.query.processor.relational.RelationalNode.open(RelationalNode.java:250)
      at org.teiid.query.processor.relational.JoinStrategy.openRight(JoinStrategy.java:101)
      at org.teiid.query.processor.relational.JoinNode.nextBatchDirectInternal(JoinNode.java:256)
      at org.teiid.query.processor.relational.JoinNode.nextBatchDirect(JoinNode.java:200)
      at org.teiid.query.processor.relational.RelationalNode.nextBatch(RelationalNode.java:277)
      at org.teiid.query.processor.relational.ProjectNode.nextBatchDirect(ProjectNode.java:146)
      at org.teiid.query.processor.relational.RelationalNode.nextBatch(RelationalNode.java:277)
      at org.teiid.query.processor.relational.RelationalPlan.nextBatch(RelationalPlan.java:141)
      at org.teiid.query.processor.QueryProcessor.nextBatchDirect(QueryProcessor.java:148)
      at org.teiid.query.processor.QueryProcessor.nextBatch(QueryProcessor.java:111)
      at org.teiid.query.processor.BatchCollector.collectTuples(BatchCollector.java:160)
      at org.teiid.query.processor.BatchCollector.collectTuples(BatchCollector.java:142)
      at org.teiid.dqp.internal.process.RequestWorkItem.processMore(RequestWorkItem.java:492)
      at org.teiid.dqp.internal.process.RequestWorkItem.process(RequestWorkItem.java:362)
      ... 8 more

      The SQL is:
      <not shown for internal security reasons – used a dependent join to a web service using an 'in' operator>,

              rhn-engineering-shawkins Steven Hawkins
              mike.higgins@certara.com Mike Higgins (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: