[qtp581715564-18] ERROR spark.http.matching.GeneralError - org.neo4j.driver.exceptions.ResultConsum

今天使用java连接neo4j执行查询的时候遇到了这个问题,报错如下:

[qtp581715564-18] ERROR spark.http.matching.GeneralError - 
org.neo4j.driver.exceptions.ResultConsumedException: Cannot access records on this result any more as the result has already been consumed or the query runner where the result is created has already been closed.

我的代码:

recordList = session.readTransaction(tx -> tx.run(cypher)).list();

意思是“无法再访问此结果上的记录,因为该结果已被使用,或者创建该结果的查询运行程序已关闭。”,最后在stackoverflow找到了答案

[qtp581715564-18] ERROR spark.http.matching.GeneralError - org.neo4j.driver.exceptions.ResultConsum_第1张图片

原出处:Neo4j Java driver 4.4 IN clause - Stack Overflow 

你可能感兴趣的:(spark,neo4j,大数据,java)