Oh great. Thanks for the info Ralf! -----Original Message----- From: Ralf Joachim [mailto:[EMAIL PROTECTED] Sent: Thursday, April 28, 2005 5:57 PM To: [email protected] Subject: Re: [castor-user] Marshalling java.sql.Timestamp
Hi Karl, I searched the changelog of castor but didn't find any resolved issue that directly relates to the problem you have. The good new s is that we are planing to publish the next release within 3 weeks so you can use that. Ralf Baum, Karl A. schrieb: >I am using castor version 0.9.6 and I am trying to marshal and >unmarshal java.sql.Timestamp objects. I get the following exception >when trying to unmarshal a timestamp value: >2005-04-28T17:04:44.062-04:00 > >java.lang.IllegalStateException: java.lang.IllegalArgumentException: >Timestamp format must be yyyy-mm-dd hh:mm:ss.fffffffff > at >org.exolab.castor.xml.handlers.EnumFieldHandler.setValue(EnumFieldHandl >er.ja >va:171) > at >org.exolab.castor.xml.UnmarshalHandler.endElement(UnmarshalHandler.java >:1016 >) > at >org.exolab.castor.xml.UnmarshalHandler.endElement(UnmarshalHandler.java >:1084 >) > at >org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403) > >This timestamp value was created by the castor marshaller. I >downloaded the latest snapshot and this issue has been resolved. I am >not sure we are going to be able to use a snapshot. I am wondering if >this is a known issue in version 0.9.6 and if there's a way I can get around it. Thanks. > >-karl > >

