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 63797 - java.lang.IndexOutOfBoundsException when returning to IDE having XML file opened
Summary: java.lang.IndexOutOfBoundsException when returning to IDE having XML file opened
Status: VERIFIED DUPLICATE of bug 64081
Alias: None
Product: xml
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-07 14:59 UTC by Max Sauer
Modified: 2005-09-14 09:46 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exception stack trace (1.26 KB, text/plain)
2005-09-07 15:00 UTC, Max Sauer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Max Sauer 2005-09-07 14:59:17 UTC
Following exception popped up when I was returning to the IDE from other
application, having a XML document opened:

java.lang.IndexOutOfBoundsException: Index: -1, Size: 6
	at java.util.ArrayList.add(ArrayList.java:369)
	at
org.netbeans.modules.xml.text.navigator.TreeNodeAdapter.elementAdded(TreeNodeAdapter.java:264)
	at
org.netbeans.modules.editor.structure.api.DocumentElement.fireDocumentElementEvent(DocumentElement.java:275)
	at
org.netbeans.modules.editor.structure.api.DocumentElement.childAdded(DocumentElement.java:286)
...
(whole stack trace attached)


[200509071000, JDK 1.5.0_05 b03, solaris 10 /sparc]
Comment 1 Max Sauer 2005-09-07 15:00:40 UTC
Created attachment 24576 [details]
exception stack trace
Comment 2 Max Sauer 2005-09-07 15:29:08 UTC
Reproducible almost everytime.
Comment 3 pzajac 2005-09-08 12:49:57 UTC
P3 -> P2
I can reproduce it when is modified layer.xml (apisupport module project). It is
probably  regression. 
Comment 4 Jan Chalupa 2005-09-12 10:58:26 UTC
I got this exception while going through the FeedReader tutorial.
Comment 5 Marian Petras 2005-09-14 09:30:36 UTC
I get this exception every three minutes when I am intensively editing my
layer.xml file.
Comment 6 zikmund 2005-09-14 09:38:31 UTC
Fixed in 200509131800.

*** This issue has been marked as a duplicate of 64081 ***
Comment 7 Max Sauer 2005-09-14 09:46:25 UTC
Hmm, verifying as duplicate of 64081.