ClassCast exception while processing SOAP response message in SIBus - Websphere

This is a discussion on ClassCast exception while processing SOAP response message in SIBus - Websphere ; I am implementing a web services with the client request coming through the inbound services defined on SIBus. MDB listening on this reuqest queue, does some business processing and puts the response message into the response queue as a JMS ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: ClassCast exception while processing SOAP response message in SIBus

  1. ClassCast exception while processing SOAP response message in SIBus

    I am implementing a web services with the client request coming through the inbound services defined on SIBus. MDB listening on this reuqest queue, does some business processing and puts the response message into the response queue as a JMS message. The response message is picked up by the bus but throws the following error :-

    com.ibm.ws.sib.webservices.exception.SIBWSUnlogged Exception: CWSWS1010E: The following exception occurred while processing response java.lang.ClassCastException: com.ibm.ws.sib.mfp.impl.JsJmsBytesMessageImpl incompatible with com.ibm.wsspi.sib.core.SIBusSdoMessage
    at com.ibm.ws.webservices.engine.WebServicesFault.mak eFault(WebServicesFault.java:281)
    at com.ibm.ws.sib.webservices.JsDispatcher.invoke(JsD ispatcher.java:119)
    at com.ibm.ws.webservices.engine.PivotHandlerWrapper. invoke(PivotHandlerWrapper.java:229)
    at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXR PCHandler.invoke(JAXRPCHandler.java:152)
    at com.ibm.ws.webservices.engine.handlers.WrappedHand ler.invoke(WrappedHandler.java:64)
    at com.ibm.ws.webservices.engine.PivotHandlerWrapper. invoke(PivotHandlerWrapper.java:229)
    at com.ibm.ws.webservices.engine.PivotHandlerWrapper. invoke(PivotHandlerWrapper.java:229)
    at com.ibm.ws.webservices.engine.WebServicesEngine.in voke(WebServicesEngine.java:336)


    Does it mean that a JMS message cannot be written on to the response queue ? What options do I have. Whats the best way to convey the response back to the requestor.

  2. Re: ClassCast exception while processing SOAP response message inSIBus


  3. Re: ClassCast exception while processing SOAP response message inSIBus

    Thank you for the link. Learnt the same in some other documents. Have written a Mediation handler to do the SDO conversion. In doing so, I now get the following error.

    [2/27/09 1:01:19:687 IST] 00000038 WebServicesSe E com.ibm.ws.webservices.engine.transport.http.WebSe rvicesServlet doPost WSWS3227E: Error: Exception:
    WebServicesFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
    faultString: com.ibm.ws.sib.webservices.exception.SIBWSUnlogged Exception: CWSWS1010E: The following exception occurred while processing response com.ibm.wsspi.sib.sdo.DataMediatorException: CWSIF0273E: Unable to write message: exception java.lang.IllegalArgumentException: Class 'JmsTextBody' does not have a feature named 'Info'
    faultActor: http://www.ibm.com/sibws
    faultDetail:

    com.ibm.ws.sib.webservices.exception.SIBWSUnlogged Exception: CWSWS1010E: The following exception occurred while processing response com.ibm.wsspi.sib.sdo.DataMediatorException: CWSIF0273E: Unable to write message: exception java.lang.IllegalArgumentException: Class 'JmsTextBody' does not have a feature named 'Info'
    at com.ibm.ws.webservices.engine.WebServicesFault.mak eFault(WebServicesFault.java:281)
    at com.ibm.ws.sib.webservices.JsDispatcher.invoke(JsD ispatcher.java:119)
    at com.ibm.ws.webservices.engine.PivotHandlerWrapper. invoke(PivotHandlerWrapper.java:229)
    at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXR PCHandler.invoke(JAXRPCHandler.java:152)
    at com.ibm.ws.webservices.engine.handlers.WrappedHand ler.invoke(WrappedHandler.java:64)
    at com.ibm.ws.webservices.engine.PivotHandlerWrapper. invoke(PivotHandlerWrapper.java:229)
    at com.ibm.ws.webservices.engine.PivotHandlerWrapper. invoke(PivotHandlerWrapper.java:229)


    Caused by: com.ibm.wsspi.sib.sdo.DataMediatorException: CWSIF0273E: Unable to write message: exception java.lang.IllegalArgumentException: Class 'JmsTextBody' does not have a feature named 'Info'
    at com.ibm.ws.sib.mfp.sdo.soap.SOAPDataMediatorImpl.w rite(SOAPDataMediatorImpl.java:373)
    at com.ibm.ws.sib.webservices.inboundservice.EPLInvok er.processResponseMessage(EPLInvoker.java:1588)
    ... 35 more




    Any clues ?

+ Reply to Thread