vidakovic edited a comment on pull request #2177:
URL: https://github.com/apache/fineract/pull/2177#issuecomment-1081424161


   ```
   testLoanRefundByCashCashBasedAccounting()
   ```
   ... this is the stacktrace I get:
   
   ```
   2022-03-29 07:49:11.896 ERROR 194527 --- [pool-5-thread-2] 
a.f.p.s.s.SavingsSchedularInterestPoster : Interest posting job for savings 
failed for account 10
   
   java.lang.NullPointerException: Cannot invoke 
"java.math.BigDecimal.divide(java.math.BigDecimal, java.math.MathContext)" 
because the return value of 
"org.apache.fineract.portfolio.savings.data.SavingsAccountData.getNominalAnnualInterestRateOverdraft()"
 is null
        at 
org.apache.fineract.portfolio.savings.service.SavingsAccountInterestPostingServiceImpl.getEffectiveOverdraftInterestRateAsFraction(SavingsAccountInterestPostingServiceImpl.java:364)
        at 
org.apache.fineract.portfolio.savings.service.SavingsAccountInterestPostingServiceImpl.calculateInterestUsing(SavingsAccountInterestPostingServiceImpl.java:279)
        at 
org.apache.fineract.portfolio.savings.service.SavingsAccountInterestPostingServiceImpl.postInterest(SavingsAccountInterestPostingServiceImpl.java:84)
        at 
org.apache.fineract.portfolio.savings.service.SavingsAccountWritePlatformServiceJpaRepositoryImpl.postInterest(SavingsAccountWritePlatformServiceJpaRepositoryImpl.java:662)
        at 
org.apache.fineract.portfolio.savings.service.SavingsAccountWritePlatformServiceJpaRepositoryImpl$$FastClassBySpringCGLIB$$fa18015c.invoke(<generated>)
        at 
org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
        at 
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:783)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
        at 
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:753)
        at 
org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:123)
        at 
org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:388)
        at 
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:119)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
        at 
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:753)
        at 
org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:698)
        at 
org.apache.fineract.portfolio.savings.service.SavingsAccountWritePlatformServiceJpaRepositoryImpl$$EnhancerBySpringCGLIB$$8dd5f997.postInterest(<generated>)
        at 
org.apache.fineract.portfolio.savings.service.SavingsSchedularInterestPoster.call(SavingsSchedularInterestPoster.java:153)
        at 
org.apache.fineract.portfolio.savings.service.SavingsSchedularInterestPoster.call(SavingsSchedularInterestPoster.java:61)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at java.base/java.lang.Thread.run(Thread.java:833)
   
   2022-03-29 07:49:11.896 ERROR 194527 --- [pool-5-thread-3] 
a.f.p.s.s.SavingsSchedularInterestPoster : Interest posting job for savings 
failed for account 12
   
   java.lang.NullPointerException: Cannot invoke 
"java.math.BigDecimal.divide(java.math.BigDecimal, java.math.MathContext)" 
because the return value of 
"org.apache.fineract.portfolio.savings.data.SavingsAccountData.getNominalAnnualInterestRateOverdraft()"
 is null
        at 
org.apache.fineract.portfolio.savings.service.SavingsAccountInterestPostingServiceImpl.getEffectiveOverdraftInterestRateAsFraction(SavingsAccountInterestPostingServiceImpl.java:364)
        at 
org.apache.fineract.portfolio.savings.service.SavingsAccountInterestPostingServiceImpl.calculateInterestUsing(SavingsAccountInterestPostingServiceImpl.java:279)
        at 
org.apache.fineract.portfolio.savings.service.SavingsAccountInterestPostingServiceImpl.postInterest(SavingsAccountInterestPostingServiceImpl.java:84)
        at 
org.apache.fineract.portfolio.savings.service.SavingsAccountWritePlatformServiceJpaRepositoryImpl.postInterest(SavingsAccountWritePlatformServiceJpaRepositoryImpl.java:662)
        at 
org.apache.fineract.portfolio.savings.service.SavingsAccountWritePlatformServiceJpaRepositoryImpl$$FastClassBySpringCGLIB$$fa18015c.invoke(<generated>)
        at 
org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
        at 
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:783)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
        at 
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:753)
        at 
org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:123)
        at 
org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:388)
        at 
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:119)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
        at 
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:753)
        at 
org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:698)
        at 
org.apache.fineract.portfolio.savings.service.SavingsAccountWritePlatformServiceJpaRepositoryImpl$$EnhancerBySpringCGLIB$$8dd5f997.postInterest(<generated>)
        at 
org.apache.fineract.portfolio.savings.service.SavingsSchedularInterestPoster.call(SavingsSchedularInterestPoster.java:153)
        at 
org.apache.fineract.portfolio.savings.service.SavingsSchedularInterestPoster.call(SavingsSchedularInterestPoster.java:61)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
   ```
   
   ... is failing... just in case you have an idea.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to