首页 > 解决方案 > Neo4j 索引产生错误:运行查询时参考值未在偏移量 0 处初始化

问题描述

目前我需要对节点“A”的节点(名称和默认值)的属性实现索引。该节点“A”是少数节点“B”、“C”、“D”、“E”、“F”的父节点。在 java 模型中,“B”、“C”、“D”、“E”、“F”是节点“A”的扩展。所以问题是在我实现名称索引并默认为节点“A”之后。我突然收到这样的错误:

2018-11-05 10:21:27.522 ERROR 3132 --- [io-8443-exec-11] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.neo4j.ogm.exception.CypherException: Error executing Cypher "Neo.DatabaseError.Statement.ExecutionFailed"; Code: Neo.DatabaseError.Statement.ExecutionFailed; Description: Reference value not initialised at offset 0 in 
PrimitiveExecutionContext {
    SlotConfiguration(longs=3, refs=1, slots=Map(  label@1528 -> RefSlot(0,true,Any),   b@1458 -> LongSlot(1,false,Relationship),   a@1448 -> LongSlot(2,false,Node),   c@1462 -> LongSlot(0,false,Node)))
    LongSlot(0,false,Node)         '  c@1462' = Long(1771)
    LongSlot(1,false,Relationship) '  b@1458' = Long(5286)
    LongSlot(2,false,Node)         '  a@1448' = Long(1770)
    RefSlot(0,true,Any)            '  label@1528' = null
}
] with root cause

知道这个错误是什么吗?我尝试搜索但没有运气。到目前为止,我只知道 graphId 1528 有一些为空的东西,但我不知道是哪一个。

注意: - 我使用的是 Neo4j 企业版。DB 版本是 3.4.6 - A、B、C、D、E、F 节点未在错误中表示,因为我不知道哪个是哪个。但是模型的一般结构是这样的

谢谢

标签: springneo4jspring-data-neo4j

解决方案


推荐阅读