Neo4j查询报错:Unable to load NODE with id 或者 Neo.ClientError.Statement.EntityNotFound
2017-09-06 00:00
519 查看
出现这个错误的原因可能是节点损坏,如果在数据库进行更新或插入操作时强制kill掉了数据库进程,则极有可能损坏一些节点。
解决方案有两个思路:
一是使用neo4j-core api来直接操作数据库文件,依次遍历所有节点,找到损坏的节点,删除后重新建立节点和关系,这个方法要求使用者对数据库的数据结构和api要了解;
第二种方法是直接删除节点和关系,也就是放弃损坏的节点,可以使用Michael Hunger大神写的数据库copy工具store-utils来处理。这个工具在copy数据库的时候会忽略掉损坏的节点并删除相应的关系,比较方便。
如果数据量比较大而且损坏的节点比较少,推荐使用这个方法
解决方案有两个思路:
一是使用neo4j-core api来直接操作数据库文件,依次遍历所有节点,找到损坏的节点,删除后重新建立节点和关系,这个方法要求使用者对数据库的数据结构和api要了解;
第二种方法是直接删除节点和关系,也就是放弃损坏的节点,可以使用Michael Hunger大神写的数据库copy工具store-utils来处理。这个工具在copy数据库的时候会忽略掉损坏的节点并删除相应的关系,比较方便。
如果数据量比较大而且损坏的节点比较少,推荐使用这个方法
相关文章推荐
- 关于 EntityNotFoundException: Unable to find Person with id 11
- [JPA] javax.persistence.EntityNotFoundException: Unable to find XXXX with id 0
- [JPA] javax.persistence.EntityNotFoundException: Unable to find XXXX with id 0 问题原因
- [JPA] javax.persistence.EntityNotFoundException: Unable to find com.duona.base.bean.Business with id
- [JPA] javax.persistence.EntityNotFoundException: Unable to find XXXX with id 0 问题原因
- Flask and uWSGI - unable to load app 0 (mountpoint='') (callable not found or import error)
- The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid
- [JPA错误]javax.persistence.EntityNotFoundException: Unable to find xxx
- 解决办法: Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found.
- Error:Plugin with id 'com.github.dcendents.android-maven' not found.
- Unable to find a team with the given Team ID或者Failed to code sign的问题解决
- 配置Mysql Cluster时出错Unable to connect with connect string: nodeid=0,localhost:1186问题的解决
- [JPA错误]javax.persistence.EntityNotFoundException: Unable to find xxx
- 错误:Unable to load library 'xxx': Native library (win32-x86/xxx.dll) not found in resource p
- 解决UnsatisfiedLinkError: Unable to load library:Native library not found in resource path
- Solving “javax.naming.NameNotFoundException: Unable to resolve ‘jdbc.SOAAppUserDataSource’ “ with Oracle SOA Suite 11g Adapter S
- 配置Mysql Cluster时出错Unable to connect with connect string: nodeid=0,localhost:1186问题的解决
- Error:Unable to make the module:***, related gradle configuration was not found. Please, re-import the Gradle project and try again.
- An App ID with identifier is not available.Please enter a different string. 或者这样的,fail to code sign
- monogame Unable to load DLL 'openal32.dll': The specified module could not be found