Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-772

Running JDBC driver integration test, ClastCastException occured in the JoinComponent

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.0.0.Final
    • None
    • Query
    • None
    • Hide

      Junit test: JcrDriverIntegrationTest.shouldBeAbleToExecuteSqlQueryUsingJoinToFindAllCarsUnderHybridU

      Show
      Junit test: JcrDriverIntegrationTest.shouldBeAbleToExecuteSqlQueryUsingJoinToFindAllCarsUnderHybridU

      Using the cars-system-view.xml to populate repository.

      Executed query:

      SELECT car.[car:maker], car.[car:model], car.[car:year], car.[car:msrp] FROM [car:Car] AS car JOIN [nt:unstructured] AS hybrid ON ISCHILDNODE(car,hybrid) WHERE NAME(hybrid) = 'Hybrid'

      produced exception:

      java.lang.ClassCastException: org.modeshape.graph.property.basic.BasicPath cannot be cast to org.modeshape.graph.Location
      at org.modeshape.graph.query.process.JoinComponent$7.evaluate(JoinComponent.java:360)
      at org.modeshape.graph.query.process.NestedLoopJoinComponent.execute(NestedLoopJoinComponent.java:68)
      at org.modeshape.graph.query.process.SelectComponent.execute(SelectComponent.java:119)
      at org.modeshape.graph.query.process.ProjectComponent.execute(ProjectComponent.java:48)
      at org.modeshape.graph.query.process.QueryProcessor.execute(QueryProcessor.java:93)
      at org.modeshape.graph.query.QueryEngine.execute(QueryEngine.java:111)
      at org.modeshape.jcr.RepositoryQueryManager$SelfContained.query(RepositoryQueryManager.java:361)
      at org.modeshape.jcr.JcrQueryManager$JcrQuery.execute(JcrQueryManager.java:385)
      at org.modeshape.jdbc.JcrStatement.execute(JcrStatement.java:436)
      at org.modeshape.jdbc.DriverTestUtil.execute(DriverTestUtil.java:114)
      at org.modeshape.jdbc.DriverTestUtil.execute(DriverTestUtil.java:103)
      at org.modeshape.jdbc.DriverTestUtil.executeTestAndPrint(DriverTestUtil.java:94)
      at org.modeshape.jdbc.JcrDriverIntegrationTest.shouldBeAbleToCreateAndExecuteSqlQueryUsingJoinToFindAllCarsUnderHybrid(JcrDriverIntegrationTest.java:387)

              rhauch Randall Hauch (Inactive)
              van.halbert Van Halbert (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: