No, this is definitely not an issue with the size of the document. I have seen folks on the mailing lists telling us that they are using Castor XML to (un)marshal documents close to the 1 GB boundary.

Given that you are seeing a StackOverflowError, I'd assume that your mapping is ... well, a bit wronglish. In addition, have you had time to try things against a a more recent version (1.1.2.1, or 1.2) ?

Okay, let's gather some facts:

a) You are using a mapping file, apparently ?
b) Would you happen to have an XML schema around for your document structure.If so, one could use the code generator to create Java classes and descriptor classes, and cross-check whether the problem still persists.

Regards
Werner Guttmann
Castor, committer

ManuRom wrote:
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


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to