Yes. Tnx. We are actually working together.
What's the simplest way to instruct Xstream to treat classes extending from 
GregorianCalendar as GregorianCalendar? The problem exists with any derived 
class from GregorianCalendar. Its not a JPA problem.

Right now without creating a specific converter Xstream will have problems. It 
generates a huge xml that is cut off and missing some data. This cause the 
exception when de-serializing it back to object.

I'm afraid also the ToStringConverter would not be optimized as the 
GregorianCalendarConverter since it store the GregorianCalendar to string 
content that is by far larger than the data Xstream store (timestamp and time 
zone).

How the alias solution works?
Regards,
Shay

----- Original Message -----
From: Jörg Schaible [mailto:[email protected]]
Sent: Wednesday, February 15, 2012 06:57 AM
To: [email protected] <[email protected]>
Subject: [xstream-user] Re: ConversionException with openjpa proxy

Hi Shay,

Shay Hassidim wrote:

> Hi,
> 
> I'm getting a ConversionException with xstream 1.4.2 when converting back
> the XML String to the object (calling xstream.fromXML). I'm getting the
> following. Any ideas what's going on? I'm using IBM JDK 1.5.

another user reported a similar error and it turned out that XStream has a 
general problem with types derived from the GregorianCalendar caused by its 
default setup. See the newer posting of Suganya here on the list and my 
answer for a workaround.

Cheers,
Jörg


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

    http://xircles.codehaus.org/manage_email





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

    http://xircles.codehaus.org/manage_email


Reply via email to