You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2002/01/11 17:41:54 UTC

DO NOT REPLY [Bug 5808] New: - Xerces interference with HotSpot JVM : causes system to hang

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=5808>.
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=5808

Xerces interference with HotSpot JVM : causes system to hang

           Summary: Xerces interference with HotSpot JVM : causes system to
                    hang
           Product: Xerces2-J
           Version: 2.0.0 [beta]
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: DOM
        AssignedTo: xerces-j-dev@xml.apache.org
        ReportedBy: anand.andrew@fedex.com


In my Java-XML application,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.

java.lang.NullPointerException
	at org.apache.xerces.dom.DeferredDocumentImpl.synchronizeChildren
(DeferredDocumentImpl.java:1218)
	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 confirmed this when my system did not crash when I ran my application by 
disabling the HotSpot VM.

Can Xerces make a fix to handle this situation while I can still use the 
HotSpot VM.

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

I would really appreciate any ideas about the solution to this problem.

Thank you,
Andrew

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org