Skip to main content

Array index out of range: 2 error (maybe it can be a bug)

2 replies [Last post]
Anonymous

Hi All,

I have been developing a project with LWUIT 1.3. While testing my
application with nokia S60 5th edition devices and SDK, i have encountered
unexpected exception;

java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 2
at java.lang.ArrayIndexOutOfBoundsException.(Unknown Source)
at java.util.Vector.elementAt(Unknown Source)
at com.sun.lwuit.Container.paint(Unknown Source)
at com.sun.lwuit.Component.paintInternal(Unknown Source)
at com.sun.lwuit.Container.paint(Unknown Source)
at com.sun.lwuit.Form.paint(Unknown Source)
at com.sun.lwuit.Component.paintInternal(Unknown Source)
at com.sun.lwuit.Component.paintInternal(Unknown Source)
at com.sun.lwuit.Component.paintComponent(Unknown Source)
at com.sun.lwuit.Component.paintComponent(Unknown Source)
at com.sun.lwuit.impl.LWUITImplementation.paintDirty(Unknown Source)
at com.sun.lwuit.Display.edtLoopImpl(Unknown Source)
at com.sun.lwuit.Display.mainEDTLoop(Unknown Source)
at com.sun.lwuit.RunnableWrapper.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Could it be a bug ?

Under 5th edition this happens frequently. Sometimes same exception thrown
at revalidate() method. Do you have any idea about that ?

Any helping would be appreciated!

--
Kind Regards,

Emin KURA
http://www.eminkura.com
[att1.html]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Mixa

Hi,

The first thing to check in such cases - make sure you do not work
with LWUIT outside EDT.

Mike

On Mon, Apr 12, 2010 at 5:19 PM, Emin KURA wrote:
> Hi All,
>
> I have been developing a project with LWUIT 1.3.  While testing my
> application with nokia S60 5th edition devices and SDK, i have encountered
> unexpected exception;
>
> java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 2
>         at java.lang.ArrayIndexOutOfBoundsException.(Unknown Source)
>         at java.util.Vector.elementAt(Unknown Source)
>         at com.sun.lwuit.Container.paint(Unknown Source)
>         at com.sun.lwuit.Component.paintInternal(Unknown Source)
>         at com.sun.lwuit.Container.paint(Unknown Source)
>         at com.sun.lwuit.Form.paint(Unknown Source)
>         at com.sun.lwuit.Component.paintInternal(Unknown Source)
>         at com.sun.lwuit.Component.paintInternal(Unknown Source)
>         at com.sun.lwuit.Component.paintComponent(Unknown Source)
>         at com.sun.lwuit.Component.paintComponent(Unknown Source)
>         at com.sun.lwuit.impl.LWUITImplementation.paintDirty(Unknown Source)
>         at com.sun.lwuit.Display.edtLoopImpl(Unknown Source)
>         at com.sun.lwuit.Display.mainEDTLoop(Unknown Source)
>         at com.sun.lwuit.RunnableWrapper.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)
>
>
> Could it be a bug ?
>
> Under 5th edition this happens frequently. Sometimes same exception thrown
> at revalidate() method. Do you have any idea about that ?
>
> Any helping would be appreciated!
>
>
> --
> Kind Regards,
>
> Emin KURA
> http://www.eminkura.com
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
For additional commands, e-mail: users-help@lwuit.dev.java.net

Emin KURA

Thanks a lot, yesterday i realized my mistake revalidate() method and
component adding methods was not on edt. I have fixed it

On Mon, Apr 12, 2010 at 9:30 PM, Mixa wrote:

> Hi,
>
> The first thing to check in such cases - make sure you do not work
> with LWUIT outside EDT.
>
> Mike
>
> On Mon, Apr 12, 2010 at 5:19 PM, Emin KURA wrote:
> > Hi All,
> >
> > I have been developing a project with LWUIT 1.3. While testing my
> > application with nokia S60 5th edition devices and SDK, i have
> encountered
> > unexpected exception;
> >
> > java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 2
> > at java.lang.ArrayIndexOutOfBoundsException.(Unknown
> Source)
> > at java.util.Vector.elementAt(Unknown Source)
> > at com.sun.lwuit.Container.paint(Unknown Source)
> > at com.sun.lwuit.Component.paintInternal(Unknown Source)
> > at com.sun.lwuit.Container.paint(Unknown Source)
> > at com.sun.lwuit.Form.paint(Unknown Source)
> > at com.sun.lwuit.Component.paintInternal(Unknown Source)
> > at com.sun.lwuit.Component.paintInternal(Unknown Source)
> > at com.sun.lwuit.Component.paintComponent(Unknown Source)
> > at com.sun.lwuit.Component.paintComponent(Unknown Source)
> > at com.sun.lwuit.impl.LWUITImplementation.paintDirty(Unknown
> Source)
> > at com.sun.lwuit.Display.edtLoopImpl(Unknown Source)
> > at com.sun.lwuit.Display.mainEDTLoop(Unknown Source)
> > at com.sun.lwuit.RunnableWrapper.run(Unknown Source)
> > at java.lang.Thread.run(Unknown Source)
> >
> >
> > Could it be a bug ?
> >
> > Under 5th edition this happens frequently. Sometimes same exception
> thrown
> > at revalidate() method. Do you have any idea about that ?
> >
> > Any helping would be appreciated!
> >
> >
> > --
> > Kind Regards,
> >
> > Emin KURA
> > http://www.eminkura.com
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>
>

--
Kind Regards,

Emin KURA
http://www.eminkura.com
[att1.html]