SMS Parse Error in DHIS2 2.28

Dear Zubair and the DHIS2 Mobile team,

I recently upgraded the DHIS2 to 2.28 and somehow the DHIS2 SMS Parsing seems not to work. Please see attached error logs.

  • INFO 2017-11-09 13:02:39,973 ‘system-process’ update org.hisp.dhis.user.UserCredentials, name: Systemuser Mobile, uid: QQudwuq4KmZ (AuditLogUtil.java [http-bio-8080-exec-18])

  • INFO 2017-11-09 13:02:42,857 Received SMS: StKA a.24 (SmsConsumerThread.java [taskScheduler-21])

java.lang.ArrayIndexOutOfBoundsException

Thanks for your immediate support to troubleshoot the system

···

You can do anything, but not everything.

Hi Stephen,
I can see you are using “.” in sms Text. Just make sure that sms commands are created properly. Your sms commands should comply with rules provided in the documentation.

https://docs.dhis2.org/master/en/user/html/mobile_sms_command.html#d0e35642

Regards

Zubair

···

On Thu, Nov 9, 2017 at 11:12 AM, Ocaya Stephen stephocay@gmail.com wrote:

Dear Zubair and the DHIS2 Mobile team,

I recently upgraded the DHIS2 to 2.28 and somehow the DHIS2 SMS Parsing seems not to work. Please see attached error logs.

  • INFO 2017-11-09 13:02:39,973 ‘system-process’ update org.hisp.dhis.user.UserCredentials, name: Systemuser Mobile, uid: QQudwuq4KmZ (AuditLogUtil.java [http-bio-8080-exec-18])
  • INFO 2017-11-09 13:02:42,857 Received SMS: StKA a.24 (SmsConsumerThread.java [taskScheduler-21])

java.lang.ArrayIndexOutOfBoundsException

Thanks for your immediate support to troubleshoot the system

You can do anything, but not everything.

Dear Zubair,

Thanks for a quick response.

The Command uses a KEY_VALUE_PARSER between data element codes and the values separated by a dot (".").

See attached screenshot for a sample command. Is there anything seemingly wrong?

Regards

···

On Thu, Nov 9, 2017 at 1:20 PM, Zubair Asghar Raja zubair@dhis2.org wrote:

Hi Stephen,
I can see you are using “.” in sms Text. Just make sure that sms commands are created properly. Your sms commands should comply with rules provided in the documentation.

https://docs.dhis2.org/master/en/user/html/mobile_sms_command.html#d0e35642

Regards

Zubair

On Thu, Nov 9, 2017 at 11:12 AM, Ocaya Stephen stephocay@gmail.com wrote:

Dear Zubair and the DHIS2 Mobile team,

I recently upgraded the DHIS2 to 2.28 and somehow the DHIS2 SMS Parsing seems not to work. Please see attached error logs.

  • INFO 2017-11-09 13:02:39,973 ‘system-process’ update org.hisp.dhis.user.UserCredentials, name: Systemuser Mobile, uid: QQudwuq4KmZ (AuditLogUtil.java [http-bio-8080-exec-18])
  • INFO 2017-11-09 13:02:42,857 Received SMS: StKA a.24 (SmsConsumerThread.java [taskScheduler-21])

java.lang.ArrayIndexOutOfBoundsException

Thanks for your immediate support to troubleshoot the system

You can do anything, but not everything.

You can do anything, but not everything.

Yes.
StKA a.24

StKA is supposed to be command name. Whereas in the snapshot I can see it named as PMTCT.

Secondly, Field Separator ( in your case “.” ) cannot be used for assigning values to parameters. You can try this a=24 and I hope it will work.

Regards

Zubair

···

On Thu, Nov 9, 2017 at 11:26 AM, Ocaya Stephen stephocay@gmail.com wrote:

Dear Zubair,

Thanks for a quick response.

The Command uses a KEY_VALUE_PARSER between data element codes and the values separated by a dot (".").

See attached screenshot for a sample command. Is there anything seemingly wrong?

Regards

On Thu, Nov 9, 2017 at 1:20 PM, Zubair Asghar Raja zubair@dhis2.org wrote:

Hi Stephen,
I can see you are using “.” in sms Text. Just make sure that sms commands are created properly. Your sms commands should comply with rules provided in the documentation.

https://docs.dhis2.org/master/en/user/html/mobile_sms_command.html#d0e35642

Regards

Zubair

You can do anything, but not everything.

On Thu, Nov 9, 2017 at 11:12 AM, Ocaya Stephen stephocay@gmail.com wrote:

Dear Zubair and the DHIS2 Mobile team,

I recently upgraded the DHIS2 to 2.28 and somehow the DHIS2 SMS Parsing seems not to work. Please see attached error logs.

  • INFO 2017-11-09 13:02:39,973 ‘system-process’ update org.hisp.dhis.user.UserCredentials, name: Systemuser Mobile, uid: QQudwuq4KmZ (AuditLogUtil.java [http-bio-8080-exec-18])
  • INFO 2017-11-09 13:02:42,857 Received SMS: StKA a.24 (SmsConsumerThread.java [taskScheduler-21])

java.lang.ArrayIndexOutOfBoundsException

