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 20051211] Steps: 1) create J2EE application 2) generate CMP bean from database ERROR: java.lang.IllegalArgumentException: getParent() called for DE (30042642)["..." (content) <5927-5927> ''] w ... is thrown
Created attachment 27752 [details] stack trace
The exception is relatively harmless (affects only the XML navigator) thought it is very visible to user. I am decreasing to P2, I will fix it to 5.0. The problem is caused by my recent changes in the document model infrastructure. All tests passes, but apparently not everything is covered :-(.
fixed in trunk - QE, please verify and Petre, please review the code change. The problem was caused by an attempt to remove an already removed element from the document model. Fixed by testing whether the element has already been removed, and if so do not try it again. Checking in xml/tageditorsupport/src/org/netbeans/modules/editor/structure/api/DocumentModel.java; /cvs/xml/tageditorsupport/src/org/netbeans/modules/editor/structure/api/DocumentModel.java,v <-- DocumentModel.java new revision: 1.25; previous revision: 1.24 done Checking in xml/text-edit/src/org/netbeans/modules/xml/text/structure/XMLDocumentModelProvider.java; /cvs/xml/text-edit/src/org/netbeans/modules/xml/text/structure/XMLDocumentModelProvider.java,v <-- XMLDocumentModelProvider.java new revision: 1.17; previous revision: 1.16 done
Petre, can you review the fix?
I'm OK with the fix.
The fix was verified in trunk daily build 20051213. Fix can be merge in NB 5.0 branch.
*** Issue 70245 has been marked as a duplicate of this issue. ***
Although this issue is Q-build stopper we have no special Q-build branch. The fix must go just to trunk and release50 branch.
fixes merged to release50 branch.
[build 20051218 release50 branch]