org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'mongoTransactionManager' while setting constructor argument with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mongoDatastore': Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.grails.datastore.mapping.mongo.MongoDatastore]: Constructor threw exception; nested exception is java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.util.List

GitHub | Travis9011 | 5 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    MultiDataSources issue Grails 2.5.4

    GitHub | 5 months ago | Travis9011
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'mongoTransactionManager' while setting constructor argument with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mongoDatastore': Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.grails.datastore.mapping.mongo.MongoDatastore]: Constructor threw exception; nested exception is java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.util.List

    Root Cause Analysis

    1. java.lang.ClassCastException

      [Ljava.lang.String; cannot be cast to java.util.List

      at org.grails.datastore.mapping.config.groovy.DefaultMappingConfigurationBuilder.invokeMethod()
    2. Grails GORM
      DefaultMappingConfigurationBuilder.invokeMethod
      1. org.grails.datastore.mapping.config.groovy.DefaultMappingConfigurationBuilder.invokeMethod(DefaultMappingConfigurationBuilder.groovy:61)
      1 frame
    3. geo
      Country$__clinit__closure2.doCall
      1. geo.Country$__clinit__closure2.doCall(Country.groovy:20)
      1 frame
    4. Grails GORM
      DefaultMappingConfigurationBuilder.evaluate
      1. org.grails.datastore.mapping.config.groovy.DefaultMappingConfigurationBuilder.evaluate(DefaultMappingConfigurationBuilder.groovy:91)
      1 frame