DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13910>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13910 Xerces-J 2.1+: NullPointerException while trying to replaceChild of Node Summary: Xerces-J 2.1+: NullPointerException while trying to replaceChild of Node Product: Xerces2-J Version: 2.1.0 Platform: Sun OS/Version: Solaris Status: NEW Severity: Normal Priority: Other Component: DOM AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Source code: ------------ Node parent=node.getParentNode(); parent.replaceChild(newnode, node); (it works with Xerces-J 2.0, but fails with Xerces-J 2.1.0 & 2.2.0) Exception stack trace: ---------------------- java.lang.NullPointerException at org.apache.xerces.dom.NodeIteratorImpl.matchNodeOrParent(Unknown Source) at org.apache.xerces.dom.NodeIteratorImpl.removeNode(Unknown Source) at org.apache.xerces.dom.DocumentImpl.removingNode(Unknown Source) at org.apache.xerces.dom.ParentNode.internalRemoveChild(Unknown Source) at org.apache.xerces.dom.ParentNode.replaceChild(Unknown Source) at MyServlet.myMethod(...) Problem context: ---------------- I'm using an XML with some namespaces, that has been parsed with a DocumentBuilder created by a documentBuilderFactory with namespace awareness set to false (to ignore them). But I don't know if this is the cause. Platform: --------- Sun Enterprise 450 / Solaris 8 / iPlanet Web Server 4.1SP9 (as servlet container) / JDK 1.2.2 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
