Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Error unmarshalling huge files in castor

843834Feb 7 2008 — edited Feb 7 2008
Hi,
I am getting error while unmarshalling one xml of size > 3MB. im using castor1.0.5-xml.jar. Error is as follows

Exception in thread "main" java.lang.StackOverflowError
at org.exolab.castor.xml.Namespaces.getNamespaceURI(Namespaces.java:206)
at org.exolab.castor.xml.Namespaces.getNamespaceURI(Namespaces.java:206)
at org.exolab.castor.xml.Namespaces.getNamespaceURI(Namespaces.java:206)
at org.exolab.castor.xml.Namespaces.getNamespaceURI(Namespaces.java:206)
at org.exolab.castor.xml.Namespaces.getNamespaceURI(Namespaces.java:206)
at org.exolab.castor.xml.Namespaces.getNamespaceURI(Namespaces.java:206)
at org.exolab.castor.xml.Namespaces.getNamespaceURI(Namespaces.java:206)
at org.exolab.castor.xml.Namespaces.getNamespaceURI(Namespaces.java:206)
at org.exolab.castor.xml.Namespaces.getNamespaceURI(Namespaces.java:206)
at org.exolab.castor.xml.Namespaces.getNamespaceURI(Namespaces.java:206)
at org.exolab.castor.xml.Namespaces.getNamespaceURI(Namespaces.java:206)
at org.exolab.castor.xml.Namespaces.getNamespaceURI(Namespaces.java:206)
at org.exolab.castor.xml.Namespaces.getNamespaceURI(Namespaces.java:206)
at org.exolab.castor.xml.Namespaces.getNamespaceURI(Namespaces.java:206)
at org.exolab.castor.xml.Namespaces.getNamespaceURI(Namespaces.java:206)
at org.exolab.castor.xml.Namespaces.getNamespaceURI(Namespaces.java:206)
at org.exolab.castor.xml.Namespaces.getNamespaceURI(Namespaces.java:206)
at org.exolab.castor.xml.Namespaces.getNamespaceURI(Namespaces.java:206)
at org.exolab.castor.xml.Namespaces.getNamespaceURI(Namespaces.java:206)
at org.exolab.castor.xml.Namespaces.getNamespaceURI(Namespaces.java:206)
-----------------------------------
-----------------------------------

is it a problem with castor that it cant unmarshal a file greater than 3MB. or is there some problem in the mapping file which i have written or some problem in xml. if i break up the xml then it works fine.

if its a problem with castor, can any guys suggest a better tool which can do the same. my file size ranges from few KBs to 200MB. Please help me on this? Any help is appreciated. thanking you in advance,

Regards,
Manu
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 6 2008
Added on Feb 7 2008
0 comments
386 views