Aegis does not correctly de-serialize xsd:dateTime
--------------------------------------------------

                 Key: XFIRE-772
                 URL: http://jira.codehaus.org/browse/XFIRE-772
             Project: XFire
          Issue Type: Bug
          Components: Aegis Module
    Affects Versions: 1.2.2
            Reporter: Paul Brown
         Assigned To: Dan Diephouse


>From xfire-user:
---
Hi all, I have an issue I hope someone can help me with:  I have a webservice 
written using XFire which exposes
an interface that has an xsd:dateTime element included.  A snippet of the wsdl 
looks like this:

<xsd:complexType name="Subscription">
       <xsd:sequence>
         <xsd:element name="active" type="xsd:boolean" minOccurs="0" />
         <xsd:element name="canonicalAccountNumber" type="xsd:string" 
minOccurs="0" nillable="true" />
         <xsd:element name="endDateActive" type="xsd:dateTime" minOccurs="0" />

note the endDateActive element.

So the problem is, when I call the service (FWIW, I'm calling using SOAP from a 
BPEL process), I get an
error like this:

2006-11-21 17:35:56,924 [INFO] re.handler.DefaultFaultHandler - Fault occurred!
org.codehaus.xfire.fault.XFireFault: Illegal argument. For input string: "T"
       at 
org.codehaus.xfire.aegis.type.basic.BeanType.readObject(BeanType.java:182)
       at 
org.codehaus.xfire.aegis.type.basic.BeanType.readObject(BeanType.java:138)
       at 
org.codehaus.xfire.aegis.AegisBindingProvider.readParameter(AegisBindingProvider.java:91)
<snip>
Caused by: java.lang.NumberFormatException: For input string: "T"
       at 
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
       at java.lang.Long.parseLong(Long.java:403)
       at java.lang.Long.parseLong(Long.java:461)
       at 
org.codehaus.xfire.aegis.AbstractMessageReader.getValueAsLong(AbstractMessageReader.java:76)
       at 
org.codehaus.xfire.aegis.type.basic.LongType.readObject(LongType.java:16)
       at 
org.codehaus.xfire.aegis.type.basic.BeanType.readObject(BeanType.java:138)


The value  that's was passed in that case was:

2006-11-21T00:00:00

>From my quick skimming of the relevant part of the xsd spec 
><http://www.w3.org/TR/xmlschema-2/#dateTime> this appears to be a legal value.

Anybody have any idea what might be going on or any suggestions for how to 
resolve this?

Thanks!

Phillip R.
---

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to