JavaAPI连接Neo4j报错"No dependency satisfies ...query.QueryExecutionEngine"
发布于 6 年前 作者 silencewinter 3179 次浏览 来自 问答

菜鸟一枚,请教大神,怎么解决? 代码如下: package com.tp.neo4j.java.examples;

import java.io.File; import org.neo4j.graphdb.GraphDatabaseService; import org.neo4j.graphdb.factory.GraphDatabaseFactory;

public class Neo4jJavaAPIDBOperation { public static void main(String[] args) { GraphDatabaseFactory dbFactory = new GraphDatabaseFactory(); File storeDir = new File(“E:/Program Files/neo4j-community-3.4.1/data/databases/TPNeo4jDB”); GraphDatabaseService db = dbFactory.newEmbeddedDatabase(storeDir); } }


报错如下:

Exception in thread “main” java.lang.RuntimeException: Error starting org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory, E:\Program Files\neo4j-community-3.4.1\data\databases\TPNeo4jDB at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:212) at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:125) at org.neo4j.graphdb.factory.GraphDatabaseFactory.newDatabase(GraphDatabaseFactory.java:137) at org.neo4j.graphdb.factory.GraphDatabaseFactory.newEmbeddedDatabase(GraphDatabaseFactory.java:130) at org.neo4j.graphdb.factory.GraphDatabaseFactory$1.newDatabase(GraphDatabaseFactory.java:107) at org.neo4j.graphdb.factory.GraphDatabaseBuilder.newGraphDatabase(GraphDatabaseBuilder.java:199) at org.neo4j.graphdb.factory.GraphDatabaseFactory.newEmbeddedDatabase(GraphDatabaseFactory.java:75) at com.tp.neo4j.java.examples.Neo4jJavaAPIDBOperation.main(Neo4jJavaAPIDBOperation.java:27) Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component ‘org.neo4j.bolt.v1.runtime.BoltFactoryImpl@51b279c9’ was successfully initialized, but failed to start. Please see the attached cause exception “No dependency satisfies type interface org.neo4j.kernel.impl.query.QueryExecutionEngine”. at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:466) at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107) at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:445) at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107) at org.neo4j.kernel.extension.KernelExtensions.start(KernelExtensions.java:84) at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:445) at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107) at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:208) … 7 more Caused by: org.neo4j.kernel.impl.util.UnsatisfiedDependencyException: No dependency satisfies type interface org.neo4j.kernel.impl.query.QueryExecutionEngine at org.neo4j.kernel.impl.util.Dependencies.resolveDependency(Dependencies.java:73) at org.neo4j.kernel.impl.util.Dependencies.resolveDependency(Dependencies.java:68) at org.neo4j.graphdb.DependencyResolver$Adapter.resolveDependency(DependencyResolver.java:130) at org.neo4j.bolt.v1.runtime.BoltFactoryImpl.start(BoltFactoryImpl.java:71) at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:445) … 14 more

4 回复

用的maven 下载的jar包?neo4j 3.4.1 用下面版本的jar包

<dependency> <groupId>org.neo4j</groupId> <artifactId>neo4j</artifactId> <version>3.4.0</version> </dependency>

@pangguoming 试过可以,多谢多谢

@pangguoming 我的neo4j是3.2.3 出现一样的问题。是因为版本的原因?

回到顶部