【发布时间】:2014-06-21 12:34:56
【问题描述】:
我正在尝试设置一个使用 Spring-Neo4j 和 Neo4j 但无法解决依赖问题的 Java 项目。我正在使用 maven 进行依赖管理,并尝试了 Spring、Spring Neo4j 和 Neo4j 的几个版本组合。
春天:3.2.6.RELEASE
spring-data-neo4j:3.0.0.RELEASE
neo4j:2.0.1
application-context.xml 文件
<neo4j:config storeDirectory="data/graph.db" />
错误:
Caused by: org.neo4j.kernel.impl.storemigration.UpgradeNotAllowedByConfigurationException: Failed to start Neo4j with an older data store version. To enable automatic upgrade, please set configuration parameter "allow_store_upgrade=true"
at org.neo4j.kernel.impl.storemigration.ConfigMapUpgradeConfiguration.checkConfigurationAllowsAutomaticUpgrade(ConfigMapUpgradeConfiguration.java:39)
at org.neo4j.kernel.impl.storemigration.StoreUpgrader.attemptUpgrade(StoreUpgrader.java:71)
at org.neo4j.kernel.impl.nioneo.store.StoreFactory.tryToUpgradeStores(StoreFactory.java:144)
at org.neo4j.kernel.impl.nioneo.store.StoreFactory.newNeoStore(StoreFactory.java:119)
at org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource.start(NeoStoreXaDataSource.java:323)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:503)
... 64 more
我在neo4j.properties 文件中启用了allow_store_upgrade=true。
【问题讨论】:
-
您确定数据存储在升级前已经用旧版本彻底关闭了吗?
标签: spring neo4j spring-data-neo4j