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 64936 - [50cat] IndexOutOfBoundsException: Index: -1, Size: 6
Summary: [50cat] IndexOutOfBoundsException: Index: -1, Size: 6
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2005-09-22 21:42 UTC by rrochat
Modified: 2006-03-03 13:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rrochat 2005-09-22 21:42:23 UTC
[ BUILD # : 200509151455 ]
[ JDK VERSION : 1.5.0_05 ]

When editing a large XML file, I got this: 

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)
	at org.netbeans.modules.editor.structure.api.DocumentModel$DocumentModelModificationTransaction.addDE(DocumentModel.java:926)
	at org.netbeans.modules.editor.structure.api.DocumentModel$DocumentModelModificationTransaction.commit(DocumentModel.java:872)
	at org.netbeans.modules.editor.structure.api.DocumentModel$DocumentModelModificationTransaction.access$100(DocumentModel.java:757)
	at org.netbeans.modules.editor.structure.api.DocumentModel.updateModel(DocumentModel.java:417)
	at org.netbeans.modules.editor.structure.api.DocumentModel.access$400(DocumentModel.java:94)
	at org.netbeans.modules.editor.structure.api.DocumentModel$2.run(DocumentModel.java:391)
	at org.openide.util.Task.run(Task.java:207)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:469)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:870)
Comment 1 Martin Roskanin 2005-09-26 15:52:25 UTC
reassigning to xml module
Comment 2 Marek Fukala 2005-10-04 10:34:19 UTC
Please attach the exact text you inserted into the template along with row and
column offset in the template. Just for sure attach also the generated template
before pasting the text. Without this I am not able to fix it.
Comment 3 rrochat 2005-10-04 17:23:59 UTC
What do you mean by "generated template" ?  I don't remember for sure, but think
this happened when editing my layer.xml file which was not from any sort of
wizard or anything that I know of as a template.

Sorry, should have mentioned that I could not reproduce.  I'd asked previously
whether stacktraces should be filed even without steps to reproduce and Jesse
said that certainly NPEs should be.
I've not seen it again but if I do, will try to capture the details.
Comment 4 Marek Fukala 2005-10-05 09:45:43 UTC
Rochel, thank you for the report. However in this case I am aware of the problem
but I need some steps to reproduce it to be able to fix it. Jesse is right - it
is better to file an issue with just the exc. than filling not issue. I will try
to figure this problem out somehow. Thanks.
Comment 5 Marek Fukala 2005-11-20 17:17:18 UTC
fixed by fix of Issue #63348
Comment 6 Jiri Kovalsky 2006-03-03 13:35:29 UTC
Verifying. If you Rochelle spot this again, reopen the issue with as much
information as possible.