Hi Shay,

Shay Hassidim wrote:

> What's the common reasons getting OutOfMemoryError when using the xstream
> API?

None?

> My API calls are very basic:
> xstream = new XStream();
> xstream.registerConverter(new GregorianCalendarConverter());
> xstream.registerConverter(new XmlCalendarConverter());

I have no idea what custom converters do ... XmlCalendarConverter
 
> xstream.toXML(val);
> ....
> Object valSerialized = xstream.fromXML(valXaml);
> 
> My usage is very basic - but I might have very large object serialized.

It builds an object graph i.e. the complete XML is turned into Java objects, 
all of them kept in memory and the resulting .

Maybe you're looking for http://xstream.codehaus.org/objectstream.html ?
Some more ideas with http://xstream.codehaus.org/persistence-tutorial.html

Cheers,
Jörg


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

    http://xircles.codehaus.org/manage_email


Reply via email to