You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xerces.apache.org by travis greer <tr...@hotmail.com> on 2000/03/27 07:01:32 UTC
Xerces-J 1.0.3 and HotSpot jvm.dll?
Has anyone had any problems running xerces java 1.0.3? I've been running
some code using the hotspot jvm.dll and run into a null pointer consistently
the 40th time through. Each time a new InputStream is parsed and a new
document processed. Running the classic jvm.dll causes no such problem.
I'm a little confused (and I apologize if this is covering old ground, I
couldn't find any reference in the archives).
Thanks,
Travis
private Message[] processMBXML(Document doc) {
Element root = (Element) doc.getDocumentElement();
// Get the first instance of "messages" tree
NodeList messages = root.getElementsByTagName("MESSAGES");
NodeList children = root.getChildNodes();
for(int i = 0; i < messages.getLength(); i++) {
Node n = messages.item(i);
if ( n.getNodeName().equals("MESSAGES") ) {
return getMessages(n);
}
}
return null;
}
Here is the stack trace:
*E,2000/03/22 12:28:44.14 PST,FOO 39> java.lang.NullPointerException
*E,2000/03/22 12:28:44.16 PST,FOO 39> at
org.apache.xerces.dom.DeferredDocumentImpl.synchronizeChildren(DeferredDocumentImpl.jav
a:1340)
*E,2000/03/22 12:28:44.16 PST,FOO 39> at
org.apache.xerces.dom.DocumentImpl.getDocumentElement(DocumentImpl.java:468)
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com