You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Dinesh Khetarpal <dk...@karora.ca> on 2002/09/24 19:26:40 UTC

No deserializer defined for array type

I have a return value Item[] where Item is a bean.
Have any one of got this kind of exception before. I generated and
deployed the service as documented.
quick clue please..  
 
 
- Exception:
org.xml.sax.SAXException: No deserializer defined for array type
{urn:inventory}
Item
        at
org.apache.axis.encoding.ser.ArrayDeserializer.onStartElement(ArrayDe
serializer.java:256)
        at
org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerIm
pl.java:393)
        at
org.apache.axis.encoding.DeserializationContextImpl.startElement(Dese
rializationContextImpl.java:896)
        at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.ja
va:158)
        at
org.apache.axis.message.MessageElement.publishToHandler(MessageElemen
t.java:681)
        at
org.apache.axis.message.RPCElement.deserialize(RPCElement.java:244)
        at
org.apache.axis.message.RPCElement.getParams(RPCElement.java:268)
        at org.apache.axis.client.Call.invoke(Call.java:1862)
        at org.apache.axis.client.Call.invoke(Call.java:1768)
        at org.apache.axis.client.Call.invoke(Call.java:1306)
        at TestClient.main(TestClient.java:25)
org.xml.sax.SAXException: No deserializer defined for array type
{urn:inventory}
Item
 
<!-- Use this file to deploy some handlers/chains and services      -->
<!-- Two ways to do this:                                           -->
<!--   java org.apache.axis.client.AdminClient deploy.wsdd          -->
<!--      after the axis server is running                          -->
<!-- or                                                             -->
<!--   java org.apache.axis.utils.Admin client|server deploy.wsdd   -->
<!--      from the same directory that the Axis engine runs         -->
 
<deployment
    xmlns=" http://xml.apache.org/axis/wsdd/"
    xmlns:java=" http://xml.apache.org/axis/wsdd/providers/java">
 
  <!-- Services from InventoryService WSDL service -->
 
  <service name="Inventory" provider="java:RPC">
      <parameter name="wsdlTargetNamespace" value="urn:inventory"/>
      <parameter name="wsdlServiceElement" value="InventoryService"/>
      <parameter name="wsdlServicePort" value="Inventory"/>
      <parameter name="className"
value="shop.Inventory.InventorySoapBindingSkeleton"/>
      <parameter name="wsdlPortType" value="Inventory"/>
      <parameter name="allowedMethods" value="*"/>
      <parameter name="scope" value="Session"/>
 
      <typeMapping
        xmlns:ns="urn:inventory"
        qname="ns:Item"
        type="java:shop.Inventory.Item"
        serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
 
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
        encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/"
      />
      <typeMapping
        xmlns:ns="urn:inventory"
        qname="ns:ArrayOfItem"
        type="java:shop.Inventory.Item[]"
        serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
 
deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"
        encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/"
      />
  </service>
</deployment>