• Post Reply Bookmark Topic Watch Topic
  • New Topic

Tring to return Object array from web service.  RSS feed

 
vikram Kesav
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Following error is coming when try to return Object array from web service.

Ranchers Need Help Please !!!


[1/22/09 18:50:06:087 IST] 672ebc9c SOAPPart E com.ibm.ws.webservices.engine.SOAPPart WSWS3227E: Error: Exception:
[1/22/09 18:50:06:087 IST] 672ebc9c SOAPPart E com.ibm.ws.webservices.engine.SOAPPart TRAS0014I: The following exception was logged WebServicesFault
faultCode: Server.generalException
faultString: java.io.IOException: WSWS3031E: Error: Serialization cannot occur for com.dto.DealerDTO. There are no registered type mappings.
faultActor: null
faultDetail:

java.io.IOException: WSWS3031E: Error: Serialization cannot occur for com.dto.DealerDTO. There are no registered type mappings.
at com.ibm.ws.webservices.engine.WebServicesFault.makeFault(WebServicesFault.java:150)
at com.ibm.ws.webservices.engine.SOAPPart.writeTo(SOAPPart.java:384)
at com.ibm.ws.webservices.engine.SOAPPart.getAsString(SOAPPart.java:572)
at com.ibm.ws.webservices.engine.SOAPPart.getAsBytes(SOAPPart.java:520)
at com.ibm.ws.webservices.engine.Message.getContentType(Message.java:474)
at com.ibm.ws.webservices.engine.transport.http.WebServicesServlet.doPost(WebServicesServlet.java:880)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at com.ibm.ws.webservices.engine.transport.http.WebServicesServletBase.service(WebServicesServletBase.java:341)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:974)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:555)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)
Caused by: java.io.IOException: WSWS3031E: Error: Serialization cannot occur for com.dto.DealerDTO. There are no registered type mappings.
at com.ibm.ws.webservices.engine.encoding.SerializationContextImpl.serializeActual(SerializationContextImpl.java:684)
at com.ibm.ws.webservices.engine.encoding.SerializationContextImpl.serialize(SerializationContextImpl.java:463)
at com.ibm.ws.webservices.engine.encoding.ser.MapSerializer.serialize(MapSerializer.java:152)
at com.ibm.ws.webservices.engine.encoding.SerializationContextImpl.serializeActual(SerializationContextImpl.java:719)
at com.ibm.ws.webservices.engine.encoding.SerializationContextImpl.serialize(SerializationContextImpl.java:463)
at com.ibm.ws.webservices.engine.xmlsoap.ext.ParamValue.serialize(ParamValue.java:316)
at com.ibm.ws.webservices.engine.xmlsoap.ext.RequestResponse.outputImpl(RequestResponse.java:501)
at com.ibm.ws.webservices.engine.xmlsoap.SOAPBody.outputContentsImpl(SOAPBody.java:252)
at com.ibm.ws.webservices.engine.xmlsoap.SOAPBody.outputImpl(SOAPBody.java:228)
at com.ibm.ws.webservices.engine.xmlsoap.SOAPEnvelope.outputImpl(SOAPEnvelope.java:286)
at com.ibm.ws.webservices.engine.xmlsoap.SOAPElement.output(SOAPElement.java:1185)
at com.ibm.ws.webservices.engine.SOAPPart.writeTo(SOAPPart.java:374)
... 26 more
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Returning an Object array from a web service makes no sense.

You should stick to commonly recognized data types.

Bill
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See also this
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!