← Back to team overview

dhis-mobile-devs team mailing list archive

Re: [Bug 769363] [NEW] IndexOutOfBoundsException-on-startup

 

Thanks for this procedure, this seems to have solved the problem.
Thanks.

I suppose the use case for being able to switch both URLs AND databases  may
be pretty weak, but I am not sure. Does not seem to be a burning issue at
the moment.

Regards,
Jason


On Mon, Apr 25, 2011 at 9:32 AM, TRAN NGUYEN Minh Luan <
trannguyenminhluan@xxxxxxxxx> wrote:

> Hi,
>
> I checked with your server and newest client. I still cant get the error.
>
> I got this error once when I use emulator to connect one server (1st
> database), and then change to another server (2nd database which support
> multi language). However, this change of server is illogic (we change url
> not database, is it right ?), one mobile connect to one server (it means
> only one database).
>
> If you use emulator, please check the "delete RMS when start midlet"
> option, and before exit midlet, uncheck it before restart midlet.
>
> If you use mobile, please send the new jar file to clean old RMS being
> attached with old jar file or use the ReInitilize function to clear old
> data.
>
> Hope it will fix the problem.
>
>
> Regards,
> Minh Luan
>
> 2011/4/25 Jason Pickering <jason.p.pickering@xxxxxxxxx>
>
>> OK. Should be working now.
>>
>> I was able to login to the web interface. DId not try through the client
>> yet .
>>
>> Thanks for taking a look.
>> Regards,
>> Jason
>>
>>
>> On Mon, Apr 25, 2011 at 6:14 AM, Jason Pickering <
>> jason.p.pickering@xxxxxxxxx> wrote:
>>
>>> Hi There.
>>>
>>> I have created an account on my server for you if you want to test.
>>>
>>> Server address = http://dhis2.net/dhis
>>>  User name = MinhLuan
>>> Password = MinhLuan1
>>>
>>> Here is the other info.
>>>
>>> Server = rev 3380
>>> Mobile client = rev 115
>>> Microemulator = rev 2491
>>>
>>> Best regards,
>>> Jason
>>>
>>>
>>> On Mon, Apr 25, 2011 at 5:46 AM, TRAN NGUYEN Minh Luan <
>>> trannguyenminhluan@xxxxxxxxx> wrote:
>>>
>>>> Hi,
>>>>
>>>> Could you tell  me the version of both client and server code ? I could
>>>> not re-create this bug with the newest code.
>>>>
>>>> 2011/4/23 jason.p.pickering <769363@xxxxxxxxxxxxxxxxxx>
>>>>
>>>>> Public bug reported:
>>>>>
>>>>> Trunk code running on the Microemulator.
>>>>>
>>>>> Exception in thread "event-thread" java.lang.IndexOutOfBoundsException
>>>>>        at
>>>>> javax.microedition.lcdui.ChoiceGroup.getString(ChoiceGroup.java:327)
>>>>>        at org.hisp.dhis.mobile.ui.DHISMIDlet.T(Unknown Source)
>>>>>        at org.hisp.dhis.mobile.ui.DHISMIDlet.B(Unknown Source)
>>>>>        at org.hisp.dhis.mobile.ui.DHISMIDlet.commandAction(Unknown
>>>>> Source)
>>>>>        at
>>>>> javax.microedition.lcdui.Display$DisplayAccessor$1.run(Display.java:2
>>>>> 09)
>>>>>        at
>>>>> org.microemu.device.ui.EventDispatcher$RunnableEvent.run(EventDispatc
>>>>> her.java:246)
>>>>>        at
>>>>> org.microemu.device.ui.EventDispatcher.post(EventDispatcher.java:164)
>>>>>
>>>>>        at
>>>>> org.microemu.device.ui.EventDispatcher.run(EventDispatcher.java:99)
>>>>>        at java.lang.Thread.run(Unknown Source)
>>>>>
>>>>> C:\dhis2\microemulator-trunk\microemulator\target>
>>>>>
>>>>> ** Affects: dhis-mobile
>>>>>     Importance: Undecided
>>>>>         Status: New
>>>>>
>>>>> --
>>>>> You received this bug notification because you are a member of DHIS
>>>>> mobile developers, which is subscribed to dhis-mobile.
>>>>>
>>>>> https://bugs.launchpad.net/bugs/769363
>>>>>
>>>>> Title:
>>>>>  IndexOutOfBoundsException-on-startup
>>>>>
>>>>> Status in DHIS Mobile:
>>>>>  New
>>>>>
>>>>> Bug description:
>>>>>  Trunk code running on the Microemulator.
>>>>>
>>>>>  Exception in thread "event-thread" java.lang.IndexOutOfBoundsException
>>>>>          at
>>>>> javax.microedition.lcdui.ChoiceGroup.getString(ChoiceGroup.java:327)
>>>>>          at org.hisp.dhis.mobile.ui.DHISMIDlet.T(Unknown Source)
>>>>>          at org.hisp.dhis.mobile.ui.DHISMIDlet.B(Unknown Source)
>>>>>          at org.hisp.dhis.mobile.ui.DHISMIDlet.commandAction(Unknown
>>>>> Source)
>>>>>          at
>>>>> javax.microedition.lcdui.Display$DisplayAccessor$1.run(Display.java:2
>>>>>  09)
>>>>>          at
>>>>> org.microemu.device.ui.EventDispatcher$RunnableEvent.run(EventDispatc
>>>>>  her.java:246)
>>>>>          at
>>>>> org.microemu.device.ui.EventDispatcher.post(EventDispatcher.java:164)
>>>>>
>>>>>          at
>>>>> org.microemu.device.ui.EventDispatcher.run(EventDispatcher.java:99)
>>>>>          at java.lang.Thread.run(Unknown Source)
>>>>>
>>>>>  C:\dhis2\microemulator-trunk\microemulator\target>
>>>>>
>>>>> _______________________________________________
>>>>> Mailing list: https://launchpad.net/~dhis-mobile-devs
>>>>> Post to     : dhis-mobile-devs@xxxxxxxxxxxxxxxxxxx
>>>>> Unsubscribe : https://launchpad.net/~dhis-mobile-devs
>>>>> More help   : https://help.launchpad.net/ListHelp
>>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Jason P. Pickering
>>> email: jason.p.pickering@xxxxxxxxx
>>> tel:+260974901293
>>>
>>
>>
>>
>> --
>> Jason P. Pickering
>> email: jason.p.pickering@xxxxxxxxx
>> tel:+260974901293
>>
>
>


