Uploaded image for project: 'Apache Fineract'
  1. Apache Fineract
  2. FINERACT-1499

Exception while Startup : Driver org.mariadb.jdbc.Driver claims to not accept jdbcUrl, 'jdbc:mariadb://localhost:3306/fineract_tenants'

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.6.0
    • 1.6.0
    • None
    • None

    Description

       

      While starting fineract with Maria DB, Fineract is not able to connect to DB.  This happened while running

      ./gradlew clean bootRun   

      on local dev environment with Ubuntu 20.4.

      the following exception is thrown

       

       org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.sql.DataSource]: Factory method 'hikariTenantDataSource' threw exception; nested exception is java.lang.RuntimeException: Driver org.mariadb.jdbc.Driver claims to not accept jdbcUrl, 'jdbc:mariadb://localhost:3306/fineract_tenants'
              at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
              at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)
              ... 137 common frames omitted
      Caused by: java.lang.RuntimeException: Driver org.mariadb.jdbc.Driver claims to not accept jdbcUrl, 'jdbc:mariadb://localhost:3306/fineract_tenants'
              at com.zaxxer.hikari.util.DriverDataSource.<init>(DriverDataSource.java:110)
              at com.zaxxer.hikari.pool.PoolBase.initializeDataSource(PoolBase.java:331)
              at com.zaxxer.hikari.pool.PoolBase.<init>(PoolBase.java:114)
              at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:108)
              at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:81)
              at org.apache.fineract.infrastructure.core.config.HikariCpConfig.hikariTenantDataSource(HikariCpConfig.java:45)
              at org.apache.fineract.infrastructure.core.config.HikariCpConfig$$EnhancerBySpringCGLIB$$f2ef3540.CGLIB$hikariTenantDataSource$1(<generated>)
              at org.apache.fineract.infrastructure.core.config.HikariCpConfig$$EnhancerBySpringCGLIB$$f2ef3540$$FastClassBySpringCGLIB$$8fc6d73d.invoke(<generated>)
              at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244)
              at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331)
              at org.apache.fineract.infrastructure.core.config.HikariCpConfig$$EnhancerBySpringCGLIB$$f2ef3540.hikariTenantDataSource(<generated>)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
              at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.base/java.lang.reflect.Method.invoke(Method.java:568)
              at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
              ... 138 common frames omitted

      Attachments

        Issue Links

          Activity

            People

              fynmanoj Manoj Mohanan
              fynmanoj Manoj Mohanan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: