Search the web
Sign In
New User? Sign Up
xml-dbms
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Out of memory error while loading large xml.   Message List  
Reply | Forward Message #3861 of 3864 |
Hi all,

I have a xml which is 3.08 MB in size. While I run the Transfer tool of
XML-DBMS, it gives me the following error. I read in previous posts that the DOM
parser builds the entire tree in the memory. Is there any option by which the
memory can be used more effectively? Can we perhaps replace the DOM parser with
SAX parser ?

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at org.apache.xerces.dom.DeferredDocumentImpl.getNodeObject(Unknown Sour
ce)
at org.apache.xerces.dom.DeferredDocumentImpl.synchronizeChildren(Unknow
n Source)
at org.apache.xerces.dom.DeferredElementNSImpl.synchronizeChildren(Unkno
wn Source)
at org.apache.xerces.dom.ParentNode.getFirstChild(Unknown Source)
at org.xmlmiddleware.xmlutils.DOMNormalizer.getFirstChild(DOMNormalizer.
java:123)
at org.xmlmiddleware.xmldbms.DOMToDBMS.processChildren(DOMToDBMS.java:60
5)
at org.xmlmiddleware.xmldbms.DOMToDBMS.processClassRow(DOMToDBMS.java:54
4)
at org.xmlmiddleware.xmldbms.DOMToDBMS.processRow(DOMToDBMS.java:881)
at org.xmlmiddleware.xmldbms.DOMToDBMS.processFKNodes(DOMToDBMS.java:946
)
at org.xmlmiddleware.xmldbms.DOMToDBMS.processClassRow(DOMToDBMS.java:56
6)
at org.xmlmiddleware.xmldbms.DOMToDBMS.processRoot(DOMToDBMS.java:447)
at org.xmlmiddleware.xmldbms.DOMToDBMS.storeDocument(DOMToDBMS.java:368)

at org.xmlmiddleware.xmldbms.DOMToDBMS.storeDocument(DOMToDBMS.java:317)

at org.xmlmiddleware.xmldbms.tools.Transfer.storeDocumentInternal(Transf
er.java:840)
at org.xmlmiddleware.xmldbms.tools.Transfer.storeDocument(Transfer.java:
479)
at org.xmlmiddleware.xmldbms.tools.Transfer.dispatchStoreDocument(Transf
er.java:696)
at org.xmlmiddleware.xmldbms.tools.Transfer.dispatch(Transfer.java:434)
at org.xmlmiddleware.xmldbms.tools.Transfer.main(Transfer.java:353)

Many thanks.
Ruchika Israni




Wed Jun 3, 2009 6:53 pm

israniruchika
Offline Offline
Send Email Send Email

Forward
Message #3861 of 3864 |
Expand Messages Author Sort by Date

Hi all, I have a xml which is 3.08 MB in size. While I run the Transfer tool of XML-DBMS, it gives me the following error. I read in previous posts that the...
Ruchika Israni
israniruchika
Offline Send Email
Jun 3, 2009
9:08 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help