-- 
Jason P. Pickering
email: jason.p.pickering@xxxxxxxxx
tel:+260974901293

-- 
You received this bug notification because you are a member of DHIS
mobile developers, which is subscribed to dhis-mobile.
https://bugs.launchpad.net/bugs/769363

Title:
  IndexOutOfBoundsException-on-startup

Status in DHIS Mobile:
  Won't Fix

Bug description:
  Trunk code running on the Microemulator.

  Exception in thread "event-thread" java.lang.IndexOutOfBoundsException
          at javax.microedition.lcdui.ChoiceGroup.getString(ChoiceGroup.java:327)
          at org.hisp.dhis.mobile.ui.DHISMIDlet.T(Unknown Source)
          at org.hisp.dhis.mobile.ui.DHISMIDlet.B(Unknown Source)
          at org.hisp.dhis.mobile.ui.DHISMIDlet.commandAction(Unknown Source)
          at javax.microedition.lcdui.Display$DisplayAccessor$1.run(Display.java:2
  09)
          at org.microemu.device.ui.EventDispatcher$RunnableEvent.run(EventDispatc
  her.java:246)
          at org.microemu.device.ui.EventDispatcher.post(EventDispatcher.java:164)

          at org.microemu.device.ui.EventDispatcher.run(EventDispatcher.java:99)
          at java.lang.Thread.run(Unknown Source)

  C:\dhis2\microemulator-trunk\microemulator\target>


References