Gephi无法导入Neo4j数据

时间:2013-11-01 19:03:49

标签: java neo4j gephi

当我尝试将Neo4j数据库导入Gephi时,我收到了此消息:

  

org.neo4j.kernel.impl.storemigration.UpgradeNotAllowedByConfigurationException:无法使用较旧的数据存储版本启动Neo4j。要启用自动升级,请设置配置参数" allow_store_upgrade = true"       at org.neo4j.kernel.impl.storemigration.ConfigMapUpgradeConfiguration.checkConfigurationAllowsAutomaticUpgrade(ConfigMapUpgradeConfiguration.java:41)       在org.neo4j.kernel.impl.storemigration.StoreUpgrader.attemptUpgrade(StoreUpgrader.java:50)       在org.neo4j.kernel.impl.nioneo.store.NeoStore.tryToUpgradeStores(NeoStore.java:170)       在org.neo4j.kernel.impl.nioneo.store.NeoStore.checkVersion(NeoStore.java:137)       在org.neo4j.kernel.impl.nioneo.store.CommonAbstractStore。(CommonAbstractStore.java:104)       在org.neo4j.kernel.impl.nioneo.store.AbstractStore。(AbstractStore.java:120)       在org.neo4j.kernel.impl.nioneo.store.NeoStore。(NeoStore.java:78)       在org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource。(NeoStoreXaDataSource.java:165)       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)       at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)       at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)       at java.lang.reflect.Constructor.newInstance(Constructor.java:526)       at org.neo4j.kernel.impl.transaction.XaDataSourceManager.create(XaDataSourceManager.java:77)       at org.neo4j.kernel.impl.transaction.TxModule.registerDataSource(TxModule.java:152)   引发:org.neo4j.graphdb.TransactionFailureException:无法创建数据源[nioneodb],请参阅嵌套异常以查找错误原因       在org.neo4j.kernel.impl.transaction.TxModule.registerDataSource(TxModule.java:158)       在org.neo4j.kernel.GraphDbInstance.start(GraphDbInstance.java:105)       在org.neo4j.kernel.EmbeddedGraphDbImpl。(EmbeddedGraphDbImpl.java:190)       在org.neo4j.kernel.EmbeddedGraphDatabase。(EmbeddedGraphDatabase.java:80)       在org.neo4j.kernel.EmbeddedGraphDatabase。(EmbeddedGraphDatabase.java:64)       在org.gephi.desktop.neo4j.ui.util.Neo4jUtils.localDatabase(Neo4jUtils.java:43)       at org.gephi.desktop.neo4j.Neo4jMenuAction $ FullImportMenuAction.actionPerformed(Neo4jMenuAction.java:218)       在javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)       在javax.swing.AbstractButton $ Handler.actionPerformed(AbstractButton.java:2341)       在javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)       在javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)       在javax.swing.AbstractButton.doClick(AbstractButton.java:376)       在javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)       在javax.swing.plaf.basic.BasicMenuItemUI $ Handler.mouseReleased(BasicMenuItemUI.java:877)       在java.awt.Component.processMouseEvent(Component.java:6505)       在javax.swing.JComponent.processMouseEvent(JComponent.java:3320)       at java.awt.Component.processEvent(Component.java:6270)       at java.awt.Container.processEvent(Container.java:2229)       at java.awt.Component.dispatchEventImpl(Component.java:4861)       at java.awt.Container.dispatchEventImpl(Container.java:2287)       at java.awt.Component.dispatchEvent(Component.java:4687)       at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)       at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)       at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)       at java.awt.Container.dispatchEventImpl(Container.java:2273)       at java.awt.Window.dispatchEventImpl(Window.java:2719)       at java.awt.Component.dispatchEvent(Component.java:4687)       at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)       at java.awt.EventQueue.access $ 200(EventQueue.java:103)       at java.awt.EventQueue $ 3.run(EventQueue.java:694)       at java.awt.EventQueue $ 3.run(EventQueue.java:692)       at java.security.AccessController.doPrivileged(Native Method)       at java.security.ProtectionDomain $ 1.doIntersectionPrivilege(ProtectionDomain.java:76)       at java.security.ProtectionDomain $ 1.doIntersectionPrivilege(ProtectionDomain.java:87)       at java.awt.EventQueue $ 4.run(EventQueue.java:708)       at java.awt.EventQueue $ 4.run(EventQueue.java:706)       at java.security.AccessController.doPrivileged(Native Method)       at java.security.ProtectionDomain $ 1.doIntersectionPrivilege(ProtectionDomain.java:76)       at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)       在org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:158)   [catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)       at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)       at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)       at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)       at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)       at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

奇怪的是,配置参数" allow_store_upgrade = true"已经设置为true。 我使用的是neo4j-community-2.0.0-M06,Java版本是:

  

java版" 1.7.0_45"   Java(TM)SE运行时环境(版本1.7.0_45-b18)   Java HotSpot(TM)64位服务器VM(内置24.45-b08,混合模式)

我该怎么办? Java版本是最新的,所以Neo4j ......

1 个答案:

答案 0 :(得分:0)

Wes给了我一个线索,因为我已将Neo4j升级到2.0版本,我无法在Gephi中打开任何内容。