axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carl Cabou <ext.altior.ca...@sncf.fr>
Subject Vector serializer ...
Date Mon, 07 Apr 2003 08:19:24 GMT
Hi all !!

I've deployed successfully 2 services on Axis.
I use two home made classes A and B. Each one has a beanserializer 
declared in the WSDD file.
The 1st service returns a vector of A objects, it works just fine 
without declaring any serializer for java.util.Vector.

The 2nd service returns a vector of vectors of B objects, then I get the 
following exception :

==================================================================================================================
java.io.IOException: No serializer found for class java.util.Vector$1 in 
registry org.apache.axis.encoding.TypeMappingImpl@272961
java.io.IOException: No serializer found for class java.util.Vector$1 in 
registry org.apache.axis.encoding.TypeMappingImpl@272961
         at 
org.apache.axis.encoding.SerializationContextImpl.serializeActual(SerializationContextImpl.java:1235)
         at 
org.apache.axis.encoding.SerializationContextImpl.serialize(SerializationContextImpl.java:756)
         at 
org.apache.axis.encoding.SerializationContextImpl.outputMultiRefs(SerializationContextImpl.java:853)
         at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:147)
         at 
org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:401)
         at 
org.apache.axis.message.MessageElement.output(MessageElement.java:746)
         at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:273)
         at org.apache.axis.SOAPPart.getAsString(SOAPPart.java:488)
         at org.apache.axis.SOAPPart.getAsBytes(SOAPPart.java:379)
         at org.apache.axis.Message.getContentType(Message.java:400)
         at 
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:721)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at 
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:335)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
         at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
         at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
         at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
         at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
         at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
         at java.lang.Thread.run(Thread.java:479)

==================================================================================================================


It seems that I need a serializer for Java.util.Vector, but only on the 
2nd service.

Why that ?!

Any idea or feedback on serializing Vectors with Axis.

Best Regards.

Carl.



Mime
View raw message