com.googlecode.flyway.core.api.FlywayException: Unable to obtain Jdbc connection from DataSource; for Tenant DB URL: jdbc:mysql://localhost:3306/mifostenant-default, username: root at org.apache.fineract.infrastructure.core.service.TenantDatabaseUpgradeServi ce.upgradeAllTenants(TenantDatabaseUpgradeService.java:78)

Stack Overflow | highjo | 3 months ago
  1. 0

    How to install mifos in an existing mysql database

    Stack Overflow | 3 months ago | highjo
    com.googlecode.flyway.core.api.FlywayException: Unable to obtain Jdbc connection from DataSource; for Tenant DB URL: jdbc:mysql://localhost:3306/mifostenant-default, username: root at org.apache.fineract.infrastructure.core.service.TenantDatabaseUpgradeServi ce.upgradeAllTenants(TenantDatabaseUpgradeService.java:78)
  2. 0

    Mifos - Microfinance Open Source / Mailing Lists

    sourceforge.net | 1 year ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.config.authentication.AuthenticationManagerFactoryBean#0': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.authenticationManager': Cannot resolve reference to bean 'customAuthenticationProvider' while setting constructor argument with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customAuthenticationProvider' defined in URL [file:/usr/local/apache-tomcat-7.0.61/webapps/mifosng-provider/WEB-INF/classes/META-INF/spring/securityContext.xml]: Cannot resolve reference to bean 'userDetailsService' while setting bean property 'userDetailsService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDetailsService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.mifosplatform.infrastructure.security.domain.PlatformUserRepository org.mifosplatform.infrastructure.security.service.TenantAwareJpaPlatformUserDetailsService.platformUserRepository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'appUserRepository': Cannot create inner bean '(inner bean)#5c65b07d' of type [org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean property 'entityManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#5c65b07d': Cannot resolve reference to bean 'entityManagerFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantDatabaseUpgradeService': Invocation of init method failed; nested exception is com.googlecode.flyway.core.api.FlywayException: Migration of schema `mifostenant-default` to version 251 failed! Please restore backups and roll back database and code!; for Tenant DB URL: jdbc: , username: root
  3. 0

    Mifos - Microfinance Open Source / Mailing Lists

    sourceforge.net | 1 year ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.config.authentication.AuthenticationManagerFactoryBean#0': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.authenticationManager': Cannot resolve reference to bean 'customAuthenticationProvider' while setting constructor argument with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customAuthenticationProvider' defined in URL [file:/usr/local/apache-tomcat-7.0.61/webapps/mifosng-provider/WEB-INF/classes/META-INF/spring/securityContext.xml]: Cannot resolve reference to bean 'userDetailsService' while setting bean property 'userDetailsService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDetailsService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.mifosplatform.infrastructure.security.domain.PlatformUserRepository org.mifosplatform.infrastructure.security.service.TenantAwareJpaPlatformUserDetailsService.platformUserRepository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'appUserRepository': Cannot create inner bean '(inner bean)#5c65b07d' of type [org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean property 'entityManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#5c65b07d': Cannot resolve reference to bean 'entityManagerFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantDatabaseUpgradeService': Invocation of init method failed; nested exception is com.googlecode.flyway.core.api.FlywayException: Migration of schema `mifostenant-default` to version 251 failed! Please restore backups and roll back database and code!; for Tenant DB URL: jdbc: , username: root
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Mifos - Microfinance Open Source / Mailing Lists

    sourceforge.net | 8 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.config.authentication.AuthenticationManagerFactoryBean#0': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.authenticationManager': Cannot resolve reference to bean 'customAuthenticationProvider' while setting constructor argument with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customAuthenticationProvider' defined in URL [file:/usr/local/apache-tomcat-7.0.61/webapps/mifosng-provider/WEB-INF/classes/META-INF/spring/securityContext.xml]: Cannot resolve reference to bean 'userDetailsService' while setting bean property 'userDetailsService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDetailsService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.mifosplatform.infrastructure.security.domain.PlatformUserRepository org.mifosplatform.infrastructure.security.service.TenantAwareJpaPlatformUserDetailsService.platformUserRepository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'appUserRepository': Cannot create inner bean '(inner bean)#5c65b07d' of type [org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean property 'entityManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#5c65b07d': Cannot resolve reference to bean 'entityManagerFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantDatabaseUpgradeService': Invocation of init method failed; nested exception is com.googlecode.flyway.core.api.FlywayException: Migration of schema `mifostenant-default` to version 251 failed! Please restore backups and roll back database and code!; for Tenant DB URL: jdbc: , username: root
  6. 0

    Mifos - Microfinance Open Source / Mailing Lists

    sourceforge.net | 1 year ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.config.authentication.AuthenticationManagerFactoryBean#0': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.authenticationManager': Cannot resolve reference to bean 'customAuthenticationProvider' while setting constructor argument with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customAuthenticationProvider' defined in URL [file:/usr/local/apache-tomcat-7.0.61/webapps/mifosng-provider/WEB-INF/classes/META-INF/spring/securityContext.xml]: Cannot resolve reference to bean 'userDetailsService' while setting bean property 'userDetailsService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDetailsService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.mifosplatform.infrastructure.security.domain.PlatformUserRepository org.mifosplatform.infrastructure.security.service.TenantAwareJpaPlatformUserDetailsService.platformUserRepository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'appUserRepository': Cannot create inner bean '(inner bean)#1df68388' of type [org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean property 'entityManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#1df68388': Cannot resolve reference to bean 'entityManagerFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantDatabaseUpgradeService': Invocation of init method failed; nested exception is com.googlecode.flyway.core.api.FlywayException: Migration of schema `mifostenant-default` to version 251 failed! Please restore backups and roll back database and code!; for Tenant DB URL: jdbc: , username: root

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.googlecode.flyway.core.api.FlywayException

      Unable to obtain Jdbc connection from DataSource; for Tenant DB URL: jdbc:mysql://localhost:3306/mifostenant-default, username: root at org.apache.fineract.infrastructure.core.service.TenantDatabaseUpgradeServi ce.upgradeAllTenants(TenantDatabaseUpgradeService.java:78)

      at sun.reflect.NativeMethodAccessorImpl.invoke0()
    2. Java RT
      NativeMethodAccessorImpl.invoke0
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      1 frame