> I'm getting the following exception in my Axis Beta-1 client when
> attempting to deserialize a server response that contains a null date:
> 
> java.lang.StringIndexOutOfBoundsException: String index out of range: 0
>         at
> org.apache.axis.encoding.ser.SimpleDeserializer.onEndElement(Unknown
> Source)
>         at org.apache.axis.encoding.DeserializerImpl.endElement(Unknown
> Source)
>         at
> org.apache.axis.encoding.DeserializationContextImpl.endElement(Unknown
> Source)
>         at org.apache.axis.message.SAX2EventRecorder.replay(Unknown
> Source)
>         at org.apache.axis.message.MessageElement.publishToHandler(Unknown
> Source)
>         at org.apache.axis.message.RPCElement.deserialize(Unknown Source)
>         at org.apache.axis.message.RPCElement.getParams(Unknown Source)
>         at org.apache.axis.client.Call.invoke(Unknown Source)
>         at org.apache.axis.client.Call.invoke(Unknown Source)
>         at org.apache.axis.client.Call.invoke(Unknown Source)...
> 
> Excerpt of server response which contains a null date field: 
> 
> <resolvedDate xsi:type="xsd:dateTime" xsi:null="true"/>  
> 
> My WSDL (generated by java2wsdl) defines resolvedDate as follows:
> 
> <element name="resolvedDate" nillable="true" type="xsd:dateTime"/>
> 
> Not sure what I'm missing here, as null dates would seem to be a fairly
> common occurrence.  I'm testing with an Axis Beta-1 client against an
> Apache 2.2 server both running under JDK 1.3.1_01 on Solaris 2.6.  I don't
> think its an interop issue, because I've heard of others having this
> problem with both an Axis client and server.  Any help on this will be
> much appreciated.  Let me know if more info is needed.
> 
> Thanks,
> Brian
>  mailto:[EMAIL PROTECTED]
> 
> 
> 


Reply via email to