Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.4
-
None
-
None
-
Windows 2003 Server (XP), Java 1.4..06
Description
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
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