【问题标题】:Spring-Data-Neo4j: "Factory method 'typeRepresentationStrategyFactory' threw exception", empty JSONSpring-Data-Neo4j:“工厂方法 'typeRepresentationStrategyFactory' 抛出异常”,空 JSON
【发布时间】:2016-08-09 04:21:46
【问题描述】:

我是 spring-data 和 neo4j 的新手,所以如果我的代码有什么不好的地方请说。

我想将我的应用程序部署到 heroku,但是我无法使远程 neo4j 连接正常工作。我试过了

  • 远程连接到本地 docker 映像(在浏览器中工作)
  • 本地服务器
  • Heroku 插件(Graphstory)

可悲的是,他们都给出了相同的exception,最重要的是:

Factory method 'typeRepresentationStrategyFactory' threw exception; nested exception is java.lang.RuntimeException: Error reading as JSON ''

您可以看到我的 Neo4j Spring 配置 hereunit 配置文件用于单元测试)并且我的部分 pom 是 here

  • Neo4j docker 镜像版本:2.3.3
  • Neo4j 本地版本:2.3.3

GraphEntity 模型(评论)here

【问题讨论】:

    标签: neo4j spring-data spring-data-neo4j


    【解决方案1】:

    事实证明我的依赖项与我认为的 Neo4j 服务器不兼容。

    此外,唯一兼容的版本在 neo4j 的私有 maven 存储库中。

    Flavorwocky by luanne(不是我)是一个很好的参考,看看它的外观

    如果你在这里,也去看看Neo4j OGM documentation

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-06-15
      • 1970-01-01
      • 1970-01-01
      • 2020-02-15
      • 2019-06-23
      • 1970-01-01
      相关资源
      最近更新 更多