neo4j 3.3.3无法查询嵌入式数据库,因为没有依赖项满足类型接口org.neo4j.kernel.impl.query.QueryExecutionEngine

时间:2018-03-02 16:33:12

标签: java neo4j

我尝试使用嵌入式neo4j,我的问题很少

1。 为什么嵌入式db具有不同于独立的结构,所以我无法在桌面应用程序中指向视图db - 嵌入式db不会生成dbms文件夹而且没有graph.db

2。 我无法使用cypher查询嵌入式数据库,我可以使用db.findNodes等查询。我正在

Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.bolt.v1.runtime.BoltFactoryImpl@4917d36b' 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)
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:101)
  at org.neo4j.bolt.v1.runtime.BoltFactoryImpl.start(BoltFactoryImpl.java:71)
  at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:445)

我已经开始了

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

但很快就结束了

<dependency>
    <groupId>org.neo4j</groupId>
    <artifactId>neo4j</artifactId>
    <version>3.3.3</version>
</dependency>
<dependency>
    <groupId>org.neo4j</groupId>
    <artifactId>neo4j-slf4j</artifactId>
    <version>3.3.3</version>
</dependency>
--- advised by [SO issue][1]
<dependency>
    <groupId>org.neo4j</groupId>
    <artifactId>neo4j-cypher-compiler-3.3</artifactId>
    <version>3.3.3</version>
</dependency>
<dependency>
    <groupId>org.neo4j</groupId>
    <artifactId>neo4j-cypher-frontend-3.3</artifactId>
    <version>3.3.3</version>
</dependency>
-- advised by friend :]
<dependency>
    <groupId>org.neo4j.app</groupId>
    <artifactId>neo4j-server</artifactId>
    <version>3.3.3</version>
</dependency>

错误显示neo有一个问题,没有明确声明的螺栓,当我删除neo4j-server(其中包括螺栓)我得到

java.lang.UnsupportedOperationException: No query engine installed.
at org.neo4j.kernel.impl.query.NoQueryEngine.noQueryEngine(NoQueryEngine.java:63) ~[neo4j-kernel-3.3.3.jar:3.3.3,13ce0dc2e5eb1d72cc4e8df41612e4ec136c83e3]
at org.neo4j.kernel.impl.query.NoQueryEngine.executeQuery(NoQueryEngine.java:34) ~[neo4j-kernel-3.3.3.jar:3.3.3,13ce0dc2e5eb1d72cc4e8df41612e4ec136c83e3]
at org.neo4j.kernel.impl.factory.ClassicCoreSPI.executeQuery(ClassicCoreSPI.java:80) ~[neo4j-kernel-3.3.3.jar:3.3.3,13ce0dc2e5eb1d72cc4e8df41612e4ec136c83e3]
at org.neo4j.kernel.impl.factory.GraphDatabaseFacade.execute(GraphDatabaseFacade.java:451) ~[neo4j-kernel-3.3.3.jar:3.3.3,13ce0dc2e5eb1d72cc4e8df41612e4ec136c83e3]
at org.neo4j.kernel.impl.factory.GraphDatabaseFacade.execute(GraphDatabaseFacade.java:434) ~[neo4j-kernel-3.3.3.jar:3.3.3,13ce0dc2e5eb1d72cc4e8df41612e4ec136c83e3]
at com.codewise.voluum.dsp.bidder.it.neo4j.IndexManager.read(IndexManager.java:94) [test-classes/:?]
at com.codewise.voluum.dsp.bidder.it.neo4j.IndexReader$Reader.run(IndexReader.java:105) [test-classes/:?]

实际上我丢失了,因为查询引擎的实现在neo4j-kernel(可用)中,但由于某种原因未被选中。也许有人想看到maven依赖

