neo4j embedded:java.lang.UnsupportedOperationException:未安装任何查询引擎

时间:2017-09-04 13:46:15

标签: neo4j

当我尝试对嵌入式Neo4J实例执行查询时,我收到以下异常:

No query engine installed.
java.lang.UnsupportedOperationException: No query engine installed.
    at org.neo4j.kernel.impl.query.NoQueryEngine.noQueryEngine(NoQueryEngine.java:56)
    at org.neo4j.kernel.impl.query.NoQueryEngine.executeQuery(NoQueryEngine.java:33)
    at org.neo4j.kernel.impl.factory.ClassicCoreSPI.executeQuery(ClassicCoreSPI.java:77)
    at org.neo4j.kernel.impl.factory.GraphDatabaseFacade.execute(GraphDatabaseFacade.java:429)
    at org.neo4j.kernel.impl.factory.GraphDatabaseFacade.execute(GraphDatabaseFacade.java:412)
    at org.neo4j.kernel.impl.factory.GraphDatabaseFacade.execute(GraphDatabaseFacade.java:396)

包含以下依赖项:“org.neo4j”%“neo4j-cypher”%“3.1.3”

这是我的代码片段,我从测试中执行:

val graphDb = new GraphDatabaseFactory().newEmbeddedDatabase(new File(my_db_path))
graphDb.execute(my_query)

这是Neo4J部分的依赖树:

