【问题标题】:Spring data neo4j 3.3.1 and Neo4j 2.2.3 transaction builder errorSpring data neo4j 3.3.1 和 Neo4j 2.2.3 事务生成器错误
【发布时间】:2015-10-09 05:36:28
【问题描述】:

我目前正在使用 Spring Data Neo4j 3.3.0 和 Play 2.3.8,使用 tuxburner plugin 并使用 neo4j 2.1.7 DB 远程工作。

我看到新的 spring data 版本支持 neo4j 2.2,我想升级到它。 我将依赖项更改为新版本并收到以下错误:

BeanCreationException: Error creating bean with name 'restNeo4jConfig': Injection of autowired dependencies failed;
nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void org.springframework.data.neo4j.config.Neo4jConfiguration.setGraphDatabaseService(org.neo4j.graphdb.GraphDatabaseService);
nested exception is java.lang.NoClassDefFoundError: org/neo4j/kernel/TransactionBuilder

这似乎是一个老问题,应该在 3.3.1 中解决,因为 neo4j 2.2 更改了很多内部 API,并且不再存在此类。

也许我使用 Spring Data 的方式不再正确,需要改变。

我创建了一个显示问题的示例播放应用程序: https://github.com/OlympusTeam/Olympus

【问题讨论】:

  • 似乎又是一个被更改/删除的类。我会调查的。
  • 您是否尝试过从已弃用的 SpringRestGraphDatabase 迁移到 SpringCypherRestGraphDatabase?
  • 是的。我们目前正在使用 SpringCypherRestGraphDatabase
  • @michael 这是一个错误吗?

标签: playframework neo4j spring-data-neo4j playframework-2.3


【解决方案1】:

从 2.1 迁移时遇到同样的问题,似乎已在 3.3.2 中修复。

http://docs.spring.io/spring-data/neo4j/docs/current/changelog.txt

【讨论】:

    猜你喜欢
    • 2017-10-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-05-04
    • 2015-07-30
    • 1970-01-01
    相关资源
    最近更新 更多