← Back to team overview

dhis2-devs team mailing list archive

Re: SMS Parse Error in DHIS2 2.28

 

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@xxxxxxxxx> 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@xxxxxxxxx>
> 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@xxxxxxxxx>
>> 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_comman
>>> d.html#d0e35642
>>>
>>> Regards
>>> Zubair
>>>
>>>
>>> On Thu, Nov 9, 2017 at 11:12 AM, Ocaya Stephen <stephocay@xxxxxxxxx>
>>> 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.*
>>
>>
>


-- 

*You can do anything, but not everything.*

Attachment: Screen Shot 2017-11-09 at 13.51.33.png
Description: PNG image

Attachment: Screen Shot 2017-11-09 at 13.50.41.png
Description: PNG image


Follow ups

References