cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <>
Subject [jira] [Commented] (CXF-4624) XMLGregorianCalendarImpl Unmarshalling error
Date Wed, 02 Jan 2013 16:36:12 GMT


Daniel Kulp commented on CXF-4624:

Actually, I think the XMLGregorianCalendar is used to parse Dates as well as Calendar's  (then
call the getDate) method.   The XMLGregorianCalendar has all the logic for handling the rules
and logic around how dates and times are supposed to be represented on the wire when in XML.

In anycase, a testcase is likely needed.

> XMLGregorianCalendarImpl Unmarshalling error
> --------------------------------------------
>                 Key: CXF-4624
>                 URL:
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.4
>            Reporter: Sylvain P
> Hello,
> I'm stuck with a problem for ages ...
> I have developped a SOAP Web Service based on CXF 2.4.0.
> In my wsdl2java process, i have specified correct binding to bind xsd:dateTime attributes
to java.util.Date.
> Once my beans generated, all my date type are correctly transformed into Java Date Type.
> Ok, good !
> When i call a Webservice Method which contain a date as a parameter, i receive a surprising
error :
> Unmarshalling Error: org/apache/xerces/jaxp/datatype/XMLGregorianCalendarImpl$Parser
> (My version of Xerces is 2.7.1, also tested on 2.9.1)
> So ... why the marshaller is trying to convert my date type into XMLGregorianCalendar
> I have searched all over the forum and googled a lot, but still the same responses "Bind
> Well, like i said previously, all attributes are binded to Date type but it seems that
the Marshaller ignore that rule. 
> If you have some ideas about this issue :)
> Trix

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message