axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ley, Selena (GMI/CPR Dev.)" <>
Subject Date Deserialization Error
Date Mon, 11 Aug 2003 19:05:34 GMT
I'm using the latest Axis 1.1 (nightly build for 8/10/2003). I see a lot of the previous bugs
from beta 2 version, which is great! many thanks!

My xml schema has the following element defined : 
<xs:element name="DateOfBirth" type="DateOfBirth" /> 
<xs:simpleType name="DateOfBirth"> 
<xs:restriction base="xs:date" /> 

I am able to create use the wsdl2java to create the java beans. However, when I'm testing
with a sample message with the following snippet

.. I receive the following error:

Reading Msg from Individual.xml
java.lang.RuntimeException: java.text.ParseException: Unparseable date: "1975-08
        at org.apache.axis.encoding.ser.SimpleDeserializer.onEndElement(SimpleDe
        at org.apache.axis.encoding.DeserializerImpl.endElement(DeserializerImpl
        at org.apache.axis.encoding.DeserializationContextImpl.endElement(Deseri
        at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.ja
        at org.apache.axis.message.MessageElement.publishToHandler(MessageElemen
        at org.apache.axis.message.MessageElement.getValueAsType(MessageElement.
        at org.apache.axis.message.MessageElement.getValueAsType(MessageElement.
        at BeanDeserializerTester.main(
MIFException: java.text.ParseException: Unparseable date: "1975-08-06"

I checked the DateDeserializer and the simpledateformat used to parse the date is correct
for this date. 

View raw message