【问题标题】:Neo4J fails building and throws following errorNeo4J 构建失败并引发以下错误
【发布时间】:2016-12-02 14:23:03
【问题描述】:

我已经成功运行我的 JAR 很长时间了,它构建了一个 Neo4J 图表。今天突然间我收到以下错误。我需要帮助来理解以下异常。谢谢!

java.lang.NullPointerException
        at org.neo4j.index.impl.lucene.legacy.IndexType.queryForGet(IndexType.java:449)
        at org.neo4j.index.impl.lucene.legacy.IndexType$1.get(IndexType.java:66)
        at org.neo4j.index.impl.lucene.legacy.LuceneLegacyIndex.get(LuceneLegacyIndex.java:202)
        at org.neo4j.kernel.impl.api.StateHandlingStatementOperations.nodeLegacyIndexGet(StateHandlingStatementOperations.java:1416)
        at org.neo4j.kernel.impl.api.OperationsFacade.nodeLegacyIndexGet(OperationsFacade.java:1146)
        at org.neo4j.kernel.impl.coreapi.LegacyIndexProxy$Type$1.get(LegacyIndexProxy.java:68)
        at org.neo4j.kernel.impl.coreapi.LegacyIndexProxy.internalGet(LegacyIndexProxy.java:293)
        at org.neo4j.kernel.impl.coreapi.LegacyIndexProxy.get(LegacyIndexProxy.java:282)

【问题讨论】:

    标签: java neo4j nullpointerexception lucene


    【解决方案1】:

    我解决了这个问题。实际上,Neo4J 从中提取数据的数据库有几个空记录,这阻止了 lucene 对记录进行索引。我使用的是 Neo4J 社区版本,它在单个实例上构建节点。因此节点没有进一步构建。我只是把数据放在那些记录中,然后错误就消失了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-10-24
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多