IndexOutOfBoundsException-on-startup

Bug #769363 reported by jason.p.pickering
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dhis-mobile
Won't Fix
Undecided
Unassigned

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>

Revision history for this message
jason.p.pickering (jason-p-pickering) wrote : Re: [Dhis-mobile-devs] [Bug 769363] [NEW] IndexOutOfBoundsException-on-startup
Download full text (5.0 KiB)

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 <
<email address hidden>> 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 <email address hidden>
>
>> 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 <
>> <email address hidden>> 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 <
>>> <email address hidden>> 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 <email address hidden>
>>>>
>>>>> 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: Ne...

Read more...

Changed in dhis-mobile:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.