Thanks for your immediate support to troubleshoot the system

You can do anything, but not everything.

Dear Zubair,

We have a number of Keywords (refer to attached list), BUT all the commands seems not to be processed because of an java.lang.ArrayIndexOutOfBoundsException Error

Please see the same issues with an SMS using pmtct command name.

ALSO, we had noted that reimport fucntionality of the received SMS is not working.

Regards

···

On Thu, Nov 9, 2017 at 1:49 PM, Zubair Asghar Raja zubair@dhis2.org wrote:

Yes.
StKA a.24

StKA is supposed to be command name. Whereas in the snapshot I can see it named as PMTCT.

Secondly, Field Separator ( in your case “.” ) cannot be used for assigning values to parameters. You can try this a=24 and I hope it will work.

Regards

Zubair

On Thu, Nov 9, 2017 at 11:26 AM, Ocaya Stephen stephocay@gmail.com wrote:

Dear Zubair,

Thanks for a quick response.

The Command uses a KEY_VALUE_PARSER between data element codes and the values separated by a dot (".").

See attached screenshot for a sample command. Is there anything seemingly wrong?

Regards

On Thu, Nov 9, 2017 at 1:20 PM, Zubair Asghar Raja zubair@dhis2.org wrote:

Hi Stephen,
I can see you are using “.” in sms Text. Just make sure that sms commands are created properly. Your sms commands should comply with rules provided in the documentation.

https://docs.dhis2.org/master/en/user/html/mobile_sms_command.html#d0e35642

Regards

Zubair

You can do anything, but not everything.

On Thu, Nov 9, 2017 at 11:12 AM, Ocaya Stephen stephocay@gmail.com wrote:

Dear Zubair and the DHIS2 Mobile team,

I recently upgraded the DHIS2 to 2.28 and somehow the DHIS2 SMS Parsing seems not to work. Please see attached error logs.

  • INFO 2017-11-09 13:02:39,973 ‘system-process’ update org.hisp.dhis.user.UserCredentials, name: Systemuser Mobile, uid: QQudwuq4KmZ (AuditLogUtil.java [http-bio-8080-exec-18])
  • INFO 2017-11-09 13:02:42,857 Received SMS: StKA a.24 (SmsConsumerThread.java [taskScheduler-21])

java.lang.ArrayIndexOutOfBoundsException

Thanks for your immediate support to troubleshoot the system

You can do anything, but not everything.

You can do anything, but not everything.

Dear Zubair,

Following our chat conversion, it seems that the code value separator is missing in DHIS2 2.28 and rather has a field separator which does different things.

Sending PMTCT a=2 seems to work instead of PMTCT a.2 (Our separator)

There is also no option for Code Value separator in the command configurations.

regards

···

On Thu, Nov 9, 2017 at 1:53 PM, Ocaya Stephen stephocay@gmail.com wrote:

Dear Zubair,

We have a number of Keywords (refer to attached list), BUT all the commands seems not to be processed because of an java.lang.ArrayIndexOutOfBoundsException Error

Please see the same issues with an SMS using pmtct command name.

ALSO, we had noted that reimport fucntionality of the received SMS is not working.

Regards

On Thu, Nov 9, 2017 at 1:49 PM, Zubair Asghar Raja zubair@dhis2.org wrote:

Yes.
StKA a.24

StKA is supposed to be command name. Whereas in the snapshot I can see it named as PMTCT.

Secondly, Field Separator ( in your case “.” ) cannot be used for assigning values to parameters. You can try this a=24 and I hope it will work.

Regards

Zubair

You can do anything, but not everything.

On Thu, Nov 9, 2017 at 11:26 AM, Ocaya Stephen stephocay@gmail.com wrote:

Dear Zubair,

Thanks for a quick response.

The Command uses a KEY_VALUE_PARSER between data element codes and the values separated by a dot (".").

See attached screenshot for a sample command. Is there anything seemingly wrong?

Regards

On Thu, Nov 9, 2017 at 1:20 PM, Zubair Asghar Raja zubair@dhis2.org wrote:

Hi Stephen,
I can see you are using “.” in sms Text. Just make sure that sms commands are created properly. Your sms commands should comply with rules provided in the documentation.

https://docs.dhis2.org/master/en/user/html/mobile_sms_command.html#d0e35642

Regards

Zubair

You can do anything, but not everything.

On Thu, Nov 9, 2017 at 11:12 AM, Ocaya Stephen stephocay@gmail.com wrote:

Dear Zubair and the DHIS2 Mobile team,

I recently upgraded the DHIS2 to 2.28 and somehow the DHIS2 SMS Parsing seems not to work. Please see attached error logs.

  • INFO 2017-11-09 13:02:39,973 ‘system-process’ update org.hisp.dhis.user.UserCredentials, name: Systemuser Mobile, uid: QQudwuq4KmZ (AuditLogUtil.java [http-bio-8080-exec-18])
  • INFO 2017-11-09 13:02:42,857 Received SMS: StKA a.24 (SmsConsumerThread.java [taskScheduler-21])

java.lang.ArrayIndexOutOfBoundsException

Thanks for your immediate support to troubleshoot the system

You can do anything, but not everything.

You can do anything, but not everything.