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

NullPointerException in SavingsAccount.office() and SavingsAccount.officeId()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 1.4.0
    • None
    • None

    Description

      While investigating FINERACT-922, and through FINERACT-858, I'm locally seeing the following errors when I run https://github.com/apache/fineract/pull/817 :

      03:14:10.573 [Scheduler1group1_Worker-1] ERROR o.a.f.p.s.s.SavingsSchedularServiceImpl - Failed to post interest for Savings with id 1
      java.lang.NullPointerException: null
              at org.apache.fineract.portfolio.savings.domain.SavingsAccount.officeId(SavingsAccount.java:1576)
              at org.apache.fineract.portfolio.savings.domain.SavingsAccount.deriveAccountingBridgeData(SavingsAccount.java:1486)
              at org.apache.fineract.portfolio.savings.service.SavingsAccountWritePlatformServiceJpaRepositoryImpl.postJournalEntries(SavingsAccountWritePlatformServiceJpaRepositoryImpl.java:1283)
              at org.apache.fineract.portfolio.savings.service.SavingsAccountWritePlatformServiceJpaRepositoryImpl.postInterest(SavingsAccountWritePlatformServiceJpaRepositoryImpl.java:568)

      as well as (slightly different, note office() VS officeId()):

      03:14:10.584 [Scheduler1group1_Worker-1] ERROR o.a.f.p.s.s.SavingsSchedularServiceImpl - Failed to post interest for Savings with id 8
      java.lang.NullPointerException: null
              at org.apache.fineract.portfolio.savings.domain.SavingsAccount.office(SavingsAccount.java:1586)
              at org.apache.fineract.portfolio.savings.domain.SavingsAccount.postInterest(SavingsAccount.java:511)
              at org.apache.fineract.portfolio.savings.service.SavingsAccountWritePlatformServiceJpaRepositoryImpl.postInterest(SavingsAccountWritePlatformServiceJpaRepositoryImpl.java:556)
              at org.apache.fineract.portfolio.savings.service.SavingsAccountWritePlatformServiceJpaRepositoryImpl$$FastClassBySpringCGLIB$$fa18015c.invoke(<generated>)

      Attachments

        Issue Links

          Activity

            People

              vorburger Michael Vorburger
              vorburger Michael Vorburger
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: