That seems pretty strange, based on your stacktrace it looks like the
Timestamp class is getting handled by the EnumFieldHandler instead of
the DateFieldHandler. From my perspective this would appear to be a bug.

--Keith


SYLVIE PALLUEL wrote:
> 
> Hi,
> 
> I'm using castor to marshall and unmarshall Timestamp data.
> 
> The marshalling gives me this :
> 
>         <dateEffet>2003-04-10T15:39:10.000+02:00</dateEffet>
>         <dateCreation>2003-04-09T17:02:00.000+02:00</dateCreation>
> 
> And the unmarshaller throws me an exception :
> 
> java.lang.IllegalArgumentException: Timestamp format must be yyyy-mm-dd
> hh:mm:ss.fffffffff
>         at
> org.exolab.castor.xml.handlers.EnumFieldHandler.setValue(EnumFieldHandle
> r.java:170)
>         at
> org.exolab.castor.xml.UnmarshalHandler.endElement(UnmarshalHandler.java:
> 852)
>         at
> org.exolab.castor.xml.UnmarshalHandler.endElement(UnmarshalHandler.java:
> 918)
>         at
> org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403)
> 
> My mapping file (used by Castor jdo too) is :
> 
>     <field name="dateEffet" type="java.sql.Timestamp">
>       <sql type="timestamp" name="dateEffet" />
>       <bind-xml name="dateEffet" />
>     </field>
>     <field name="dateCreation" type="java.sql.Timestamp">
>       <sql type="timestamp" name="dateCreation" />
>       <bind-xml name="dateCreation" />
>     </field>
> 
> Have I forgotten something ?
> 
> Sylvie.
> ___________________
> CREDI RA
> Sylvie Palluel
> 
> [EMAIL PROTECTED]
> ___________________
> 
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
> 
> This footnote also confirms that this email message has been swept by
> MIMEsweeper for the presence of computer viruses.
> 
> www.mimesweeper.com
> **********************************************************************
> 
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>         unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to