I have followed this guide when creating a Spring Data Neo4j application.
我在创建Spring Data Neo4j应用程序时遵循了这个指南。
I have included:
我有包括:
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-neo4j</artifactId>
<version>3.3.1.RELEASE</version>
</dependency>
In my pom.xml
在我pom.xml
When trying to start the server I get the following error:
在尝试启动服务器时,我得到以下错误:
"Starting Neo4j Server failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@' was successfully initialized, but failed to start."
“启动Neo4j服务器失败:组件”org.neo4j.server.database。“LifecycleManagingDatabase@”已成功初始化,但未能启动。
The message log says:
消息日志说:
"Error starting org.neo4j.kernel.EmbeddedGraphDatabase"
“错误org.neo4j.kernel.EmbeddedGraphDatabase开始”
I have read that the Spring Data Neo4j and the Neo4j server versions might not be compatible with each other.
我已经读过,Spring Data Neo4j和Neo4j服务器版本可能不兼容。
Question: How can I know which versions are compatible?
问:我如何知道哪些版本是兼容的?
Stacktrace:
加:
2015-07-09 13:03:56.231+0000 INFO [o.n.k.EmbeddedGraphDatabase]: Shutdown started
2015-07-09 13:03:56.244+0000 ERROR [o.n.s.d.LifecycleManagingDatabase]: Failed to start database.
java.lang.RuntimeException: Error starting org.neo4j.kernel.EmbeddedGraphDatabase, D:\neo4j
at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:335) ~[neo4j-desktop-2.2.3.jar:2.2.3]
at org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:59) ~[neo4j-desktop-2.2.3.jar:2.2.3]
at org.neo4j.server.database.LifecycleManagingDatabase$1.newGraphDatabase(LifecycleManagingDatabase.java:44) ~[neo4j-desktop-2.2.3.jar:2.2.3]
at org.neo4j.server.database.LifecycleManagingDatabase.start(LifecycleManagingDatabase.java:110) ~[neo4j-desktop-2.2.3.jar:2.2.3]
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:507) [neo4j-desktop-2.2.3.jar:2.2.3]
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:115) [neo4j-desktop-2.2.3.jar:2.2.3]
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:203) [neo4j-desktop-2.2.3.jar:2.2.3]
at org.neo4j.desktop.runtime.DatabaseActions.start(DatabaseActions.java:71) [neo4j-desktop-2.2.3.jar:2.2.3]
at org.neo4j.desktop.ui.StartDatabaseActionListener$1.run(StartDatabaseActionListener.java:61) [neo4j-desktop-2.2.3.jar:2.2.3]
at java.awt.event.InvocationEvent.dispatch(Unknown Source) [na:1.7.0_75]
at java.awt.EventQueue.dispatchEventImpl(Unknown Source) [na:1.7.0_75]
at java.awt.EventQueue.access$300(Unknown Source) [na:1.7.0_75]
at java.awt.EventQueue$3.run(Unknown Source) [na:1.7.0_75]
at java.awt.EventQueue$3.run(Unknown Source) [na:1.7.0_75]
at java.security.AccessController.doPrivileged(Native Method) [na:1.7.0_75]
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) [na:1.7.0_75]
at java.awt.EventQueue.dispatchEvent(Unknown Source) [na:1.7.0_75]
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [na:1.7.0_75]
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [na:1.7.0_75]
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [na:1.7.0_75]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [na:1.7.0_75]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [na:1.7.0_75]
at java.awt.EventDispatchThread.run(Unknown Source) [na:1.7.0_75]
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.transaction.state.DataSourceManager@5a7c7505' was successfully initialized, but failed to start. Please see attached cause exception.
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:513) [neo4j-desktop-2.2.3.jar:2.2.3]
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:115) [neo4j-desktop-2.2.3.jar:2.2.3]
at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:331) ~[neo4j-desktop-2.2.3.jar:2.2.3]
... 22 common frames omitted
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.NeoStoreDataSource@50f074ae' was successfully initialized, but failed to start. Please see attached cause exception.
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:513) [neo4j-desktop-2.2.3.jar:2.2.3]
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:115) [neo4j-desktop-2.2.3.jar:2.2.3]
at org.neo4j.kernel.impl.transaction.state.DataSourceManager.start(DataSourceManager.java:117) ~[neo4j-desktop-2.2.3.jar:2.2.3]
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:507) [neo4j-desktop-2.2.3.jar:2.2.3]
... 24 common frames omitted
Caused by: org.neo4j.kernel.impl.storemigration.StoreUpgrader$UpgradingStoreVersionNotFoundException: 'neostore.nodestore.db' does not contain a store version, please ensure that the original database was shut down in a clean state.
at org.neo4j.kernel.impl.storemigration.UpgradableDatabase.checkUpgradeable(UpgradableDatabase.java:86) ~[neo4j-desktop-2.2.3.jar:2.2.3]
at org.neo4j.kernel.impl.storemigration.StoreMigrator.needsMigration(StoreMigrator.java:158) ~[neo4j-desktop-2.2.3.jar:2.2.3]
at org.neo4j.kernel.impl.storemigration.StoreUpgrader.getParticipantsEagerToMigrate(StoreUpgrader.java:259) ~[neo4j-desktop-2.2.3.jar:2.2.3]
at org.neo4j.kernel.impl.storemigration.StoreUpgrader.migrateIfNeeded(StoreUpgrader.java:134) ~[neo4j-desktop-2.2.3.jar:2.2.3]
at org.neo4j.kernel.NeoStoreDataSource.upgradeStore(NeoStoreDataSource.java:564) ~[neo4j-desktop-2.2.3.jar:2.2.3]
at org.neo4j.kernel.NeoStoreDataSource.start(NeoStoreDataSource.java:460) ~[neo4j-desktop-2.2.3.jar:2.2.3]
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:507) [neo4j-desktop-2.2.3.jar:2.2.3]
... 27 common frames omitted
2015-07-09 13:03:56.244+0000 INFO [o.n.s.CommunityNeoServer]: Successfully shutdown Neo4j Server.
2 个解决方案
#1
0
I did solve the problem by closing the stream as stated by Michael Hunger (misunderstood what was meant by shutting down the spring app).
我确实解决了这个问题,因为Michael Hunger(误解了关闭spring应用程序的意思),关闭了这个流。
I.e.
即。
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("appContext.xml"); context.close();
ClassPathXmlApplicationContext上下文= new ClassPathXmlApplicationContext(“appContext.xml”);context.close();
#2
0
There is currently not a central list that shows Spring Data Neo4j compatibility with Neo4j versions. That would be very helpful though, as when incompatible versions are used SDN tends to throw strange exceptions, e.g. Can't move to Neo4j 2.2.0 and Spring Data Neo4j 3.3.0.RELEASE
目前没有一个*列表显示Spring数据与Neo4j版本的兼容性。这将是非常有用的,因为当使用不兼容的版本时,SDN往往会抛出奇怪的异常,例如,不能移动到Neo4j 2.2.0和Spring Data Neo4j 3.3.0.RELEASE。
#1
0
I did solve the problem by closing the stream as stated by Michael Hunger (misunderstood what was meant by shutting down the spring app).
我确实解决了这个问题,因为Michael Hunger(误解了关闭spring应用程序的意思),关闭了这个流。
I.e.
即。
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("appContext.xml"); context.close();
ClassPathXmlApplicationContext上下文= new ClassPathXmlApplicationContext(“appContext.xml”);context.close();
#2
0
There is currently not a central list that shows Spring Data Neo4j compatibility with Neo4j versions. That would be very helpful though, as when incompatible versions are used SDN tends to throw strange exceptions, e.g. Can't move to Neo4j 2.2.0 and Spring Data Neo4j 3.3.0.RELEASE
目前没有一个*列表显示Spring数据与Neo4j版本的兼容性。这将是非常有用的,因为当使用不兼容的版本时,SDN往往会抛出奇怪的异常,例如,不能移动到Neo4j 2.2.0和Spring Data Neo4j 3.3.0.RELEASE。