1 Reply Latest reply: May 2, 2013 10:20 AM by Vijaya Moderator -Oracle RSS

    GuardedMessageContext incompatible with MessageContext

    1005258
      I am trying to deploy a web services that are running on WAS 6.0 onto WAS 7.0 and getting an exception while making a call to the webservice. I tried looking for some information to find the cause of exception and difference in the results but could not find much. Any help or leads are much appreciated. Here is the exception stacktrace.


      com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCHandlerChain handleRuntimeException WSWS3035E: Error: com.btmu.business.service.handlers.CustomSessionHandler.handleRequest threw RuntimeException.
      java.lang.ClassCastException: com.ibm.ws.webservices.engine.GuardedMessageContext incompatible with com.ibm.ws.webservices.engine.MessageContext
      at com.btmu.business.service.handlers.CustomSessionHandler.handleRequest(CustomSessionHandler.java:71)
      at com.ibm.ws.webservices.engine.handlers.jaxrpc.HandlerProxy.handleRequest(HandlerProxy.java:145)
      at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCHandlerChain.handleRequest(JAXRPCHandlerChain.java:334)
      at com.ibm.ws.webservices.engine.handlers.soap.SOAPHandlerChain.handleRequest(SOAPHandlerChain.java:179)
      at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCHandler.invokeServerRequestHandler(JAXRPCHandler.java:506)
      at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCSOAPHandler.invokeServerRequestHandler(JAXRPCSOAPHandler.java:184)
      at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCHandler$1.invoke(JAXRPCHandler.java:380)
      at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:209)
      at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCHandler.invoke(JAXRPCHandler.java:152)
      at com.ibm.ws.webservices.engine.handlers.WrappedHandler.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.invoke(WebServicesEngine.java:336)
      at com.ibm.ws.webservices.engine.transport.http.WebServicesServlet.doPost(WebServicesServlet.java:908)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
      at com.ibm.ws.webservices.engine.transport.http.WebServicesServletBase.service(WebServicesServletBase.java:344)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1449)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:790)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:443)
      at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
      at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3610)
      at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:274)
      at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:926)
      at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1557)
      at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:173)
      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)
      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)
      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:272)
      at com.ibm.ws.ssl.channel.impl.SSLConnectionLink.determineNextChannel(SSLConnectionLink.java:1016)
      at com.ibm.ws.ssl.channel.impl.SSLConnectionLink$MyReadCompletedCallback.complete(SSLConnectionLink.java:639)
      at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1772)
      at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
      at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
      at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
      at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
      at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:202)
      at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:766)
      at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:896)
      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1527)

      [4/24/13 9:55:59:133 EDT] 00000030 WebServicesSe E com.ibm.ws.webservices.engine.transport.http.WebServicesServlet doPost WSWS3227E: Error: Exception:
      WebServicesFault
      faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
      faultString: WSWS3035E: Error: com.btmu.business.service.handlers.CustomSessionHandler.handleRequest threw RuntimeException.
      faultActor: com.btmu.business.service.handlers.CustomSessionHandler
      faultDetail:

      WSWS3035E: Error: com.btmu.business.service.handlers.CustomSessionHandler.handleRequest threw RuntimeException.
      at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCHandlerChain.handleRuntimeException(JAXRPCHandlerChain.java:593)
      at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCHandlerChain.handleRequest(JAXRPCHandlerChain.java:400)
      at com.ibm.ws.webservices.engine.handlers.soap.SOAPHandlerChain.handleRequest(SOAPHandlerChain.java:179)
      at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCHandler.invokeServerRequestHandler(JAXRPCHandler.java:506)
      at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCSOAPHandler.invokeServerRequestHandler(JAXRPCSOAPHandler.java:184)
      at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCHandler$1.invoke(JAXRPCHandler.java:380)
      at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:209)
      at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCHandler.invoke(JAXRPCHandler.java:152)
      at com.ibm.ws.webservices.engine.handlers.WrappedHandler.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.invoke(WebServicesEngine.java:336)
      at com.ibm.ws.webservices.engine.transport.http.WebServicesServlet.doPost(WebServicesServlet.java:908)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
      at com.ibm.ws.webservices.engine.transport.http.WebServicesServletBase.service(WebServicesServletBase.java:344)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1449)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:790)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:443)
      at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
      at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3610)
      at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:274)
      at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:926)
      at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1557)
      at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:173)
      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)
      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)
      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:272)
      at com.ibm.ws.ssl.channel.impl.SSLConnectionLink.determineNextChannel(SSLConnectionLink.java:1016)
      at com.ibm.ws.ssl.channel.impl.SSLConnectionLink$MyReadCompletedCallback.complete(SSLConnectionLink.java:639)
      at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1772)
      at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
      at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
      at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
      at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
      at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:202)
      at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:766)
      at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:896)
      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1527)