[
https://issues.apache.org/jira/browse/FINERACT-1067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17151011#comment-17151011
]
Michael Vorburger commented on FINERACT-1067:
---------------------------------------------
I had a brief look at the code around this, and it seems to be related to some
date being unexpectedly earlier than it should?
My functional understanding isn't detailed enough to be able to (easily) figure
out how to correctly fix this myself. Perhaps this is more of an "effect", with
the "cause" really being some... missing validation, for before/after dates?
Just a hunch.
[~ptuomola] perhaps this interests you? (Absolutely no expectation, of course.)
> ScheduleDateException at AbstractLoanScheduleGenerator.generate()
> -----------------------------------------------------------------
>
> Key: FINERACT-1067
> URL: https://issues.apache.org/jira/browse/FINERACT-1067
> Project: Apache Fineract
> Issue Type: Bug
> Reporter: Michael Vorburger
> Priority: Critical
>
> See FINERACT-932 for general background; I've found this in logs of
> https://www.fineract.dev:
> {noformat}org.apache.fineract.portfolio.loanaccount.loanschedule.exception.ScheduleDateException
> at
> org.apache.fineract.portfolio.loanaccount.loanschedule.domain.AbstractLoanScheduleGenerator.generate
> (AbstractLoanScheduleGenerator.java:211)
> at
> org.apache.fineract.portfolio.loanaccount.loanschedule.domain.AbstractLoanScheduleGenerator.rescheduleNextInstallments
> (AbstractLoanScheduleGenerator.java:2343)
> at
> org.apache.fineract.portfolio.loanaccount.loanschedule.domain.AbstractLoanScheduleGenerator.rescheduleNextInstallments
> (AbstractLoanScheduleGenerator.java:2055)
> at
> org.apache.fineract.portfolio.loanaccount.domain.Loan.getRecalculatedSchedule
> (Loan.java:5404)
> at
> org.apache.fineract.portfolio.loanaccount.domain.Loan.regenerateRepaymentScheduleWithInterestRecalculation
> (Loan.java:5157)
> at
> org.apache.fineract.portfolio.loanaccount.domain.Loan.recalculateScheduleFromLastTransaction
> (Loan.java:5117)
> at
> org.apache.fineract.portfolio.loanaccount.service.LoanWritePlatformServiceJpaRepositoryImpl.recalculateInterest
> (LoanWritePlatformServiceJpaRepositoryImpl.java:2849)
> 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$$379676bb.recalculateInterest
> (<generated>)
> at
> org.apache.fineract.portfolio.loanaccount.service.LoanSchedularServiceImpl.recalculateInterest
> (LoanSchedularServiceImpl.java:138)
> at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native
> Method)
> at jdk.internal.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:62)
> at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:43)
> at 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){noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)