2016-12-02 94 views
0

我一直在成功運行我的JAR很長時間,它構建了一個Neo4J圖。突然間,今天我收到以下錯誤。我需要幫助理解下面的例外情況。謝謝!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) 

回答

0

我解決了這個問題。實際上,Neo4J正在從中提取數據的數據庫有兩個空記錄,這些記錄阻止了lucene對記錄進行索引。我使用的Neo4J社區版本在單個實例上構建節點。因此節點沒有進一步構建。我只是把這些數據放在這些記錄中,錯誤消失了。