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.
Summary: | org.w3c.dom.DOMException: WRONG_DOCUMENT_ERR: A node is used in a different document than the one that created it. | ||
---|---|---|---|
Product: | obsolete | Reporter: | Marian Mirilovic <mmirilovic> |
Component: | visualweb | Assignee: | Peter Zavadsky <pzavadsky> |
Status: | CLOSED INCOMPLETE | ||
Severity: | blocker | CC: | boske3, ermanbas, mkhramov, neilyboy, sprinx, sunbiz, yyok |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | Windows XP | ||
URL: | http://statistics.netbeans.org/exceptions/detail.do?id=3605 | ||
Issue Type: | DEFECT | Exception Reporter: | 3605 |
Attachments: |
stacktrace
stacktrace |
Description
Marian Mirilovic
2008-10-27 10:39:59 UTC
There were already filled issues similar to this, but we were unable to reproduce those. Could you, please, provide steps how to reproduce that? It is hard (almost impossible) to guess what went wrong, without that. Thanks. Build: NetBeans IDE 6.1 (Build 200805300101) VM: Java HotSpot(TM) Client VM, 11.0-b12, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b25 OS: Windows XP, 5.1, x86 User Comments: Stacktrace: org.w3c.dom.DOMException: WRONG_DOCUMENT_ERR: A node is used in a different document than the one that created it. at org.apache.xerces.dom.RangeImpl.setEnd(RangeImpl.java:0) at org.netbeans.modules.visualweb.designer.jsf.text.DomRangeImpl.setMark(DomRangeImpl.java:287) at org.netbeans.modules.visualweb.text.DesignerCaret.handleSetDot(DesignerCaret.java:976) at org.netbeans.modules.visualweb.text.DesignerCaret.setDot(DesignerCaret.java:863) at org.netbeans.modules.visualweb.text.DesignerCaret.positionCaret(DesignerCaret.java:279) at org.netbeans.modules.visualweb.text.DesignerCaret.adjustCaret(DesignerCaret.java:467) Created attachment 73042 [details]
stacktrace
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: Double clicked on VIR_ApacheDerby under Data Source References for the sample VIR project Stacktrace: org.w3c.dom.DOMException: WRONG_DOCUMENT_ERR: A node is used in a different document than the one that created it. at org.apache.xerces.dom.RangeImpl.setEnd(RangeImpl.java:0) at org.netbeans.modules.visualweb.designer.jsf.text.DomRangeImpl.setMark(DomRangeImpl.java:287) at org.netbeans.modules.visualweb.text.DesignerCaret.handleSetDot(DesignerCaret.java:987) at org.netbeans.modules.visualweb.text.DesignerCaret.setDot(DesignerCaret.java:864) at org.netbeans.modules.visualweb.text.DesignerPaneBase.setCaretDot(DesignerPaneBase.java:1703) at org.netbeans.modules.visualweb.designer.InteractionManager.updateDropState(InteractionManager.java:879) Created attachment 73457 [details]
stacktrace
Product Version: NetBeans IDE 6.1 (Build 200805300101) Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b12 Steps to reproduce: Create page and set page layout to flow mode. Create pagefragment document and add component on it (for example webuijsf:image ). Add page fragment on page. Close and reopen page. Now click on free page area then click on image in pagefragment area. Exception is thrown Reproduced now in 6.5 build 200811100001 We have the same Problem on RMModelHelper : org.w3c.dom.DOMException: WRONG_DOCUMENT_ERR: A node is used in a different document than the one that created it. at org.apache.xerces.dom.ParentNode.internalInsertBefore(Unknown Source) at org.apache.xerces.dom.ParentNode.insertBefore(Unknown Source) at com.inubit.ibis.configuration.webservice.qos.model.DocumentModelAccessImpl.insertBefore(DocumentModelAccessImpl.java:268) at org.netbeans.modules.xml.xam.dom.AbstractDocumentComponent.insertBefore(AbstractDocumentComponent.java:487) at org.netbeans.modules.xml.xam.dom.AbstractDocumentComponent.insertAtIndexQuietly(AbstractDocumentComponent.java:295) at org.netbeans.modules.xml.xam.dom.AbstractDocumentComponent.insertAtIndexQuietly(AbstractDocumentComponent.java:74) at org.netbeans.modules.xml.xam.AbstractComponent._insertAtIndexQuietly(AbstractComponent.java:122) at org.netbeans.modules.xml.xam.AbstractComponent.addChild(AbstractComponent.java:301) at org.netbeans.modules.xml.xam.AbstractComponent.addAfter(AbstractComponent.java:253) at org.netbeans.modules.xml.wsdl.model.impl.BindingImpl.addExtensibilityElement(BindingImpl.java:83) at org.netbeans.modules.websvc.wsitconf.wsdlmodelext.PolicyModelHelper.createPolicy(PolicyModelHelper.java:218) at org.netbeans.modules.websvc.wsitconf.wsdlmodelext.RMModelHelper.enableRM(RMModelHelper.java:134) Our insertBefore Method is the following : public void insertBefore(Node node, Node newChild, Node refChild, DocumentModelAccess.NodeUpdater updater) { node.insertBefore(newChild, refChild); } pleease fix. We are not able to use the good NetbeansHelpers. v/c |