Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-2909

Throw ClassCastException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Bug
    • 3.6.2
    • None
    • driver, server
    • None
    • - TinkerGraph Version: 3.6.2
      - Operating system: macOS 13.2.1
      - API/Driver: Java

    Description

      I first randomly create a graph. Then when I run the following query: `g.V().in('el1').as('x').V().both('el0','el1').inE('el1').outV().where(within('x'))` is thrown with an exception. I think this query is syntactically correct, but I keep triggering this kind of problem. I generate the query based on the rule which can be refered from: https://stackoverflow.com/questions/48067834/gremlin-intersection-operation. Following this instruction, I think it's allowed to generate this kind of queries.

      Expected behavior:
      No exception should be expected to throw. Or futher messages or prompts should be thrown.

      Actual behavior:
      A `java.util.concurrent.ExecutionException` is thrown. And I'm not really sure whether this problem should happen so I report this.
      ```
      java.util.concurrent.ExecutionException: org.apache.tinkerpop.gremlin.driver.exception.ResponseException: org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerVertex cannot be cast to java.util.Collection
      ```

      Attachments

        Activity

          People

            Unassigned Unassigned
            zeyangzhuang Zeyang Zhuang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: