1

我使用 Scala-Neo4j 包装器在 Scala 中尝试了一个简单的 Cypher 查询,如下所示

val article_index = getNodeIndex("article").get
val query = "start n=node:article_index('article_id:*') return n"
val t = query.execute.asCC[article]("n")
println(t.next())

代码正在编译,没有任何错误。但是,当我运行它时,我收到以下错误

Exception in thread "main" java.lang.NoSuchMethodError: org.neo4j.cypher.ExecutionEngine.<init>(Lorg/neo4j/graphdb/GraphDatabaseService;)V
    at org.neo4j.scala.Cypher$class.engine(Cypher.scala:71)
    at dum.User_node$.engine(User_node.scala:38)
    at org.neo4j.scala.Cypher$$anon$1.execute(Cypher.scala:74)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)

我哪里做错了?

4

0 回答 0