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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4.0
    • Component/s: None
    • Labels:
      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

            • Assignee:
              vorburger Michael Vorburger
              Reporter:
              vorburger Michael Vorburger

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment