axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hans Seeberg (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Created: (AXIS-2747) arrayMapping of http://www.w3.org/2001/XMLSchema:Date is giving Invalid date/time exception
Date Tue, 01 Jul 2008 14:24:45 GMT
arrayMapping of http://www.w3.org/2001/XMLSchema:Date is giving Invalid date/time exception
-------------------------------------------------------------------------------------------

                 Key: AXIS-2747
                 URL: https://issues.apache.org/jira/browse/AXIS-2747
             Project: Axis
          Issue Type: Bug
          Components: Serialization/Deserialization
    Affects Versions: 1.4
         Environment: Windows 2003 Server (XP),  Java 1.4..06
            Reporter: Hans Seeberg


When submitting the 
        <api:MaterielDageEvent>
                <mads:Dag>2008-06-22</mads:Dag>
           </api:MaterielDageEvent>
Does I got a java.lang.NumberFormatException: Invalid date/time
When submitting the 
        <api:MaterielDageEvent>
                <mads:Dag>2008-06-22T00:00:00</mads:Dag>
           </api:MaterielDageEvent>
Does it work ok!

BUT:
The following  xsd scheme where mads:Dag is defined as:
.. xmlns:xsd="http://www.w3.org/2001/XMLSchema" ..

	<xsd:complexType name="MaterielDageAendretType">
		<xsd:annotation>
			<xsd:documentation>Udsendes når der er foregået så omfattende materiel-ændringer
på en dato at hele datoen med fordel kan genbestilles</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element name="Dag" type="xsd:date" maxOccurs="unbounded"/>
		</xsd:sequence>
	</xsd:complexType>

The deploy.wsdd entry 
      <arrayMapping
        xmlns:ns="http://trafik.dsb.dk/mads"
        qname="ns:MaterielDageAendretType"
        type="java:java.util.Date[]"
        innerType="cmp-ns:date" xmlns:cmp-ns="http://www.w3.org/2001/XMLSchema"
        encodingStyle=""
      />

And the stack trace is
	{http://xml.apache.org/axis/}stackTrace:java.lang.NumberFormatException: Invalid date/time
	at org.apache.axis.encoding.ser.CalendarDeserializer.makeValue(CalendarDeserializer.java:75)
	at org.apache.axis.encoding.ser.SimpleDeserializer.onEndElement(SimpleDeserializer.java:172)
	at org.apache.axis.encoding.DeserializerImpl.endElement(DeserializerImpl.java:502)
	at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
	at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:171)
	at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
	at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
	at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
	at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:81)
	at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
--- >8  ---

Any suggestions ?

Regards Hans Seeberg

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message