[INFO] --- maven-dependency-plugin:3.0.2:tree (default-cli)
[INFO] +- com.fasterxml.jackson.core:jackson-databind:jar:2.9.3:compile
[INFO] |  \- com.fasterxml.jackson.core:jackson-annotations:jar:2.9.3:compile
[INFO] +- org.neo4j:neo4j:jar:3.3.3:compile
[INFO] |  +- org.neo4j:neo4j-kernel:jar:3.3.3:compile
[INFO] |  |  +- org.neo4j:neo4j-graphdb-api:jar:3.3.3:compile
[INFO] |  |  |  \- org.neo4j:neo4j-resource:jar:3.3.3:compile
[INFO] |  |  +- org.neo4j:neo4j-common:jar:3.3.3:compile
[INFO] |  |  +- org.neo4j:neo4j-values:jar:3.3.3:compile
[INFO] |  |  +- org.neo4j:neo4j-collections:jar:3.3.3:compile
[INFO] |  |  +- org.neo4j:neo4j-primitive-collections:jar:3.3.3:compile
[INFO] |  |  |  \- org.neo4j:neo4j-unsafe:jar:3.3.3:compile
[INFO] |  |  +- org.neo4j:neo4j-io:jar:3.3.3:compile
[INFO] |  |  +- org.neo4j:neo4j-csv:jar:3.3.3:compile
[INFO] |  |  +- org.neo4j:neo4j-lucene-upgrade:jar:3.3.3:compile
[INFO] |  |  |  \- org.apache.lucene:lucene-backward-codecs:jar:5.5.2:compile
[INFO] |  |  +- org.neo4j:neo4j-configuration:jar:3.3.3:compile
[INFO] |  |  +- org.neo4j:neo4j-index:jar:3.3.3:compile
[INFO] |  |  \- org.neo4j:neo4j-ssl:jar:3.3.3:compile
[INFO] |  |     \- org.bouncycastle:bcpkix-jdk15on:jar:1.53:compile
[INFO] |  |        \- org.bouncycastle:bcprov-jdk15on:jar:1.53:compile
[INFO] |  +- org.neo4j:neo4j-lucene-index:jar:3.3.3:compile
[INFO] |  |  +- org.apache.lucene:lucene-analyzers-common:jar:5.5.2:compile
[INFO] |  |  +- org.apache.lucene:lucene-core:jar:5.5.2:compile
[INFO] |  |  +- org.apache.lucene:lucene-queryparser:jar:5.5.2:compile
[INFO] |  |  \- org.apache.lucene:lucene-codecs:jar:5.5.0:compile
[INFO] |  +- org.neo4j:neo4j-graph-algo:jar:3.3.3:compile
[INFO] |  +- org.neo4j:neo4j-udc:jar:3.3.3:compile
[INFO] |  +- org.neo4j:neo4j-cypher:jar:3.3.3:compile
[INFO] |  |  +- org.neo4j:neo4j-graph-matching:jar:3.1.6:compile
[INFO] |  |  +- org.neo4j:neo4j-codegen:jar:3.3.3:compile
[INFO] |  |  |  +- org.ow2.asm:asm:jar:5.2:compile
[INFO] |  |  |  +- org.ow2.asm:asm-util:jar:5.2:compile
[INFO] |  |  |  +- org.ow2.asm:asm-analysis:jar:5.2:compile
[INFO] |  |  |  \- org.ow2.asm:asm-tree:jar:5.2:compile
[INFO] |  |  +- org.neo4j:neo4j-cypher-compiler-2.3:jar:2.3.12:compile
[INFO] |  |  |  +- org.neo4j:neo4j-cypher-frontend-2.3:jar:2.3.12:compile
[INFO] |  |  |  \- com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:jar:1.4.2:compile
[INFO] |  |  +- org.neo4j:neo4j-cypher-compiler-3.1:jar:3.1.6:compile
[INFO] |  |  |  \- org.neo4j:neo4j-cypher-frontend-3.1:jar:3.1.6:compile
[INFO] |  |  +- org.neo4j:neo4j-cypher-compiler-3.2:jar:3.2.9:compile
[INFO] |  |  |  +- org.neo4j:neo4j-cypher-frontend-3.2:jar:3.2.9:compile
[INFO] |  |  |  \- org.neo4j:neo4j-cypher-ir-3.2:jar:3.2.9:compile
[INFO] |  |  \- net.sf.opencsv:opencsv:jar:2.3:compile
[INFO] |  +- org.neo4j:neo4j-jmx:jar:3.3.3:compile
[INFO] |  \- org.neo4j:neo4j-consistency-check:jar:3.3.3:compile
[INFO] |     +- org.neo4j:neo4j-command-line:jar:3.3.3:compile
[INFO] |     |  \- org.apache.commons:commons-text:jar:1.1:compile
[INFO] |     \- org.neo4j:neo4j-dbms:jar:3.3.3:compile
[INFO] |        +- org.neo4j:neo4j-import-tool:jar:3.3.3:compile
[INFO] |        \- org.apache.commons:commons-compress:jar:1.14:compile
[INFO] +- org.neo4j:neo4j-slf4j:jar:3.3.3:compile
[INFO] |  \- org.neo4j:neo4j-logging:jar:3.3.3:compile
[INFO] +- org.neo4j:neo4j-cypher-compiler-3.3:jar:3.3.3:compile
[INFO] |  +- org.scala-lang:scala-library:jar:2.11.7:compile
[INFO] |  +- org.scala-lang:scala-reflect:jar:2.11.12:compile
[INFO] |  +- org.neo4j:neo4j-cypher-ir-3.3:jar:3.3.3:compile
[INFO] |  +- org.neo4j:neo4j-cypher-logical-plans-3.3:jar:3.3.3:compile
[INFO] |  \- org.parboiled:parboiled-scala_2.11:jar:1.1.7:compile
[INFO] |     \- org.parboiled:parboiled-core:jar:1.1.7:compile
[INFO] +- org.neo4j:neo4j-cypher-frontend-3.3:jar:3.3.3:compile
[INFO] +- com.google.guava:guava:jar:22.0:compile
[INFO] |  +- com.google.errorprone:error_prone_annotations:jar:2.0.18:compile
[INFO] |  +- com.google.j2objc:j2objc-annotations:jar:1.1:compile
[INFO] |  \- org.codehaus.mojo:animal-sniffer-annotations:jar:1.14:compile
[INFO] +- junit:junit:jar:4.12:test
[INFO] |  \- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] +- pl.pragmatists:JUnitParams:jar:1.0.3:test
[INFO] +- org.assertj:assertj-core:jar:3.6.1:test
[INFO] +- org.mockito:mockito-all:jar:1.10.19:test
[INFO] +- com.jayway.awaitility:awaitility:jar:1.7.0:test
[INFO] |  +- org.hamcrest:hamcrest-library:jar:1.3:test
[INFO] |  +- cglib:cglib-nodep:jar:3.1:test
[INFO] |  \- org.objenesis:objenesis:jar:2.1:test
[INFO] \- org.springframework:spring-test:jar:4.3.7.RELEASE:test
[INFO]    \- org.springframework:spring-core:jar:4.3.7.RELEASE:compile
[INFO]       \- commons-logging:commons-logging:jar:1.2:compile

0 个答案:

没有答案