[info] Resolving jline#jline;2.14.4 ...
[info] Done updating.
...
[info]   |     
[info]   +-org.neo4j.driver:neo4j-java-driver:1.4.3
[info]   +-org.neo4j:neo4j-cypher:3.1.3 [S]
[info]   | +-net.sf.opencsv:opencsv:2.3
[info]   | +-org.neo4j:neo4j-codegen:3.1.3
[info]   | | +-org.apache.commons:commons-lang3:3.3.2
[info]   | | +-org.ow2.asm:asm:5.0.4
[info]   | | 
[info]   | +-org.neo4j:neo4j-cypher-compiler-2.3:2.3.9
[info]   | | +-com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:1.4.2
[info]   | | +-org.neo4j:neo4j-cypher-frontend-2.3:2.3.9
[info]   | | | +-org.apache.commons:commons-lang3:3.3.2
[info]   | | | +-org.parboiled:parboiled-scala_2.11:1.1.7
[info]   | | | | +-org.parboiled:parboiled-core:1.1.7
[info]   | | | | 
[info]   | | | +-org.scala-lang:scala-reflect:2.12.3 [S]
[info]   | | | 
[info]   | | +-org.parboiled:parboiled-scala_2.11:1.1.7
[info]   | | | +-org.parboiled:parboiled-core:1.1.7
[info]   | | | 
[info]   | | +-org.scala-lang:scala-reflect:2.12.3 [S]
[info]   | | 
[info]   | +-org.neo4j:neo4j-cypher-compiler-3.0:3.0.8
[info]   | | +-org.neo4j:neo4j-cypher-frontend-3.0:3.0.8
[info]   | | | +-org.apache.commons:commons-lang3:3.3.2
[info]   | | | +-org.parboiled:parboiled-scala_2.11:1.1.7
[info]   | | |   +-org.parboiled:parboiled-core:1.1.7
[info]   | | |   
[info]   | | +-org.parboiled:parboiled-scala_2.11:1.1.7
[info]   | |   +-org.parboiled:parboiled-core:1.1.7
[info]   | |   
[info]   | +-org.neo4j:neo4j-cypher-compiler-3.1:3.1.3
[info]   | | +-com.github.ben-manes.caffeine:caffeine:2.3.3
[info]   | | +-org.neo4j:neo4j-cypher-frontend-3.1:3.1.3
[info]   | | | +-org.apache.commons:commons-lang3:3.3.2
[info]   | | | +-org.parboiled:parboiled-scala_2.11:1.1.7
[info]   | | |   +-org.parboiled:parboiled-core:1.1.7
[info]   | | |   
[info]   | | +-org.parboiled:parboiled-scala_2.11:1.1.7
[info]   | |   +-org.parboiled:parboiled-core:1.1.7
[info]   | |   
[info]   | +-org.neo4j:neo4j-graph-algo:3.1.3
[info]   | | +-org.neo4j:neo4j-kernel:3.1.3
[info]   | |   +-org.neo4j:neo4j-collections:3.1.3
[info]   | |   | +-org.neo4j:neo4j-common:3.1.3
[info]   | |   | +-org.neo4j:neo4j-resource:3.1.3
[info]   | |   | 
[info]   | |   +-org.neo4j:neo4j-common:3.1.3
[info]   | |   +-org.neo4j:neo4j-csv:3.1.3
[info]   | |   | +-org.neo4j:neo4j-collections:3.1.3
[info]   | |   | | +-org.neo4j:neo4j-common:3.1.3
[info]   | |   | | +-org.neo4j:neo4j-resource:3.1.3
[info]   | |   | | 
[info]   | |   | +-org.neo4j:neo4j-primitive-collections:3.1.3
[info]   | |   |   +-org.neo4j:neo4j-common:3.1.3
[info]   | |   |   +-org.neo4j:neo4j-resource:3.1.3
[info]   | |   |   +-org.neo4j:neo4j-unsafe:3.1.3
[info]   | |   |   
[info]   | |   +-org.neo4j:neo4j-graphdb-api:3.1.3
[info]   | |   | +-org.neo4j:neo4j-collections:3.1.3
[info]   | |   | | +-org.neo4j:neo4j-common:3.1.3
[info]   | |   | | +-org.neo4j:neo4j-resource:3.1.3
[info]   | |   | | 
[info]   | |   | +-org.neo4j:neo4j-common:3.1.3
[info]   | |   | +-org.neo4j:neo4j-primitive-collections:3.1.3
[info]   | |   | | +-org.neo4j:neo4j-common:3.1.3
[info]   | |   | | +-org.neo4j:neo4j-resource:3.1.3
[info]   | |   | | +-org.neo4j:neo4j-unsafe:3.1.3
[info]   | |   | | 
[info]   | |   | +-org.neo4j:neo4j-resource:3.1.3
[info]   | |   | 
[info]   | |   +-org.neo4j:neo4j-io:3.1.3
[info]   | |   | +-org.apache.commons:commons-lang3:3.3.2
[info]   | |   | +-org.neo4j:neo4j-primitive-collections:3.1.3
[info]   | |   | | +-org.neo4j:neo4j-common:3.1.3
[info]   | |   | | +-org.neo4j:neo4j-resource:3.1.3
[info]   | |   | | +-org.neo4j:neo4j-unsafe:3.1.3
[info]   | |   | | 
[info]   | |   | +-org.neo4j:neo4j-unsafe:3.1.3
[info]   | |   | 
[info]   | |   +-org.neo4j:neo4j-logging:3.1.3
[info]   | |   | +-org.neo4j:neo4j-io:3.1.3
[info]   | |   |   +-org.apache.commons:commons-lang3:3.3.2
[info]   | |   |   +-org.neo4j:neo4j-primitive-collections:3.1.3
[info]   | |   |   | +-org.neo4j:neo4j-common:3.1.3
[info]   | |   |   | +-org.neo4j:neo4j-resource:3.1.3
[info]   | |   |   | +-org.neo4j:neo4j-unsafe:3.1.3
[info]   | |   |   | 
[info]   | |   |   +-org.neo4j:neo4j-unsafe:3.1.3
[info]   | |   |   
[info]   | |   +-org.neo4j:neo4j-lucene-upgrade:3.1.3
[info]   | |   | +-org.apache.lucene:lucene-backward-codecs:5.5.0
[info]   | |   | | +-org.apache.lucene:lucene-core:5.5.0
[info]   | |   | | 
[info]   | |   | +-org.apache.lucene:lucene-core:5.5.0
[info]   | |   | 
[info]   | |   +-org.neo4j:neo4j-primitive-collections:3.1.3
[info]   | |     +-org.neo4j:neo4j-common:3.1.3
[info]   | |     +-org.neo4j:neo4j-resource:3.1.3
[info]   | |     +-org.neo4j:neo4j-unsafe:3.1.3
[info]   | |     
[info]   | +-org.neo4j:neo4j-graph-matching:3.1.3
[info]   | | +-org.neo4j:neo4j-kernel:3.1.3
[info]   | |   +-org.neo4j:neo4j-collections:3.1.3
[info]   | |   | +-org.neo4j:neo4j-common:3.1.3
[info]   | |   | +-org.neo4j:neo4j-resource:3.1.3
[info]   | |   | 
[info]   | |   +-org.neo4j:neo4j-common:3.1.3
[info]   | |   +-org.neo4j:neo4j-csv:3.1.3
[info]   | |   | +-org.neo4j:neo4j-collections:3.1.3
[info]   | |   | | +-org.neo4j:neo4j-common:3.1.3
[info]   | |   | | +-org.neo4j:neo4j-resource:3.1.3
[info]   | |   | | 
[info]   | |   | +-org.neo4j:neo4j-primitive-collections:3.1.3
[info]   | |   |   +-org.neo4j:neo4j-common:3.1.3
[info]   | |   |   +-org.neo4j:neo4j-resource:3.1.3
[info]   | |   |   +-org.neo4j:neo4j-unsafe:3.1.3
[info]   | |   |   
[info]   | |   +-org.neo4j:neo4j-graphdb-api:3.1.3
[info]   | |   | +-org.neo4j:neo4j-collections:3.1.3
[info]   | |   | | +-org.neo4j:neo4j-common:3.1.3
[info]   | |   | | +-org.neo4j:neo4j-resource:3.1.3
[info]   | |   | | 
[info]   | |   | +-org.neo4j:neo4j-common:3.1.3
[info]   | |   | +-org.neo4j:neo4j-primitive-collections:3.1.3
[info]   | |   | | +-org.neo4j:neo4j-common:3.1.3
[info]   | |   | | +-org.neo4j:neo4j-resource:3.1.3
[info]   | |   | | +-org.neo4j:neo4j-unsafe:3.1.3
[info]   | |   | | 
[info]   | |   | +-org.neo4j:neo4j-resource:3.1.3
[info]   | |   | 
[info]   | |   +-org.neo4j:neo4j-io:3.1.3
[info]   | |   | +-org.apache.commons:commons-lang3:3.3.2
[info]   | |   | +-org.neo4j:neo4j-primitive-collections:3.1.3
[info]   | |   | | +-org.neo4j:neo4j-common:3.1.3
[info]   | |   | | +-org.neo4j:neo4j-resource:3.1.3
[info]   | |   | | +-org.neo4j:neo4j-unsafe:3.1.3
[info]   | |   | | 
[info]   | |   | +-org.neo4j:neo4j-unsafe:3.1.3
[info]   | |   | 
[info]   | |   +-org.neo4j:neo4j-logging:3.1.3
[info]   | |   | +-org.neo4j:neo4j-io:3.1.3
[info]   | |   |   +-org.apache.commons:commons-lang3:3.3.2
[info]   | |   |   +-org.neo4j:neo4j-primitive-collections:3.1.3
[info]   | |   |   | +-org.neo4j:neo4j-common:3.1.3
[info]   | |   |   | +-org.neo4j:neo4j-resource:3.1.3
[info]   | |   |   | +-org.neo4j:neo4j-unsafe:3.1.3
[info]   | |   |   | 
[info]   | |   |   +-org.neo4j:neo4j-unsafe:3.1.3
[info]   | |   |   
[info]   | |   +-org.neo4j:neo4j-lucene-upgrade:3.1.3
[info]   | |   | +-org.apache.lucene:lucene-backward-codecs:5.5.0
[info]   | |   | | +-org.apache.lucene:lucene-core:5.5.0
[info]   | |   | | 
[info]   | |   | +-org.apache.lucene:lucene-core:5.5.0
[info]   | |   | 
[info]   | |   +-org.neo4j:neo4j-primitive-collections:3.1.3
[info]   | |     +-org.neo4j:neo4j-common:3.1.3
[info]   | |     +-org.neo4j:neo4j-resource:3.1.3
[info]   | |     +-org.neo4j:neo4j-unsafe:3.1.3
[info]   | |     
[info]   | +-org.neo4j:neo4j-lucene-index:3.1.3
[info]   | | +-org.apache.lucene:lucene-analyzers-common:5.5.0
[info]   | | | +-org.apache.lucene:lucene-core:5.5.0
[info]   | | | 
[info]   | | +-org.apache.lucene:lucene-codecs:5.5.0
[info]   | | | +-org.apache.lucene:lucene-core:5.5.0
[info]   | | | 
[info]   | | +-org.apache.lucene:lucene-core:5.5.0
[info]   | | +-org.apache.lucene:lucene-queryparser:5.5.0
[info]   | | | +-org.apache.lucene:lucene-core:5.5.0
[info]   | | | 
[info]   | | +-org.neo4j:neo4j-kernel:3.1.3
[info]   | |   +-org.neo4j:neo4j-collections:3.1.3
[info]   | |   | +-org.neo4j:neo4j-common:3.1.3
[info]   | |   | +-org.neo4j:neo4j-resource:3.1.3
[info]   | |   | 
[info]   | |   +-org.neo4j:neo4j-common:3.1.3
[info]   | |   +-org.neo4j:neo4j-csv:3.1.3
[info]   | |   | +-org.neo4j:neo4j-collections:3.1.3
[info]   | |   | | +-org.neo4j:neo4j-common:3.1.3
[info]   | |   | | +-org.neo4j:neo4j-resource:3.1.3
[info]   | |   | | 
[info]   | |   | +-org.neo4j:neo4j-primitive-collections:3.1.3
[info]   | |   |   +-org.neo4j:neo4j-common:3.1.3
[info]   | |   |   +-org.neo4j:neo4j-resource:3.1.3
[info]   | |   |   +-org.neo4j:neo4j-unsafe:3.1.3
[info]   | |   |   
[info]   | |   +-org.neo4j:neo4j-graphdb-api:3.1.3
[info]   | |   | +-org.neo4j:neo4j-collections:3.1.3
[info]   | |   | | +-org.neo4j:neo4j-common:3.1.3
[info]   | |   | | +-org.neo4j:neo4j-resource:3.1.3
[info]   | |   | | 
[info]   | |   | +-org.neo4j:neo4j-common:3.1.3
[info]   | |   | +-org.neo4j:neo4j-primitive-collections:3.1.3
[info]   | |   | | +-org.neo4j:neo4j-common:3.1.3
[info]   | |   | | +-org.neo4j:neo4j-resource:3.1.3
[info]   | |   | | +-org.neo4j:neo4j-unsafe:3.1.3
[info]   | |   | | 
[info]   | |   | +-org.neo4j:neo4j-resource:3.1.3
[info]   | |   | 
[info]   | |   +-org.neo4j:neo4j-io:3.1.3
[info]   | |   | +-org.apache.commons:commons-lang3:3.3.2
[info]   | |   | +-org.neo4j:neo4j-primitive-collections:3.1.3
[info]   | |   | | +-org.neo4j:neo4j-common:3.1.3
[info]   | |   | | +-org.neo4j:neo4j-resource:3.1.3
[info]   | |   | | +-org.neo4j:neo4j-unsafe:3.1.3
[info]   | |   | | 
[info]   | |   | +-org.neo4j:neo4j-unsafe:3.1.3
[info]   | |   | 
[info]   | |   +-org.neo4j:neo4j-logging:3.1.3
[info]   | |   | +-org.neo4j:neo4j-io:3.1.3
[info]   | |   |   +-org.apache.commons:commons-lang3:3.3.2
[info]   | |   |   +-org.neo4j:neo4j-primitive-collections:3.1.3
[info]   | |   |   | +-org.neo4j:neo4j-common:3.1.3
[info]   | |   |   | +-org.neo4j:neo4j-resource:3.1.3
[info]   | |   |   | +-org.neo4j:neo4j-unsafe:3.1.3
[info]   | |   |   | 
[info]   | |   |   +-org.neo4j:neo4j-unsafe:3.1.3
[info]   | |   |   
[info]   | |   +-org.neo4j:neo4j-lucene-upgrade:3.1.3
[info]   | |   | +-org.apache.lucene:lucene-backward-codecs:5.5.0
[info]   | |   | | +-org.apache.lucene:lucene-core:5.5.0
[info]   | |   | | 
[info]   | |   | +-org.apache.lucene:lucene-core:5.5.0
[info]   | |   | 
[info]   | |   +-org.neo4j:neo4j-primitive-collections:3.1.3
[info]   | |     +-org.neo4j:neo4j-common:3.1.3
[info]   | |     +-org.neo4j:neo4j-resource:3.1.3
[info]   | |     +-org.neo4j:neo4j-unsafe:3.1.3
[info]   | |     
[info]   | +-org.parboiled:parboiled-scala_2.11:1.1.7
[info]   | | +-org.parboiled:parboiled-core:1.1.7
[info]   | | 
[info]   | +-org.scala-lang:scala-reflect:2.12.3 [S]
[info]   | 
[info]   +-org.neo4j:neo4j-lucene-index:3.1.3
[info]   | +-org.apache.lucene:lucene-analyzers-common:5.5.0
[info]   | | +-org.apache.lucene:lucene-core:5.5.0
[info]   | | 
[info]   | +-org.apache.lucene:lucene-codecs:5.5.0
[info]   | | +-org.apache.lucene:lucene-core:5.5.0
[info]   | | 
[info]   | +-org.apache.lucene:lucene-core:5.5.0
[info]   | +-org.apache.lucene:lucene-queryparser:5.5.0
[info]   | | +-org.apache.lucene:lucene-core:5.5.0
[info]   | | 
[info]   | +-org.neo4j:neo4j-kernel:3.1.3
[info]   |   +-org.neo4j:neo4j-collections:3.1.3
[info]   |   | +-org.neo4j:neo4j-common:3.1.3
[info]   |   | +-org.neo4j:neo4j-resource:3.1.3
[info]   |   | 
[info]   |   +-org.neo4j:neo4j-common:3.1.3
[info]   |   +-org.neo4j:neo4j-csv:3.1.3
[info]   |   | +-org.neo4j:neo4j-collections:3.1.3
[info]   |   | | +-org.neo4j:neo4j-common:3.1.3
[info]   |   | | +-org.neo4j:neo4j-resource:3.1.3
[info]   |   | | 
[info]   |   | +-org.neo4j:neo4j-primitive-collections:3.1.3
[info]   |   |   +-org.neo4j:neo4j-common:3.1.3
[info]   |   |   +-org.neo4j:neo4j-resource:3.1.3
[info]   |   |   +-org.neo4j:neo4j-unsafe:3.1.3
[info]   |   |   
[info]   |   +-org.neo4j:neo4j-graphdb-api:3.1.3
[info]   |   | +-org.neo4j:neo4j-collections:3.1.3
[info]   |   | | +-org.neo4j:neo4j-common:3.1.3
[info]   |   | | +-org.neo4j:neo4j-resource:3.1.3
[info]   |   | | 
[info]   |   | +-org.neo4j:neo4j-common:3.1.3
[info]   |   | +-org.neo4j:neo4j-primitive-collections:3.1.3
[info]   |   | | +-org.neo4j:neo4j-common:3.1.3
[info]   |   | | +-org.neo4j:neo4j-resource:3.1.3
[info]   |   | | +-org.neo4j:neo4j-unsafe:3.1.3
[info]   |   | | 
[info]   |   | +-org.neo4j:neo4j-resource:3.1.3
[info]   |   | 
[info]   |   +-org.neo4j:neo4j-io:3.1.3
[info]   |   | +-org.apache.commons:commons-lang3:3.3.2
[info]   |   | +-org.neo4j:neo4j-primitive-collections:3.1.3
[info]   |   | | +-org.neo4j:neo4j-common:3.1.3
[info]   |   | | +-org.neo4j:neo4j-resource:3.1.3
[info]   |   | | +-org.neo4j:neo4j-unsafe:3.1.3
[info]   |   | | 
[info]   |   | +-org.neo4j:neo4j-unsafe:3.1.3
[info]   |   | 
[info]   |   +-org.neo4j:neo4j-logging:3.1.3
[info]   |   | +-org.neo4j:neo4j-io:3.1.3
[info]   |   |   +-org.apache.commons:commons-lang3:3.3.2
[info]   |   |   +-org.neo4j:neo4j-primitive-collections:3.1.3
[info]   |   |   | +-org.neo4j:neo4j-common:3.1.3
[info]   |   |   | +-org.neo4j:neo4j-resource:3.1.3
[info]   |   |   | +-org.neo4j:neo4j-unsafe:3.1.3
[info]   |   |   | 
[info]   |   |   +-org.neo4j:neo4j-unsafe:3.1.3
[info]   |   |   
[info]   |   +-org.neo4j:neo4j-lucene-upgrade:3.1.3
[info]   |   | +-org.apache.lucene:lucene-backward-codecs:5.5.0
[info]   |   | | +-org.apache.lucene:lucene-core:5.5.0
[info]   |   | | 
[info]   |   | +-org.apache.lucene:lucene-core:5.5.0
[info]   |   | 
[info]   |   +-org.neo4j:neo4j-primitive-collections:3.1.3
[info]   |     +-org.neo4j:neo4j-common:3.1.3
[info]   |     +-org.neo4j:neo4j-resource:3.1.3
[info]   |     +-org.neo4j:neo4j-unsafe:3.1.3
[info]   |     
[info]   +-org.slf4j:slf4j-simple:1.7.23
[info]   | +-org.slf4j:slf4j-api:1.7.23 (evicted by: 1.7.25)
[info]   | +-org.slf4j:slf4j-api:1.7.25
[info]   | 
[info]   +-team.supernova.hubble:hubble-messages_2.12:0.15-SNAPSHOT [S]
[info]     +-com.google.guava:guava:19.0
[info]     +-com.trueaccord.scalapb:scalapb-runtime_2.12:0.5.47 [S]
[info]     | +-com.google.protobuf:protobuf-java:3.1.0
[info]     | +-com.lihaoyi:fastparse_2.12:0.4.2 [S]
[info]     | | +-com.lihaoyi:fastparse-utils_2.12:0.4.2 [S]
[info]     | | | +-com.lihaoyi:sourcecode_2.12:0.1.3 [S]
[info]     | | | 
[info]     | | +-com.lihaoyi:sourcecode_2.12:0.1.3 [S]
[info]     | | 
[info]     | +-com.trueaccord.lenses:lenses_2.12:0.4.9 [S]
[info]     | 
[info]     +-com.typesafe.play:play-json_2.12:2.6.1 [S]
[info]     | +-com.fasterxml.jackson.core:jackson-annotations:2.8.9
[info]     | +-com.fasterxml.jackson.core:jackson-core:2.8.9
[info]     | +-com.fasterxml.jackson.core:jackson-databind:2.8.9
[info]     | | +-com.fasterxml.jackson.core:jackson-annotations:2.8.0 (evicted by: 2.8.9)
[info]     | | +-com.fasterxml.jackson.core:jackson-annotations:2.8.9
[info]     | | +-com.fasterxml.jackson.core:jackson-core:2.8.9
[info]     | | 
[info]     | +-com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.8.9
[info]     | | +-com.fasterxml.jackson.core:jackson-core:2.8.9
[info]     | | +-com.fasterxml.jackson.core:jackson-databind:2.8.9
[info]     | |   +-com.fasterxml.jackson.core:jackson-annotations:2.8.0 (evicted by: 2.8.9)
[info]     | |   +-com.fasterxml.jackson.core:jackson-annotations:2.8.9
[info]     | |   +-com.fasterxml.jackson.core:jackson-core:2.8.9
[info]     | |   
[info]     | +-com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.8.9
[info]     | | +-com.fasterxml.jackson.core:jackson-annotations:2.8.0 (evicted by: 2.8.9)
[info]     | | +-com.fasterxml.jackson.core:jackson-annotations:2.8.9
[info]     | | +-com.fasterxml.jackson.core:jackson-core:2.8.9
[info]     | | +-com.fasterxml.jackson.core:jackson-databind:2.8.9
[info]     | |   +-com.fasterxml.jackson.core:jackson-annotations:2.8.0 (evicted by: 2.8.9)
[info]     | |   +-com.fasterxml.jackson.core:jackson-annotations:2.8.9
[info]     | |   +-com.fasterxml.jackson.core:jackson-core:2.8.9
[info]     | |   
[info]     | +-com.typesafe.play:play-functional_2.12:2.6.1 [S]
[info]     | +-joda-time:joda-time:2.9.9
[info]     | +-org.scala-lang:scala-reflect:2.12.3 [S]
[info]     | +-org.typelevel:macro-compat_2.12:1.1.1 [S]
[info]     | 
[info]     +-org.apache.kafka:kafka-clients:0.11.0.0
[info]     | +-net.jpountz.lz4:lz4:1.3.0
[info]     | +-org.slf4j:slf4j-api:1.7.25
[info]     | +-org.xerial.snappy:snappy-java:1.1.2.6
[info]     | 
[info]     +-org.slf4j:slf4j-simple:1.7.23
[info]       +-org.slf4j:slf4j-api:1.7.23 (evicted by: 1.7.25)
[info]       +-org.slf4j:slf4j-api:1.7.25
[info]       
[success] Total time: 4 s, completed Sep 4, 2017 3:25:38 PM

有没有人有任何线索,这里有什么问题?

提前致谢。

1 个答案:

答案 0 :(得分:0)

在运行时验证正确的类路径

为了加载cypher引擎,你需要几个名为“neo4j-cypher-compiler * .jar”的jar。在调试模式下评估tf.nn.rnn_cell 以查看JVM访问的完整jar文件列表。看起来你有那些基于你的SBT输出,但运行时是唯一的事实。

原因#1:依赖阴影

它可能是你的一个依赖与neo4j的传递依赖冲突。将neo4j放在SBT中可以解决这个问题。 (这对我有用)

原因#2:最大命令行覆盖率(仅限Windows)

Neo4j有很多罐子。对于Windows的最大字符数,可能是System.getProperty("java.class.path")命令太长。请参阅:How to set a long Java classpath in Windows?