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 154502 - org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is not permitted.
Summary: org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: An attempt was made to inser...
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Jesse Glick
URL: http://statistics.netbeans.org/except...
Keywords: RANDOM
: 164281 (view as bug list)
Depends on:
Blocks: 111862
  Show dependency tree
 
Reported: 2008-12-03 16:19 UTC by Jesse Glick
Modified: 2009-11-02 10:58 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 57772


Attachments
stacktrace (4.11 KB, text/plain)
2008-12-03 16:19 UTC, Jesse Glick
Details
stacktrace (1.93 KB, text/plain)
2009-02-02 23:57 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2008-12-03 16:19:42 UTC
Build: NetBeans IDE Dev (Build 081202)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Linux, 2.6.27-9-generic, i386

User Comments:
jglick: Editing an Ant script.

emiddio: editing build.xml

jglick: Editing an Ant script.



Stacktrace: 
org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is not permitted. 
        at com.sun.org.apache.xerces.internal.dom.ParentNode.internalInsertBefore(ParentNode.java:356)
        at com.sun.org.apache.xerces.internal.dom.ParentNode.insertBefore(ParentNode.java:284)
        at com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.insertBefore(CoreDocumentImpl.java:389)
        at com.sun.org.apache.xerces.internal.dom.NodeImpl.appendChild(NodeImpl.java:235)
        at com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.cloneNode(CoreDocumentImpl.java:347)
        at com.sun.org.apache.xerces.internal.dom.DocumentImpl.cloneNode(DocumentImpl.java:155)
Comment 1 Jesse Glick 2008-12-03 16:19:52 UTC
Created attachment 74490 [details]
stacktrace
Comment 2 Jesse Glick 2008-12-03 16:39:41 UTC
Never saw it before. Perhaps a race condition?
Comment 3 Jesse Glick 2009-02-02 23:56:57 UTC
Build: NetBeans IDE Dev (Build 090202)
VM: Java HotSpot(TM) Client VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03
OS: Linux, 2.6.27-11-generic, i386

User Comments: 


Stacktrace: 
org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is not permitted. 
        at com.sun.org.apache.xerces.internal.dom.ParentNode.internalInsertBefore(ParentNode.java:356)
        at com.sun.org.apache.xerces.internal.dom.ParentNode.insertBefore(ParentNode.java:284)
        at com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.insertBefore(CoreDocumentImpl.java:389)
        at com.sun.org.apache.xerces.internal.dom.NodeImpl.appendChild(NodeImpl.java:235)
        at com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.cloneNode(CoreDocumentImpl.java:347)
        at com.sun.org.apache.xerces.internal.dom.DocumentImpl.cloneNode(DocumentImpl.java:155)
Comment 4 Jesse Glick 2009-02-02 23:57:08 UTC
Created attachment 76490 [details]
stacktrace
Comment 5 Jesse Glick 2009-04-14 04:33:53 UTC
This is failing:

  !ownerDocument.isKidOK(this, newChild)

No idea why. All accesses to the Document are controlled by a monitor so there should be no multi-threaded access (see
issue #111862).

No clue how to reproduce, nor how to fix without reproducing.
Comment 6 Jesse Glick 2009-05-01 20:06:36 UTC
Downgraded to INFO exception and continue: core-main #7c838697f84b
Comment 7 Jesse Glick 2009-05-01 20:21:16 UTC
*** Issue 164281 has been marked as a duplicate of this issue. ***
Comment 8 Quality Engineering 2009-05-02 06:47:10 UTC
Integrated into 'main-golden', will be available in build *200905020201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/7c838697f84b
User: Jesse Glick <jglick@netbeans.org>
Log: #154502: work around unreproducible DOMException.
Comment 9 Quality Engineering 2009-11-02 10:58:59 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX