You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sylvain P (JIRA)" <ji...@apache.org> on 2012/11/08 13:49:11 UTC

[jira] [Created] (CXF-4624) XMLGregorianCalendarImpl Unmarshalling error

Sylvain P created CXF-4624:
------------------------------

             Summary: XMLGregorianCalendarImpl Unmarshalling error
                 Key: CXF-4624
                 URL: https://issues.apache.org/jira/browse/CXF-4624
             Project: CXF
          Issue Type: Bug
    Affects Versions: 2.4
            Reporter: Sylvain P


Hello,

I'm stuck for 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 :
javax.xml.ws.soap.SOAPFaultException: 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 to java.util.date". 
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: http://www.atlassian.com/software/jira

[jira] [Comment Edited] (CXF-4624) XMLGregorianCalendarImpl Unmarshalling error

Posted by "Glen Mazza (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-4624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13493296#comment-13493296 ] 

Glen Mazza edited comment on CXF-4624 at 11/8/12 4:49 PM:
----------------------------------------------------------

Hi have you asked on the CXF User's mailing list for help first?  (Far more people are on it.) That's the place to go before considering a JIRA report.  (Also, can you use anything more recent than 2.4.x? That branch is no longer being activately maintained--just 2.5.x, 2.6.x, and 2.7.x are.)

Our wsdl-first sample (http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/wsdl_first/) available in the CXF distribution uses that very same binding file--does *that* example work for you?
                
      was (Author: gmazza):
    Hi have you asked on the CXF User's mailing list for help first?  (Far more people are on it.) That's the place to go before considering a JIRA report.  (Also, can you use anything more recent than 2.4.x? That branch is no longer being activately maintained--just 2.5.x, 2.6.x, and 2.7.x are.)

Our wsdl-first tutorial (http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/wsdl_first/) uses that very same binding file--does *that* example work for you?
                  
> XMLGregorianCalendarImpl Unmarshalling error
> --------------------------------------------
>
>                 Key: CXF-4624
>                 URL: https://issues.apache.org/jira/browse/CXF-4624
>             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 :
> javax.xml.ws.soap.SOAPFaultException: 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 to java.util.date". 
> 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: http://www.atlassian.com/software/jira

[jira] [Updated] (CXF-4624) XMLGregorianCalendarImpl Unmarshalling error

Posted by "Sylvain P (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-4624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sylvain P updated CXF-4624:
---------------------------

    Description: 
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 :
javax.xml.ws.soap.SOAPFaultException: 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 to java.util.date". 
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


  was:
Hello,

I'm stuck into 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 :
javax.xml.ws.soap.SOAPFaultException: 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 to java.util.date". 
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


    
> XMLGregorianCalendarImpl Unmarshalling error
> --------------------------------------------
>
>                 Key: CXF-4624
>                 URL: https://issues.apache.org/jira/browse/CXF-4624
>             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 :
> javax.xml.ws.soap.SOAPFaultException: 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 to java.util.date". 
> 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: http://www.atlassian.com/software/jira

[jira] [Commented] (CXF-4624) XMLGregorianCalendarImpl Unmarshalling error

Posted by "Glen Mazza (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-4624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13493296#comment-13493296 ] 

Glen Mazza commented on CXF-4624:
---------------------------------

Hi have you asked on the CXF User's mailing list for help first?  (Far more people are on it.) That's the place to go before considering a JIRA report.  (Also, can you use anything more recent than 2.4.x? That branch is no longer being activately maintained--just 2.5.x, 2.6.x, and 2.7.x are.)

Our wsdl-first tutorial (http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/wsdl_first/) uses that very same binding file--does *that* example work for you?
                
> XMLGregorianCalendarImpl Unmarshalling error
> --------------------------------------------
>
>                 Key: CXF-4624
>                 URL: https://issues.apache.org/jira/browse/CXF-4624
>             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 :
> javax.xml.ws.soap.SOAPFaultException: 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 to java.util.date". 
> 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: http://www.atlassian.com/software/jira

[jira] [Updated] (CXF-4624) XMLGregorianCalendarImpl Unmarshalling error

Posted by "Sylvain P (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-4624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sylvain P updated CXF-4624:
---------------------------

    Description: 
Hello,

I'm stuck into 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 :
javax.xml.ws.soap.SOAPFaultException: 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 to java.util.date". 
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


  was:
Hello,

I'm stuck for 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 :
javax.xml.ws.soap.SOAPFaultException: 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 to java.util.date". 
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


    
> XMLGregorianCalendarImpl Unmarshalling error
> --------------------------------------------
>
>                 Key: CXF-4624
>                 URL: https://issues.apache.org/jira/browse/CXF-4624
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.4
>            Reporter: Sylvain P
>
> Hello,
> I'm stuck into 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 :
> javax.xml.ws.soap.SOAPFaultException: 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 to java.util.date". 
> 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: http://www.atlassian.com/software/jira