W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2002

JVM interference with Xerces :System hangs

From: Andrew Anand <anand.andrew@fedex.com>
Date: Wed, 9 Jan 2002 16:01:07 -0600
To: <general@xml.apache.org>
Cc: "'Www-Dom@W3. Org'" <www-dom@w3.org>, "Xml-Dev-Request@Lists. Xml. Org" <xml-dev-request@lists.xml.org>, "Xml-Dev-Help@Lists. Xml. Org" <xml-dev-help@lists.xml.org>, "Xml-Dev-Errors@Lists. Xml. Org" <xml-dev-errors@lists.xml.org>, "Xml-Dev@Lists. Xml. Org" <xml-dev@lists.xml.org>, <axis-dev@xml.apache.org>
Message-ID: <JBEPLAFFGEKDEAPHMEGFEEFOCEAA.anand.andrew@fedex.com>
I parse(using DOMParser) a huge XML (about 20 KB) in to DOM and serialize it
to print the XML out of it , repeatedly.
My system does the job as expected over a number of times(up to 6 times run
continuously) and then
hangs ending up with a Null pointer Exception as described below.

	at org.apache.xerces.dom.NodeImpl.getChildNodes(NodeImpl.java:520)

To my knowledge this is because JVM HotSpot interferes with Xerces when we
try to parse huge xml files repeatedly.

I am using :
Xerces1.4.3 on Java 2 platform.

Have you guys come across this situation.

I would really appreciate any ideas about the solution to this problem.
I apologize if this mail went in to wrong mailing list.

Thank you,
Received on Wednesday, 9 January 2002 17:00:19 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:09 UTC