无法在neo4j中保存节点,两个节点显示相同的节点id
我在neo4j中保存用户时遇到以下提到的错误。 neo4j-2.1.5 SDN-3.2.2 而且多个节点显示相同的节点id无法在neo4j中保存节点,两个节点显示相同的节点id,neo4j,spring-data-neo4j,Neo4j,Spring Data Neo4j,我在neo4j中保存用户时遇到以下提到的错误。 neo4j-2.1.5 SDN-3.2.2 而且多个节点显示相同的节点id org.springframework.dao.InvalidDataAccessResourceUsageException: Error executing statement match (n) where id(n)={nodeId} set n:`User`:`_User`; nested exception is org.springframework.dao.
org.springframework.dao.InvalidDataAccessResourceUsageException: Error executing statement match (n) where id(n)={nodeId} set n:`User`:`_User`; nested exception is org.springframework.dao.InvalidDataAccessResourceUsageException: Error executing statement match (n) where id(n)={nodeId} set n:`User`:`_User`; nested exception is java.lang.IllegalStateException: Node 3 has been deleted
at org.springframework.data.neo4j.support.query.CypherQueryEngineImpl.query(CypherQueryEngineImpl.java:61) ~[spring-data-neo4j-3.2.2.RELEASE.jar:na]
at org.springframework.data.neo4j.support.typerepresentation.LabelBasedStrategyCypherHelper.setLabelsOnNode(LabelBasedStrategyCypherHelper.java:51) ~[spring-data-neo4j-3.2.2.RELEASE.jar:na]
问题是什么?你能尝试更新到3.3.0吗?嗨,Michael,大多数情况下节点创建在neo4j中工作正常,但在neo4j中保存节点时很少出现上述错误。我有两个节点User和UserHobby。如上图所示,node id 10对于User和UserHobby node都是相同的,因为从neo4j读取关系时,我正在将node转换回User和UserHobby,我得到类型转换错误。node-id对于两个节点不能相同。