Uploaded image for project: 'Spring Data Neo4j'
  1. Spring Data Neo4j
  2. DATAGRAPH-1126

Application fails to start with multiple ConversionServices

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Complete
    • Affects Version/s: 5.1 RC2 (Lovelace)
    • Fix Version/s: 5.1 GA (Lovelace)
    • Component/s: CORE
    • Labels:
      None

      Description

      Using Spring Data Neo4j 5.1.RC and e.g. Spring Data REST within a Spring Boot 2.1.M3 application, two {{ConversionService}}s will get registered.
      The Neo4jOgmEntityInstantiatorConfigurationBean expects zero or one beans of this type and its instantiation will fail at startup.

      Error message:

      Constructor in org.springframework.data.neo4j.repository.config.Neo4jOgmEntityInstantiatorConfigurationBean required a single bean, but 2 were found:
          - mvcConversionService: defined by method 'mvcConversionService' in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]
          - defaultConversionService: defined by method 'defaultConversionService' in class path resource [org/springframework/data/rest/webmvc/config/RepositoryRestMvcConfiguration.class]
      

        Attachments

          Activity

            People

            Assignee:
            michael.simons Michael Simons
            Reporter:
            gerrit.meier Gerrit Meier
            Last updater:
            Mark Paluch
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: