Error unmarshalling huge files in castor
843834Feb 7 2008 — edited Feb 7 2008Hi,
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