Dears,
We already worked on the SMS gateway and we are assuming it is working fine. On the DHIS2 side, I deleted the SMS configuration and reboot the server. The server came up and on the logs, it indicated that the SMS gateway was not configured. So I configured the gateway and set it as the default. On the log all these indications were available but then with a piece of extra information which is an error:
Error
**Apr 21 18:15:03 hmis tomcat9[52774]: * INFO 2023-04-21 18:15:03,318 Gateway configuration found: [org.hisp.dhis.sms.config.GenericHttpGatewayConfig@5f1ea06] (DefaultGatewayAdministrationService.java [tomcat-http-10])**
**Apr 21 18:15:03 hmis tomcat9[52774]: * INFO 2023-04-21 18:15:03,318 Gateway configuration found: [org.hisp.dhis.sms.config.GenericHttpGatewayConfig@5f1ea06] (DefaultGatewayAdministrationService.java [tomcat-http-10])**
**Apr 21 18:15:05 hmis tomcat9[52774]: * INFO 2023-04-21 18:15:05,971 Gateway configuration found: [org.hisp.dhis.sms.config.GenericHttpGatewayConfig@3ee856dc] (DefaultGatewayAdministrationService.java [tomcat-http-9])**
**Apr 21 18:15:06 hmis tomcat9[52774]: * INFO 2023-04-21 18:15:06,204 Gateway configuration found: [org.hisp.dhis.sms.config.GenericHttpGatewayConfig@7705f6d9] (DefaultGatewayAdministrationService.java [tomcat-http-5])**
**Apr 21 18:15:05 hmis tomcat9[52774]: * INFO 2023-04-21 18:15:05,971 Gateway configuration found: [org.hisp.dhis.sms.config.GenericHttpGatewayConfig@3ee856dc] (DefaultGatewayAdministrationService.java [tomcat-http-9])**
**Apr 21 18:15:06 hmis tomcat9[52774]: * INFO 2023-04-21 18:15:06,204 Gateway configuration found: [org.hisp.dhis.sms.config.GenericHttpGatewayConfig@7705f6d9] (DefaultGatewayAdministrationService.java [tomcat-http-5])**
**Apr 21 18:15:06 hmis tomcat9[52774]: * INFO 2023-04-21 18:15:06,380 Gateway configuration found: [org.hisp.dhis.sms.config.GenericHttpGatewayConfig@454ffaa6] (DefaultGatewayAdministrationService.java [tomcat-http-4])**
**Apr 21 18:15:06 hmis tomcat9[52774]: * INFO 2023-04-21 18:15:06,616 Gateway configuration found: [org.hisp.dhis.sms.config.GenericHttpGatewayConfig@481f35ac] (DefaultGatewayAdministrationService.java [tomcat-http-7])**
**Apr 21 18:15:06 hmis tomcat9[52774]: * INFO 2023-04-21 18:15:06,380 Gateway configuration found: [org.hisp.dhis.sms.config.GenericHttpGatewayConfig@454ffaa6] (DefaultGatewayAdministrationService.java [tomcat-http-4])**
**Apr 21 18:15:06 hmis tomcat9[52774]: * INFO 2023-04-21 18:15:06,616 Gateway configuration found: [org.hisp.dhis.sms.config.GenericHttpGatewayConfig@481f35ac] (DefaultGatewayAdministrationService.java [tomcat-http-7])**
**Apr 21 18:15:07 hmis tomcat9[52774]: * INFO 2023-04-21 18:15:07,030 Gateway configuration found: [org.hisp.dhis.sms.config.GenericHttpGatewayConfig@49f69e5c] (DefaultGatewayAdministrationService.java [tomcat-http-1])**
**Apr 21 18:15:07 hmis tomcat9[52774]: * INFO 2023-04-21 18:15:07,030 Gateway configuration found: [org.hisp.dhis.sms.config.GenericHttpGatewayConfig@49f69e5c] (DefaultGatewayAdministrationService.java [tomcat-http-1])**
**Apr 21 18:15:38 hmis tomcat9[52774]: * INFO 2023-04-21 18:15:38,107 MoH RapidPro SMPP Gateway is set as default gateway (UpdateDefaultGatewayAction.java [tomcat-http-4])**
**Apr 21 18:15:38 hmis tomcat9[52774]: * INFO 2023-04-21 18:15:38,107 MoH RapidPro SMPP Gateway is set as default gateway (UpdateDefaultGatewayAction.java [tomcat-http-4])**
**Apr 21 18:15:44 hmis tomcat9[52774]: * ERROR 2023-04-21 18:15:44,205 Initialised statement manager (StatementInterceptor.java [tomcat-http-7])**
**Apr 21 18:15:44 hmis tomcat9[52774]: * ERROR 2023-04-21 18:15:44,205 Initialised statement manager (StatementInterceptor.java [tomcat-http-7])**
Please what is the statement manager error?
When i further try to test ignoring the error, I am having this:
Error
pr 21 18:48:28 hmis tomcat9[52774]: * INFO 2023-04-21 18:48:28,101 Scheduler initiated execution of job: Vg9cgqtZUyQ, processingSendSmsAction, SMS_SEND, null (DefaultSchedulingManager.java [tomcat-http-7])
Apr 21 18:48:28 hmis tomcat9[52774]: * INFO 2023-04-21 18:48:28,127 [Level: INFO, category: SMS_SEND, time: Fri Apr 21 18:48:28 UTC 2023, message: Sending SMS] (InMemoryNotifier.java [taskScheduler-16])
Apr 21 18:48:28 hmis tomcat9[52774]: * INFO 2023-04-21 18:48:28,133 Sending SMS to [23276710495] (SmsMessageSender.java [taskScheduler-16])
Apr 21 18:48:28 hmis tomcat9[52774]: * ERROR 2023-04-21 18:48:28,298 Client error 422 Unprocessable Entity (SimplisticHttpGetGateWay.java [taskScheduler-16])
Apr 21 18:48:28 hmis tomcat9[52774]: * ERROR 2023-04-21 18:48:28,299 SMS failed, failure cause: failed (SmsMessageSender.java [taskScheduler-16])
Apr 21 18:48:28 hmis tomcat9[52774]: * INFO 2023-04-21 18:48:28,299 [Level: INFO, category: SMS_SEND, time: Fri Apr 21 18:48:28 UTC 2023, message: Message sending failed] (InMemoryNotifier.java [taskScheduler-16])
Apr 21 18:48:28 hmis tomcat9[52774]: * INFO 2023-04-21 18:48:28,300 ‘system-process’ create org.hisp.dhis.sms.outbound.OutboundSms (AuditLogUtil.java [taskScheduler-16])
Apr 21 18:48:28 hmis tomcat9[52774]: * INFO 2023-04-21 18:48:28,101 Scheduler initiated execution of job: Vg9cgqtZUyQ, processingSendSmsAction, SMS_SEND, null (DefaultSchedulingManager.java [tomcat-http-7])
Apr 21 18:48:28 hmis tomcat9[52774]: * INFO 2023-04-21 18:48:28,127 [Level: INFO, category: SMS_SEND, time: Fri Apr 21 18:48:28 UTC 2023, message: Sending SMS] (InMemoryNotifier.java [taskScheduler-16])
Apr 21 18:48:28 hmis tomcat9[52774]: * INFO 2023-04-21 18:48:28,133 Sending SMS to [23276710495] (SmsMessageSender.java [taskScheduler-16])
Apr 21 18:48:28 hmis tomcat9[52774]: * ERROR 2023-04-21 18:48:28,298 Client error 422 Unprocessable Entity (SimplisticHttpGetGateWay.java [taskScheduler-16])
Apr 21 18:48:28 hmis tomcat9[52774]: * ERROR 2023-04-21 18:48:28,299 SMS failed, failure cause: failed (SmsMessageSender.java [taskScheduler-16])
Apr 21 18:48:28 hmis tomcat9[52774]: * INFO 2023-04-21 18:48:28,299 [Level: INFO, category: SMS_SEND, time: Fri Apr 21 18:48:28 UTC 2023, message: Message sending failed] (InMemoryNotifier.java [taskScheduler-16])
Apr 21 18:48:28 hmis tomcat9[52774]: * INFO 2023-04-21 18:48:28,300 ‘system-process’ create org.hisp.dhis.sms.outbound.OutboundSms (AuditLogUtil.java [taskScheduler-16])
Dears,
After working on the SMS gateway again we are now receiving this error shown below when sending an SMS. Please why are we having Job ‘processingSendSmsAction’ failed, uid: GPXriMXYcES (AuditLogUtil.java [taskScheduler-4])?
Error
**Apr 23 04:57:43 hmis tomcat9[55150]: * INFO 2023-04-23 04:57:43,197 Scheduler initiated execution of job: GNtNnwXeSZd, processingSendSmsAction, SMS_SEND, null (DefaultSchedulingManager.java [tomcat-http-7])**
**Apr 23 04:57:43 hmis tomcat9[55150]: * INFO 2023-04-23 04:57:43,198 [Level: INFO, category: SMS_SEND, time: Sun Apr 23 04:57:43 UTC 2023, message: Sending SMS] (InMemoryNotifier.java [taskScheduler-4])**
**Apr 23 04:57:43 hmis tomcat9[55150]: * INFO 2023-04-23 04:57:43,201 Sending SMS to [23276710495] (SmsMessageSender.java [taskScheduler-4])**
**Apr 23 04:57:43 hmis tomcat9[55150]: * INFO 2023-04-23 04:57:43,210 'system-process' create org.hisp.dhis.message.MessageConversation, name: Job 'processingSendSmsAction' failed, uid: GPXriMXYcES (AuditLogUtil.java [taskScheduler-4])**
**Apr 23 04:57:43 hmis tomcat9[55150]: * INFO 2023-04-23 04:57:43,286 no recipient (SmsMessageSender.java [taskScheduler-9])**
**Apr 23 04:57:43 hmis tomcat9[55150]: * ERROR 2023-04-23 04:57:43,312 Job 'processingSendSmsAction' failed (DefaultJobInstance.java [taskScheduler-4])**
**Apr 23 04:57:43 hmis tomcat9[55150]: java.lang.NullPointerException**
**Apr 23 04:57:43 hmis tomcat9[55150]: at java.util.HashMap.merge(HashMap.java:1226)**
**Apr 23 04:57:43 hmis tomcat9[55150]: at java.util.stream.Collectors.lambda$toMap$58(Collectors.java:1320)**
**Apr 23 04:57:43 hmis tomcat9[55150]: at java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169)**
**Apr 23 04:57:43 hmis tomcat9[55150]: at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)**
**Apr 23 04:57:43 hmis tomcat9[55150]: at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1384)**
**Apr 23 04:57:43 hmis tomcat9[55150]: at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)**
**Apr 23 04:57:43 hmis tomcat9[55150]: at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)**
**Apr 23 04:57:43 hmis tomcat9[55150]: at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)**
**Apr 23 04:57:43 hmis tomcat9[55150]: at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)**
**Apr 23 04:57:43 hmis tomcat9[55150]: at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:566)**
**Apr 23 04:57:43 hmis tomcat9[55150]: at org.hisp.dhis.sms.config.SimplisticHttpGetGateWay.getUrlParameters(SimplisticHttpGetGateWay.java:160)**
**Apr 23 04:57:43 hmis tomcat9[55150]: at org.hisp.dhis.sms.config.SimplisticHttpGetGateWay.buildUrl(SimplisticHttpGetGateWay.java:149)**
**Apr 23 04:57:43 hmis tomcat9[55150]: at org.hisp.dhis.sms.config.SimplisticHttpGetGateWay.send(SimplisticHttpGetGateWay.java:113)**
**Apr 23 04:57:43 hmis tomcat9[55150]: at org.hisp.dhis.sms.config.SmsMessageSender.sendMessage(SmsMessageSender.java:223)**
**Apr 23 04:57:43 hmis tomcat9[55150]: at org.hisp.dhis.sms.config.SmsMessageSender.sendMessage(SmsMessageSender.java:151)**
**Apr 23 04:57:43 hmis tomcat9[55150]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)**
**Apr 23 04:57:43 hmis tomcat9[55150]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)**
**Apr 23 04:57:43 hmis tomcat9[55150]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)**
**Apr 23 04:57:43 hmis tomcat9[55150]: at java.lang.reflect.Method.invoke(Method.java:498)**
**Apr 23 04:57:43 hmis tomcat9[55150]: at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)**
**Apr 23 04:57:43 hmis tomcat9[55150]: at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)**
**Apr 23 04:57:43 hmis tomcat9[55150]: at com.sun.proxy.$Proxy169.sendMessage(Unknown Source)**
**Apr 23 04:57:43 hmis tomcat9[55150]: at org.hisp.dhis.sms.job.SendSmsJob.execute(SendSmsJob.java:80)**
**Apr 23 04:57:43 hmis tomcat9[55150]: at org.hisp.dhis.scheduling.DefaultJobInstance.executeJob(DefaultJobInstance.java:155)**
**Apr 23 04:57:43 hmis tomcat9[55150]: at org.hisp.dhis.scheduling.DefaultJobInstance.execute(DefaultJobInstance.java:69)**
**Apr 23 04:57:43 hmis tomcat9[55150]: at org.hisp.dhis.scheduling.DefaultSchedulingManager.lambda$internalExecuteJobConfiguration$3(DefaultSchedulingManager.java:280)**
**Apr 23 04:57:43 hmis tomcat9[55150]: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)**
**Apr 23 04:57:43 hmis tomcat9[55150]: at java.util.concurrent.FutureTask.run(FutureTask.java:266)**
**Apr 23 04:57:43 hmis tomcat9[55150]: at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)**
**Apr 23 04:57:43 hmis tomcat9[55150]: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)**
**Apr 23 04:57:43 hmis tomcat9[55150]: at java.util.concurrent.FutureTask.run(FutureTask.java:266)**
**Apr 23 04:57:43 hmis tomcat9[55150]: at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)**
**Apr 23 04:57:43 hmis tomcat9[55150]: at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)**
**Apr 23 04:57:43 hmis tomcat9[55150]: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)**
**Apr 23 04:57:43 hmis tomcat9[55150]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)**
**Apr 23 04:57:43 hmis tomcat9[55150]: at java.lang.Thread.run(Thread.java:750)**