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.
Build: NetBeans IDE Dev (Build 200811060201) VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33 OS: Windows Vista, 6.0, x86 User Comments: sunbiz: Generating JSF pages from Entity Classes threw this exception alexjava: The exception below happened while I was resolving a series of conflicts related to the lack of some libraries on this project that I am importing manually by netbeans 6.1 instead of leaving the automatic procedure for netbeans 6.5. In another PC instead I tried the automatic procedure for import the same project and the problem has not presented. vaccaridaniele: In the Servlets panel while editing web.xml and deleting some servlet. sunbiz: Generating JSF pages from Entity Classes threw this exception Stacktrace: java.lang.IndexOutOfBoundsException: Index: -1, Size: 18 at java.util.ArrayList.add(ArrayList.java:367) at org.netbeans.modules.xml.text.navigator.TreeNodeAdapter.elementAdded(TreeNodeAdapter.java:333) at org.netbeans.modules.editor.structure.api.DocumentElement.fireDocumentElementEvent(DocumentElement.java:364) at org.netbeans.modules.editor.structure.api.DocumentElement.fireDocumentElementEvent(DocumentElement.java:352) at org.netbeans.modules.editor.structure.api.DocumentElement.childAdded(DocumentElement.java:374) at org.netbeans.modules.editor.structure.api.DocumentModel$DocumentModelModificationTransaction.fireElementAddedEvent(DocumentModel.java:1050)
Created attachment 73456 [details] stacktrace
Valid bug, elementAdded() should handle the case when getVisibleChildIndex() returns possible return value of -1, resulting in an invalid insertIndex.
There are plans to re-write the XML navigator (see issue 126968) which will fix this issue
Build: NetBeans IDE 6.5.1 (Build 200903060201) VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03 OS: Windows XP, 5.1, x86 User Comments: Stacktrace: java.lang.IndexOutOfBoundsException: Index: -1, Size: 25 at java.util.ArrayList.add(ArrayList.java:367) at org.netbeans.modules.xml.text.navigator.TreeNodeAdapter.elementAdded(TreeNodeAdapter.java:333) at org.netbeans.modules.editor.structure.api.DocumentElement.fireDocumentElementEvent(DocumentElement.java:364) at org.netbeans.modules.editor.structure.api.DocumentElement.fireDocumentElementEvent(DocumentElement.java:352) at org.netbeans.modules.editor.structure.api.DocumentElement.childAdded(DocumentElement.java:374) at org.netbeans.modules.editor.structure.api.DocumentModel$DocumentModelModificationTransaction.fireElementAddedEvent(DocumentModel.java:1050)
Created attachment 82716 [details] stacktrace
Created attachment 93875 [details] stacktrace
Created attachment 101949 [details] stacktrace
No reports for >= 2.5 years; possibly an obsolete issue. In addition the XML navigator will be most probably rewritten in the future.