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 Rémi Bars <rb...@softeam.fr> on 2004/01/20 09:17:30 UTC

No deserializer

hi all,

there is my problem i m trying to serialize and deserialize this class :
when i launch my application i get the following error :

java.io.IOException: java.io.IOException: No mapped schema type for test.B
 at org.apache.axis.AxisFault.makeFault(AxisFault.java:129)
 at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:272)
 at org.apache.axis.SOAPPart.getAsString(SOAPPart.java:483)
 at org.apache.axis.SOAPPart.getAsBytes(SOAPPart.java:375)
 at org.apache.axis.Message.getContentType(Message.java:399)
 at
org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:341)
 at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:122)
 at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:
71)
 at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
 at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
 at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
 at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
 at org.apache.axis.client.Call.invoke(Call.java:2553)
 at org.apache.axis.client.Call.invoke(Call.java:2248)
 at org.apache.axis.client.Call.invoke(Call.java:2171)
 at org.apache.axis.client.Call.invoke(Call.java:1691)

could u help me please?

thanks

Remi


----------------------------------------------------------------------------
----
Class A implements B {
    private B[] child;

    static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://test", "A"));
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("child");
        elemField.setXmlName(new javax.xml.namespace.QName("", "_child"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://test",
"A"));
        typeDesc.addFieldDesc(elemField);
}


in my stub i have :

java.lang.Class cls;
            javax.xml.namespace.QName qName;
            java.lang.Class beansf =
org.apache.axis.encoding.ser.BeanSerializerFactory.class;
            java.lang.Class beandf =
org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
            java.lang.Class enumsf =
org.apache.axis.encoding.ser.EnumSerializerFactory.class;
            java.lang.Class enumdf =
org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
            java.lang.Class arraysf =
org.apache.axis.encoding.ser.ArraySerializerFactory.class;
            java.lang.Class arraydf =
org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
            java.lang.Class simplesf =
org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
            java.lang.Class simpledf =
org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
            qName = new javax.xml.namespace.QName("http://test", "A");
            cachedSerQNames.add(qName);
            cls = test.A.class;
            cachedSerClasses.add(cls);
            cachedSerFactories.add(beansf);
            cachedDeserFactories.add(beandf);

            qName = new javax.xml.namespace.QName("urn:axis.test",
"ArrayOf_tns2_A");
           cachedSerQNames.add(qName);
           cls = test.A[].class;
           cachedSerClasses.add(cls);
           cachedSerFactories.add(arraysf);
           cachedDeserFactories.add(arraydf);

qName = new javax.xml.namespace.QName("http://test", "B");
            cachedSerQNames.add(qName);
            cls = test.B.class;
            cachedSerClasses.add(cls);
            cachedSerFactories.add(beansf);
            cachedDeserFactories.add(beandf);

            qName = new javax.xml.namespace.QName("urn:test",
"ArrayOf_tns2_B");
           cachedSerQNames.add(qName);
           cls = fr.ouestfrance.sip.cezan.structure.statut.A[].class;
           cachedSerClasses.add(cls);
           cachedSerFactories.add(arraysf);
           cachedDeserFactories.add(arraydf);


Re: No deserializer

Posted by Airline Pedestal <ai...@yahoo.com>.

Is the test.B class an interface by chance?
I had problems when mapping the Java interface.
I got it to work by mapping the actual Java Class.



--- R�mi_Bars <rb...@softeam.fr> wrote:
> hi all,
> 
> there is my problem i m trying to serialize and
> deserialize this class :
> when i launch my application i get the following
> error :
> 
> java.io.IOException: java.io.IOException: No mapped
> schema type for test.B
>  at
>
org.apache.axis.AxisFault.makeFault(AxisFault.java:129)
>  at
> org.apache.axis.SOAPPart.writeTo(SOAPPart.java:272)
>  at
>
org.apache.axis.SOAPPart.getAsString(SOAPPart.java:483)
>  at
>
org.apache.axis.SOAPPart.getAsBytes(SOAPPart.java:375)
>  at
>
org.apache.axis.Message.getContentType(Message.java:399)
>  at
>
org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:341)
>  at
>
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:122)
>  at
>
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:
> 71)
>  at
>
org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
>  at
>
org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
>  at
>
org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
>  at
>
org.apache.axis.client.Call.invokeEngine(Call.java:2564)
>  at
> org.apache.axis.client.Call.invoke(Call.java:2553)
>  at
> org.apache.axis.client.Call.invoke(Call.java:2248)
>  at
> org.apache.axis.client.Call.invoke(Call.java:2171)
>  at
> org.apache.axis.client.Call.invoke(Call.java:1691)
> 
> could u help me please?
> 
> thanks
> 
> Remi
> 
> 
>
----------------------------------------------------------------------------
> ----
> Class A implements B {
>     private B[] child;
> 
>     static {
> typeDesc.setXmlType(new
> javax.xml.namespace.QName("http://test", "A"));
>         elemField = new
> org.apache.axis.description.ElementDesc();
>         elemField.setFieldName("child");
>         elemField.setXmlName(new
> javax.xml.namespace.QName("", "_child"));
>         elemField.setXmlType(new
> javax.xml.namespace.QName("http://test",
> "A"));
>         typeDesc.addFieldDesc(elemField);
> }
> 
> 
> in my stub i have :
> 
> java.lang.Class cls;
>             javax.xml.namespace.QName qName;
>             java.lang.Class beansf =
>
org.apache.axis.encoding.ser.BeanSerializerFactory.class;
>             java.lang.Class beandf =
>
org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
>             java.lang.Class enumsf =
>
org.apache.axis.encoding.ser.EnumSerializerFactory.class;
>             java.lang.Class enumdf =
>
org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
>             java.lang.Class arraysf =
>
org.apache.axis.encoding.ser.ArraySerializerFactory.class;
>             java.lang.Class arraydf =
>
org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
>             java.lang.Class simplesf =
>
org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
>             java.lang.Class simpledf =
>
org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
>             qName = new
> javax.xml.namespace.QName("http://test", "A");
>             cachedSerQNames.add(qName);
>             cls = test.A.class;
>             cachedSerClasses.add(cls);
>             cachedSerFactories.add(beansf);
>             cachedDeserFactories.add(beandf);
> 
>             qName = new
> javax.xml.namespace.QName("urn:axis.test",
> "ArrayOf_tns2_A");
>            cachedSerQNames.add(qName);
>            cls = test.A[].class;
>            cachedSerClasses.add(cls);
>            cachedSerFactories.add(arraysf);
>            cachedDeserFactories.add(arraydf);
> 
> qName = new javax.xml.namespace.QName("http://test",
> "B");
>             cachedSerQNames.add(qName);
>             cls = test.B.class;
>             cachedSerClasses.add(cls);
>             cachedSerFactories.add(beansf);
>             cachedDeserFactories.add(beandf);
> 
>             qName = new
> javax.xml.namespace.QName("urn:test",
> "ArrayOf_tns2_B");
>            cachedSerQNames.add(qName);
>            cls =
> fr.ouestfrance.sip.cezan.structure.statut.A[].class;
>            cachedSerClasses.add(cls);
>            cachedSerFactories.add(arraysf);
>            cachedDeserFactories.add(arraydf);
> 


__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus