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

NoSuchElementException at AbstractLoanScheduleGenerator.checkIfFirstRepaymentDateisOnHolidayOrNonWorkingDay

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Blocker
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      See FINERACT-932 for general background; I'm seeing a lot (x60) of these in logs of https://www.fineract.dev:

      java.util.NoSuchElementException
      	at java.base/java.util.ArrayList$Itr.next(ArrayList.java:999)
      	at org.apache.fineract.portfolio.loanaccount.loanschedule.domain.AbstractLoanScheduleGenerator.checkIfFirstRepaymentDateisOnHolidayOrNonWorkingDay(AbstractLoanScheduleGenerator.java:2367)
      	at org.apache.fineract.portfolio.loanaccount.loanschedule.domain.AbstractLoanScheduleGenerator.rescheduleNextInstallments(AbstractLoanScheduleGenerator.java:2349)
      	at org.apache.fineract.portfolio.loanaccount.loanschedule.domain.AbstractLoanScheduleGenerator.rescheduleNextInstallments(AbstractLoanScheduleGenerator.java:2058)
      	at org.apache.fineract.portfolio.loanaccount.domain.Loan.getRecalculatedSchedule(Loan.java:5409)
      	at org.apache.fineract.portfolio.loanaccount.domain.Loan.regenerateRepaymentScheduleWithInterestRecalculation(Loan.java:5162)
      	at org.apache.fineract.portfolio.loanaccount.domain.Loan.recalculateScheduleFromLastTransaction(Loan.java:5122)
      	at org.apache.fineract.portfolio.loanaccount.service.LoanWritePlatformServiceJpaRepositoryImpl.recalculateInterest(LoanWritePlatformServiceJpaRepositoryImpl.java:2850)
      	at org.apache.fineract.portfolio.loanaccount.service.LoanWritePlatformServiceJpaRepositoryImpl$$FastClassBySpringCGLIB$$cb835224.invoke(<generated>)
      	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
      	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:771)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
      	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749)
      	at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:366)
      	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:118)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
      	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749)
      	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:691)
      	at org.apache.fineract.portfolio.loanaccount.service.LoanWritePlatformServiceJpaRepositoryImpl$$EnhancerBySpringCGLIB$$11e56c7e.recalculateInterest(<generated>)
      	at org.apache.fineract.portfolio.loanaccount.service.LoanSchedularServiceImpl.recalculateInterest(LoanSchedularServiceImpl.java:138)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:283)
      	at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:267)
      	at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:75)
      	at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
      	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)

      Filing this as Blocker, but happy for it to be downgraded - just wanted the project to be aware of it.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: