users@jax-rpc.java.net

RE: Abstract Types -Serialization

From: Frank Xia <FXia_at_esri.com>
Date: Mon, 22 Jul 2002 18:36:42 -0400

Doug,

Thanks for your kind response. I really appreciate it. Hope you can point me
what went wrong when I call the getLayerInfo method and got back the
following deserialization error with attached SOAP message from AXIS'
TCPMonitor program. I suspect there is maybe something in the SOAP message
(not really long) that is not what JAX-RPC expected but have no clue about
it. I found the similar error message when I call getLayerInfo with
parameter name different from its signature name in WSDL but here I really
have no clue at all.

Thanks again

Frank

======== ERROR MESSAGE =======

java.rmi.RemoteException: Runtime exception; nested exception is:
        deserialization error: deserialization error: deserialization error:
unexpected XML reader state. expected: END but found: START: layerType

deserialization error: deserialization error: deserialization error:
unexpected XML reader state. expected: END but found: START: layerType

        at
com.sun.xml.rpc.encoding.SOAPDeserializationContext.deserializeMultiRefObjec
ts(SOAPDeserializationContext.java:65)

        at
com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:169)

        at
com.sun.xml.rpc.client.dii.CallInvokerImpl.doInvoke(CallInvokerImpl.java:54)

        at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:259)

        at
com.esri.test.SunJAXRPCMapService.getLayerInfo(SunJAXRPCMapService.java:724)

        at
com.esri.test.SunJAXRPCMapService.main(SunJAXRPCMapService.java:755)


CAUSE:


deserialization error: deserialization error: unexpected XML reader state.
expected: END but found: START: layerType

        at
com.sun.xml.rpc.encoding.SOAPDeserializationState.deserialize(SOAPDeserializ
ationState.java:364)

        at
com.sun.xml.rpc.encoding.SOAPDeserializationContext.deserializeMultiRefObjec
ts(SOAPDeserializationContext.java:61)

        at
com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:169)

        at
com.sun.xml.rpc.client.dii.CallInvokerImpl.doInvoke(CallInvokerImpl.java:54)

        at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:259)

        at
com.esri.test.SunJAXRPCMapService.getLayerInfo(SunJAXRPCMapService.java:724)

        at
com.esri.test.SunJAXRPCMapService.main(SunJAXRPCMapService.java:755)


CAUSE:


deserialization error: unexpected XML reader state. expected: END but found:
START: layerType

        at
com.sun.xml.rpc.encoding.ObjectSerializerBase.deserialize(ObjectSerializerBa
se.java:200)

        at
com.sun.xml.rpc.encoding.ReferenceableSerializerImpl.deserialize(Referenceab
leSerializerImpl.java:115)

        at
com.sun.xml.rpc.encoding.SOAPDeserializationState.deserialize(SOAPDeserializ
ationState.java:361)

        at
com.sun.xml.rpc.encoding.SOAPDeserializationContext.deserializeMultiRefObjec
ts(SOAPDeserializationContext.java:61)

        at
com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:169)

        at
com.sun.xml.rpc.client.dii.CallInvokerImpl.doInvoke(CallInvokerImpl.java:54)

        at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:259)

        at
com.esri.test.SunJAXRPCMapService.getLayerInfo(SunJAXRPCMapService.java:724)

        at
com.esri.test.SunJAXRPCMapService.main(SunJAXRPCMapService.java:755)


CAUSE:


unexpected XML reader state. expected: END but found: START: layerType

        at
com.sun.xml.rpc.streaming.XMLReaderUtil.verifyReaderState(XMLReaderUtil.java
:49)

        at
com.esri.mo.svr.ser.LayerInfo_SOAPSerializer.doDeserialize(Unknown Source)

        at
com.sun.xml.rpc.encoding.ObjectSerializerBase.deserialize(ObjectSerializerBa
se.java:163)

        at
com.sun.xml.rpc.encoding.ReferenceableSerializerImpl.deserialize(Referenceab
leSerializerImpl.java:115)

        at
com.sun.xml.rpc.encoding.SOAPDeserializationState.deserialize(SOAPDeserializ
ationState.java:361)

        at
com.sun.xml.rpc.encoding.SOAPDeserializationContext.deserializeMultiRefObjec
ts(SOAPDeserializationContext.java:61)

        at
com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:169)

        at
com.sun.xml.rpc.client.dii.CallInvokerImpl.doInvoke(CallInvokerImpl.java:54)

        at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:259)

        at
com.esri.test.SunJAXRPCMapService.getLayerInfo(SunJAXRPCMapService.java:724)

        at
com.esri.test.SunJAXRPCMapService.main(SunJAXRPCMapService.java:755)

image layer info=>null
========= END OF ERROR MESSAGE

====== SOAP MESSAGE ======
HTTP/1.1 200 OK

Content-Type: text/xml; charset=utf-8

Date: Mon, 22 Jul 2002 22:23:21 GMT

Transfer-Encoding: chunked

Server: Apache Tomcat/4.0.3 (HTTP/1.1 Connector)



857

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <ns1:getLayerInfoResponse
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="http://www.esri.com/wsdl">
   <getLayerInfoReturn href="#id0"/>
  </ns1:getLayerInfoResponse>
  <multiRef id="id0" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns2:LayerInfo"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns2="http://www.esri.com/types">
   <name xsi:type="xsd:string">STATES</name>
   <id xsi:type="xsd:string">0</id>
   <layerType xsi:type="xsd:string">feature_layer</layerType>
   <extent xsi:type="xsd:string">-178.217598,18.924782
-66.969271,71.406235</extent>
   <visible xsi:type="xsd:boolean">true</visible>
   <fieldNames
xsi:type="xsd:string">#SHAPE#,AREA,STATE_NAME,STATE_FIPS,SUB_REGION,STATE_AB
BR,POP1990,POP1999,POP90_SQMI,HOUSEHOLDS,MALES,FEMALES,WHITE,BLACK,AMERI_ES,
ASIAN_PI,OTHER,HISPANIC,AGE_UNDER5,AGE_5_17,AGE_18_29,AGE_30_49,AGE_50_64,AG
E_65_UP,NEVERMARRY,MARRIED,SEPARATED,WIDOWED,DIVORCED,HSEHLD_1_M,HSEHLD_1_F,
MARHH_CHD,MARHH_NO_C,MHH_CHILD,FHH_CHILD,HSE_UNITS,VACANT,OWNER_OCC,RENTER_O
CC,MEDIAN_VAL,MEDIANRENT,UNITS_1DET,UNITS_1ATT,UNITS2,UNITS3_9,UNITS10_49,UN
ITS50_UP,MOBILEHOME,NO_FARMS87,AVG_SIZE87,CROP_ACR87,AVG_SALE87,</fieldNames
>
   <fieldTypes
xsi:type="xsd:string">-98,8,1,1,1,1,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-
5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5
,-5,-5,-5,-5,-5,-5,-5,</fieldTypes>
   <fieldPrecisions
xsi:type="xsd:string">0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,</fieldPrecisions>
   <fieldDisplaySizes
xsi:type="xsd:string">0,12,25,2,7,2,10,10,5,9,9,9,9,8,7,8,8,8,8,8,8,8,8,8,8,
9,7,8,8,8,8,8,8,7,7,9,7,8,8,7,4,8,7,7,8,8,8,7,7,5,9,7,</fieldDisplaySizes>
   <layerFeatureType xsi:type="xsd:int">2</layerFeatureType>
  </multiRef>
 </soapenv:Body>
</soapenv:Envelope>

0


============ END OF SOAP MESSAGE