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 244218

Summary: IllegalArgumentException: getParent() called for DE (-2021340643)["..." (content) <0-0> ''] which is not in the elements list!
Product: xml Reporter: tdnorb
Component: Tree-EditAssignee: Svata Dedic <sdedic>
Status: RESOLVED WONTFIX    
Severity: normal CC: MackSix
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 209432
Attachments: stacktrace
stacktrace

Description tdnorb 2014-04-30 20:54:21 UTC
This bug was originally marked as duplicate of bug 165916, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.0 (Build 201403101706)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b70, Java(TM) SE Runtime Environment, 1.8.0-b132
OS: Mac OS X

User Comments:
tdnorb: No idea what caused this.  Doing some internal XML parsing in a java freeform project




Stacktrace: 
java.lang.IllegalArgumentException: getParent() called for DE (-2021340643)["..." (content) <0-0> ''] which is not in the elements list!
   at org.netbeans.modules.editor.structure.api.DocumentModel.getParent(DocumentModel.java:669)
   at org.netbeans.modules.editor.structure.api.DocumentElement.getParentElement(DocumentElement.java:255)
   at org.netbeans.modules.editor.structure.api.DocumentModel$DocumentModelModificationTransaction.fireElementAddedEvent(DocumentModel.java:1046)
   at org.netbeans.modules.editor.structure.api.DocumentModel$DocumentModelModificationTransaction.commit(DocumentModel.java:996)
   at org.netbeans.modules.editor.structure.api.DocumentModel$DocumentModelModificationTransaction.access$200(DocumentModel.java:848)
   at org.netbeans.modules.editor.structure.api.DocumentModel$2.run(DocumentModel.java:522)
Comment 1 tdnorb 2014-04-30 20:54:23 UTC
Created attachment 147038 [details]
stacktrace
Comment 2 MackSix 2015-07-14 23:53:26 UTC
Created attachment 154632 [details]
stacktrace

I was running a JSF project from the Projects context menu with Wildfly Server 8.0.2.
Comment 3 MackSix 2015-07-15 00:00:57 UTC
When running the JSF project (Maven), I had the WildFly configuration file standalone-full.xml open in the editor. The configuration file is modified when a project is deployed.
Comment 4 Martin Balin 2016-07-07 09:56:54 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss