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

java.lang.NullPointerException: Cannot invoke "java.lang.Throwable.getMessage()" because the return value of "java.lang.Exception.getCause()" is null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Blocker
    • Resolution: Unresolved
    • 1.10.0
    • None
    • None
    • None
    • OS: Debian 12, Ubuntu 22.04
      Java version: openjdk 17.0.12
      Docker engine: Docker version 27.3.1, build ce12230

    Description

      Fineract process is resulting in error after a certain time.

       

      Step to reproduce

      Download and build the [1.10.1 version|https://github.com/apache/fineract/releases/tag/1.10.1]

       

      Then, run using either one of these method:

      1. On command line: 

      java -jar fineract-provider.jar
      

      2. With docker: run the compose file

      **

      Full Error:

      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantDatabaseUpgradeService' defined in URL [jar:nested:/home/santatra/cb/fineract-provider.jar/!BOOT-INF/classes/!/org/apache/fineract/infrastructure/core/service/migration/TenantDatabaseUpgradeService.class]: liquibase.exception.CommandExecutionException: java.lang.NullPointerException: Cannot invoke "java.lang.Throwable.getMessage()" because the return value of "java.lang.Exception.getCause()" is null                                               at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1773)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:599)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:521)
              at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:325)
              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
              at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:323)
              at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
              at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:312)
              at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:365)
              ... 154 common frames omitted
      Caused by: liquibase.exception.UnexpectedLiquibaseException: liquibase.exception.CommandExecutionException: java.lang.NullPointerException: Cannot invoke "java.lang.Throwable.getMessage()" because the return value of "java.lang.Exception.getCause()" is null
              at liquibase.integration.spring.SpringLiquibase.afterPropertiesSet(SpringLiquibase.java:304)
              at org.apache.fineract.infrastructure.core.service.migration.TenantDatabaseUpgradeService.upgradeIndividualTenant(TenantDatabaseUpgradeService.java:154)
              at org.apache.fineract.infrastructure.core.service.migration.TenantDatabaseUpgradeService.upgradeIndividualTenants(TenantDatabaseUpgradeService.java:129)
              at org.apache.fineract.infrastructure.core.service.migration.TenantDatabaseUpgradeService.afterPropertiesSet(TenantDatabaseUpgradeService.java:80)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1820)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1769)
              ... 163 common frames omitted
      Caused by: liquibase.exception.CommandExecutionException: java.lang.NullPointerException: Cannot invoke "java.lang.Throwable.getMessage()" because the return value of "java.lang.Exception.getCause()" is null
              at liquibase.command.CommandScope.execute(CommandScope.java:253)
              at liquibase.Liquibase.lambda$update$0(Liquibase.java:245)
              at liquibase.Scope.lambda$child$0(Scope.java:186)
              at liquibase.Scope.child(Scope.java:195)
              at liquibase.Scope.child(Scope.java:185)
              at liquibase.Scope.child(Scope.java:164)
              at liquibase.Liquibase.runInScope(Liquibase.java:1419)
              at liquibase.Liquibase.update(Liquibase.java:234)
              at liquibase.Liquibase.update(Liquibase.java:212)
              at liquibase.integration.spring.SpringLiquibase.performUpdate(SpringLiquibase.java:343)
              at liquibase.integration.spring.SpringLiquibase.lambda$afterPropertiesSet$0(SpringLiquibase.java:294)
              at liquibase.Scope.lambda$child$0(Scope.java:186)
              at liquibase.Scope.child(Scope.java:195)
              at liquibase.Scope.child(Scope.java:185)
              at liquibase.Scope.child(Scope.java:164)
              at liquibase.Scope.child(Scope.java:252)
              at liquibase.integration.spring.SpringLiquibase.afterPropertiesSet(SpringLiquibase.java:287)
              ... 168 common frames omitted
      Caused by: java.lang.NullPointerException: Cannot invoke "java.lang.Throwable.getMessage()" because the return value of "java.lang.Exception.getCause()" is null
              at liquibase.command.core.AbstractUpdateCommandStep.run(AbstractUpdateCommandStep.java:133)
              at liquibase.command.core.UpdateCommandStep.run(UpdateCommandStep.java:105)
              at liquibase.command.CommandScope.execute(CommandScope.java:217)
              ... 184 common frames omitted 

      Attachments

        Activity

          People

            Unassigned Unassigned
            h_steve Harimbola Santatra
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: