← Back to team overview

dhis2-devs team mailing list archive

Re: [trunk] Automated Message Reminder.Help.

 

Gentle Reminder.

Regards

On 24 March 2015 at 13:26, Harsh Atal <harsh.atal@xxxxxxxxx> wrote:

> Hi
>
> We are trying to use the automated message reminder for tracker capture
> and have come across an error.
> Please let us know if we missed some steps/settings in order to configure
> the automated reminder system.
> These were the steps we tried:
> 1. Added a new gateway(smscountry) in the mobile configuration, made it
> default. Have checked through the dhis-web-sms send message interface , it
> is sending message.
> 2. Have set up the template messages in the program stages.
> 3. started message scheduling, clicked on execute.
> 4. Got Error message on the console:
>
> 3* INFO  2015-03-24 13:08:36,229 Aggregate process started, number of CPU
> cores: 4, Mem Total in JVM: 821 Free in JVM: 257 Max Limit: 1737:
> 0:00:00.000 (Clock.java [taskScheduler-1])
> * INFO  2015-03-24 13:08:36,229 Start to send messages in outbound:
> 0:00:00.001 (Clock.java [taskScheduler-1])
> * INFO  2015-03-24 13:08:36,235 Sending messages in outbound completed:
> 0:00:00.007 (Clock.java [taskScheduler-1])
> * INFO  2015-03-24 13:08:36,235 Aggregate process started, number of CPU
> cores: 4, Mem Total in JVM: 821 Free in JVM: 253 Max Limit: 1737:
> 0:00:00.000 (Clock.java [taskScheduler-2])
> * INFO  2015-03-24 13:08:36,237 Start to prepare reminder messages:
> 0:00:00.001 (Clock.java [taskScheduler-2])
> * ERROR 2015-03-24 13:08:36,240 Unexpected error occurred in scheduled
> task. (TaskUtils.java [taskScheduler-2])
> java.lang.NullPointerException
> at
> org.hisp.dhis.program.hibernate.HibernateProgramStageInstanceStore.getSendMesssageEvents(HibernateProgramStageInstanceStore.java:133)
> at
> org.hisp.dhis.program.DefaultProgramStageInstanceService.getSendMesssageEvents(DefaultProgramStageInstanceService.java:170)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at
> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
> at
> org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
> at
> org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
> at
> org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
> at
> org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
> at
> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
> at com.sun.proxy.$Proxy76.getSendMesssageEvents(Unknown Source)
> at
> org.hisp.dhis.scheduling.SendScheduledMessageTask.scheduleProgramStageInstanceMessage(SendScheduledMessageTask.java:164)
> at
> org.hisp.dhis.scheduling.SendScheduledMessageTask.run(SendScheduledMessageTask.java:147)
> at
> org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
>
> Any help is appreciated.
> Regards
>

Follow ups

References