Details
Description
When unmarshaling an xml document using classes generated with the xml code generator, the Unmarshaler can throw a MarshalException is not serializable. If a required xml element is missing from the xml file castor throws a MarshalException which contains a ValidationException as the cause. The validation exception has a XPathLocation in the _location field and the XPathLocation is not serializable. I get the following error:
java.io.NotSerializableException: org.exolab.castor.xml.XPathLocation
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081)
This is probably related to CASTOR-91 but it looks like in case I'm having trouble serializing a different class. I've checked in a test case which exhibits the problem with castor 1.1.
Final patch for review.