This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 112065 - IndexOutOfBoundsException - Navigator Visual MIDlet
Summary: IndexOutOfBoundsException - Navigator Visual MIDlet
Status: RESOLVED WORKSFORME
Alias: None
Product: javame
Classification: Unclassified
Component: Visual Designer (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Karol Harezlak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-06 15:04 UTC by Fabiola Rios
Modified: 2009-09-18 10:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Navigator (61.99 KB, image/jpeg)
2007-08-06 15:06 UTC, Fabiola Rios
Details
IndexOutOfBoundsException (4.55 KB, text/plain)
2007-08-06 15:06 UTC, Fabiola Rios
Details
Right- IndexOutOfBoundsException (2.89 KB, text/plain)
2007-08-06 15:09 UTC, Fabiola Rios
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fabiola Rios 2007-08-06 15:04:46 UTC
build 20070806


Open a visual MIDlet file a last week build,  the navigator nodes are mix it up see picture.
and the follow exception appears.
Comment 1 Fabiola Rios 2007-08-06 15:06:07 UTC
Created attachment 46202 [details]
Navigator
Comment 2 Fabiola Rios 2007-08-06 15:06:33 UTC
Created attachment 46203 [details]
IndexOutOfBoundsException
Comment 3 Fabiola Rios 2007-08-06 15:09:13 UTC
Created attachment 46205 [details]
Right- IndexOutOfBoundsException
Comment 4 Fabiola Rios 2007-08-06 15:11:26 UTC
The first attachment (46203.txt) doesn't belong to this issue it was wrong sorry =)..!!!! 
Comment 5 Karol Harezlak 2007-08-06 15:15:47 UTC
It looks like this IOBE is not related to the wrongly painted navigator (directly). It is related to the graph
libraries. David take a look at it.
Comment 6 Karol Harezlak 2007-08-06 15:20:33 UTC
It looks like netbeans bug, not related directly to the Inspector. Do you know how to reproduce it?
Comment 7 David Kaspar 2007-08-06 15:22:40 UTC
Actually this is JDK issue. It may be caused by updating a TreeModel outside of AWT-thread.
Comment 8 David Kaspar 2007-08-07 08:58:20 UTC
I was looking around inet and found out that this exception is caused by a race-condition within the implementation of
TreeModel of a JTree that is in the navigator. Karol, could you look at the model implementation? Is the tree-model
provided and handled by us?
Comment 9 Karol Harezlak 2007-08-07 09:25:37 UTC
Could you provide link to the information about this bug? Implementation of navigator doesn't touch TreeModel at all,
everything is done underneath inside of BeanTreeView and implementation of NodeTreeView which is just extended
DefaultTreeModel. Thats way I suggested that probably it is NB problem. Anyway do we have steps to reproduce it?, if it
possible to reproduce it  we can easily fix (if it is not a VM problem).
Comment 10 David Kaspar 2007-08-07 10:20:38 UTC
Reassigning to openide/awt module. Could you look at it? Thanks.
Comment 11 David Simonek 2007-08-16 21:41:55 UTC
Passing back to dkaspar, this has nothing to do with core team. Very sorry, but I can't and won't evaluate all
exceptions that ends in Swing code. Likely that error is on the JDK side, so please try to search bugster database for
mentioned exception or try to reproduce the exception somehow. Sorry for not much help, but I know even less then you do
here... 
Comment 12 David Kaspar 2007-08-17 08:01:32 UTC
Info: Google for: ArrayIndexOutOfBoundsException VariableHeightLayoutCache$TreeStateNode.collapse
You will get a few answers all of them looks like that the issue is a race condition during tree-model modification.
Comment 13 Karol Harezlak 2007-08-17 15:25:24 UTC
Unfortunately so far I was not able to reproduce it. Probably this bug is caused by updating tree model outside of AWT
thread. I check my code for possible NOT-AWT structure nodes method calls and I it looks safe. Since I was not able to
gather enough information about this problem + no know steps to reproduce it I'm marking this issue as a INCOMPLETE.