[Mifos-developer] Unable to Post Dividends to Saving Accounts

Dear Team,

I was able to initiate the dividend, and later these dividends are not being posted to the linked savings accounts. What am I missing?

I have attached a txt file of the error along with this email.

Below is the error log from scheduler, and the logfile.

Regards,

Abiy A.

Unable Posting Dividends to Saving Accounts.txt (9.35 KB)

···

ERROR LOG FROM SCHEDULER


org.apache.fineract.infrastructure.jobs.exception.JobExecutionException: Post Dividends
to savings failed for Divident detail Id:2 and savings Id:2 with message nullPost Dividends
to savings failed for Divident detail Id:3 and savings Id:4 with message nullPost Dividends
to savings failed for Divident detail Id:4 and savings Id:5 with message nullPost Dividends
to savings failed for Divident detail Id:5 and savings Id:3 with message null
at org.apache.fineract.scheduledjobs.service.ScheduledJobRunnerServiceImpl.postDividends(409)
at sun.reflect.NativeMethodAccessorImpl.invoke0(-2) at sun.reflect.NativeMethodAccessorImpl.invoke(62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(43) at java.lang.reflect.Method.invoke(498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(317)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(201)
at com.sun.proxy.$Proxy244.postDividends(-1)
at sun.reflect.NativeMethodAccessorImpl.invoke0(-2)
at sun.reflect.NativeMethodAccessorImpl.invoke(62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(43)
at java.lang.reflect.Method.invoke(498)
at org.springframework.util.MethodInvoker.invoke(269)
at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(322)
at org.springframework.scheduling.quartz.QuartzJobBean.execute(112)
at org.quartz.core.JobRunShell.run(213)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(557)


From LOG FILE


209078887 [Scheduler1_Worker-1] INFO o.a.f.s.s.ScheduledJobRunnerServiceImpl - default: Deposit accounts affected by update: 0
209078947 [Scheduler1group3_Worker-1] INFO o.a.f.s.s.ScheduledJobRunnerServiceImpl - default: Results affected by update: 0
209079158 [Scheduler1_Worker-4] ERROR o.a.f.s.s.ScheduledJobRunnerServiceImpl - Post Dividends to savings failed for Divident detail Id:2 and savings Id: 2 with message null
209079219 [Scheduler1_Worker-4] ERROR o.a.f.s.s.ScheduledJobRunnerServiceImpl - Post Dividends to savings failed for Divident detail Id:3 and savings Id: 4 with message null
209079283 [Scheduler1_Worker-4] ERROR o.a.f.s.s.ScheduledJobRunnerServiceImpl - Post Dividends to savings failed for Divident detail Id:4 and savings Id: 5 with message null
209079319 [Scheduler1_Worker-4] ERROR o.a.f.s.s.ScheduledJobRunnerServiceImpl - Post Dividends to savings failed for Divident detail Id:5 and savings Id: 3 with message null
209079321 [Scheduler1_Worker-4] ERROR org.quartz.core.JobRunShell - Job DEFAULT.Post Dividends For SharesJobDetail1 threw an unhandled Exception:
org.springframework.scheduling.quartz.JobMethodInvocationFailedException: Invocation of method ‘postDividends’ on target class [class com.sun.proxy.$Proxy244] failed; nested exception is org.apache.fineract.infrastructure.jobs.exception.JobExecutionException: Post Dividends to savings failed for Divident detail Id:2 and savings Id:2 with message nullPost Dividends to savings failed for Divident detail Id:3 and savings Id:4 with message nullPost Dividends to savings failed for Divident detail Id:4 and savings Id:5 with message nullPost Dividends to savings failed for Divident detail Id:5 and savings Id:3 with message null
at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:331) ~[spring-context-support-4.0.7.RELEASE.jar:4.0.7.RELEASE]
at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:112) ~[spring-context-support-4.0.7.RELEASE.jar:4.0.7.RELEASE]
at org.quartz.core.JobRunShell.run(JobRunShell.java:213) ~[quartz-2.1.7.jar:na]
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557) [quartz-2.1.7.jar:na]
Caused by: org.apache.fineract.infrastructure.jobs.exception.JobExecutionException: Post Dividends to savings failed for Divident detail Id:2 and savings Id:2 with message nullPost Dividends to savings failed for Divident detail Id:3 and savings Id:4 with message nullPost Dividends to savings failed for Divident detail Id:4 and savings Id:5 with message nullPost Dividends to savings failed for Divident detail Id:5 and savings Id:3 with message null
at org.apache.fineract.scheduledjobs.service.ScheduledJobRunnerServiceImpl.postDividends(ScheduledJobRunnerServiceImpl.java:409) ~[classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_151]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_151]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_151]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_151]
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) ~[spring-aop-4.0.8.RELEASE.jar:4.0.8.RELEASE]
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:201) ~[spring-aop-4.0.8.RELEASE.jar:4.0.8.RELEASE]
at com.sun.proxy.$Proxy244.postDividends(Unknown Source) ~[na:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_151]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_151]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_151]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_151]
at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:269) ~[spring-core-4.0.8.RELEASE.jar:4.0.8.RELEASE]
at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:322) ~[spring-context-support-4.0.7.RELEASE.jar:4.0.7.RELEASE]
… 3 common frames omitted
209079321 [Scheduler1_Worker-4] ERROR org.quartz.core.ErrorLogger - Job (DEFAULT.Post Dividends For SharesJobDetail1 threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception.
at org.quartz.core.JobRunShell.run(JobRunShell.java:224) ~[quartz-2.1.7.jar:na]
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557) [quartz-2.1.7.jar:na]
Caused by: org.springframework.scheduling.quartz.JobMethodInvocationFailedException: Invocation of method ‘postDividends’ on target class [class com.sun.proxy.$Proxy244] failed; nested exception is org.apache.fineract.infrastructure.jobs.exception.JobExecutionException: Post Dividends to savings failed for Divident detail Id:2 and savings Id:2 with message nullPost Dividends to savings failed for Divident detail Id:3 and savings Id:4 with message nullPost Dividends to savings failed for Divident detail Id:4 and savings Id:5 with message nullPost Dividends to savings failed for Divident detail Id:5 and savings Id:3 with message null
at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:331) ~[spring-context-support-4.0.7.RELEASE.jar:4.0.7.RELEASE]
at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:112) ~[spring-context-support-4.0.7.RELEASE.jar:4.0.7.RELEASE]
at org.quartz.core.JobRunShell.run(JobRunShell.java:213) ~[quartz-2.1.7.jar:na]
… 1 common frames omitted
Caused by: org.apache.fineract.infrastructure.jobs.exception.JobExecutionException: Post Dividends to savings failed for Divident detail Id:2 and savings Id:2 with message nullPost Dividends to savings failed for Divident detail Id:3 and savings Id:4 with message nullPost Dividends to savings failed for Divident detail Id:4 and savings Id:5 with message nullPost Dividends to savings failed for Divident detail Id:5 and savings Id:3 with message null
at org.apache.fineract.scheduledjobs.service.ScheduledJobRunnerServiceImpl.postDividends(ScheduledJobRunnerServiceImpl.java:409) ~[classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_151]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_151]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_151]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_151]
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) ~[spring-aop-4.0.8.RELEASE.jar:4.0.8.RELEASE]
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:201) ~[spring-aop-4.0.8.RELEASE.jar:4.0.8.RELEASE]
at com.sun.proxy.$Proxy244.postDividends(Unknown Source) ~[na:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_151]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_151]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_151]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_151]
at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:269) ~[spring-core-4.0.8.RELEASE.jar:4.0.8.RELEASE]
at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:322) ~[spring-context-support-4.0.7.RELEASE.jar:4.0.7.RELEASE]
… 3 common frames omitted

Thanks & Regards,

Abiy A.

Hi Dear Abiy. Have you got the solution for this problem? i am able to post dividend but i can’t see the dividend in clients linked saving account!