Hi,

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.
> 
> Caused by: com.thoughtworks.xstream.converters.ConversionException: Could
> not call
> org.apache.openjpa.util.java$util$GregorianCalendar$proxy.readObject() :
> No field 'areFieldsSet' found in class
> 'org.apache.openjpa.util.java$util$GregorianCalendar$proxy' ---- Debugging
> information ----
> message             : Could not call
> org.apache.openjpa.util.java$util$GregorianCalendar$proxy.readObject()
> cause-exception     :
> com.thoughtworks.xstream.converters.reflection.MissingFieldException
> cause-message       : No field 'areFieldsSet' found in class
> 'org.apache.openjpa.util.java$util$GregorianCalendar$proxy'
> class               :
> org.apache.openjpa.util.java$util$GregorianCalendar$proxy
> required-type       :
> org.apache.openjpa.util.java$util$GregorianCalendar$proxy
> converter-type      :
> com.thoughtworks.xstream.converters.reflection.SerializableConverter
> path                :
> 
/map/entry[12]/com.xx.yy.web.domain.SessionValues/map/com.xx.yy.web.domain.aa.MyTestImpl/localResInfo/record/com.xx.bb.web.domain.myclass.MyClassB/default/createDate/gregorian-
calendar/default/areFieldsSet
> line number         : 290
> -------------------------------
>         at
>         
com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callReadObject(SerializationMethodInvoker.java:119)

maybe you have to contact the openjpa people what they're doing here. To me 
it looks like they shade parts of the JDK into their own library using some 
kind of byte code manipulation. However, it seems that this process is not 
transparent regarding serialization. Can you try to serialize/deserialize 
such a modified Calendar object with Java serialization?

- Jörg


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

    http://xircles.codehaus.org/manage_email


Reply via email to