GeneralizedFieldHandler example is given in reference at
http://www.castor.org/reference/html-single/index.html#d0e2586
It works only during marshalling. Unmarshalling gives following error:
Castor unmarshalling exception: Bad DateTime format: 2009-03-22
DateTime is not long enough; nested exception is
org.exolab.castor.xml.MarshalException: Bad DateTime format: 2009-03-22
DateTime is not long enough{File: [not available]; line: 2; column: 44}
Using Castor 1.2 my test code marshals a java object to file. Then tries to
unmarshal back.
If handler from below mapping is removed, things work fine.
<field name="when" type="date" handler="util.castor.DateHandler">
<bind-xml name="when" node="attribute" />
</field>
Please help.
Thanks