1 Reply Latest reply on Oct 25, 2012 11:31 AM by Chris Laprun

    Unable to consume remote portlet

    akkalyanker Newbie

      I am not able to consume the remote portlet available on the Websphere Portal 6.1.5. I get the following error.

       

      The portlet threw an exception: org.oasis.wsrp.v2.InvalidCookie: oasis.names.tc.wsrp.v2.types.InvalidCookieFault: EJPWC1104E: The Producer environment has timed out. The Consumer needs to invoke initCookie() again.

       

      Here are the steps I followed.

       

      1. made the portlet on  websphere available for remote consumption.

      2. Created the consumer using the gatein admin console, the wsdl url used for creating consumer is http://host:port/wps/wsdl/wsrp_service.wsdl. I didn't face any issues in this and was able to see the

          portlet available remotely.

      3. Add the remote portlet on my page, here when the remote portlet is initiated i get the above error.

       

      I am using GateIn-3.4.0.M01-jbossas7 and Websphere portal 6.1.5.

       

      Here is the trace for getMarkup

       

      MessageTrace  3   WSWS3569I: Inbound HTTP SOAP request:

      Content-Type: text/xml; charset=UTF-8

      Message contents:

      <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><getMarkup xmlns="urn:oasis:names:tc:wsrp:v2:types"><registrationContext xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/><portletContext><portletHandle>5_43HM2IC40OVPF0IB9J4M8I3000</portletHandle></portletContext><runtimeContext><userAuthentication>LOGIN</userAuthentication><portletInstanceKey>WPSConsumer.5_43HM2IC40OVPF0IB9J4M8I3000</portletInstanceKey><namespacePrefix>G20e223b7_2def76_2d4071_2d894c_2da9cd02e8929e</namespacePrefix></runtimeContext><userContext><userContextKey>root</userContextKey></userContext><markupParams><secureClientCommunication>false</secureClientCommunication><locales>en</locales><locales>en-US</locales><mimeTypes>text/html</mimeTypes><mode>wsrp:view</mode><windowState>wsrp:normal</windowState><clientData><userAgent>Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20100101 Firefox/16.0</userAgent></clientData><navigationalContext/></markupParams></getMarkup></soap:Body></soap:Envelope>

      [10/25/12 10:58:16:546 IST] 0000003b WSRPEngine    > com.ibm.wps.wsrp.producer.impl.WSRPEngine getMarkup ENTRY WPSConsumer.5_43HM2IC40OVPF0IB9J4M8I3000

      [10/25/12 10:58:16:546 IST] 0000003b WSRPEngine    > com.ibm.wps.wsrp.producer.impl.WSRPEngine checkInitCookie ENTRY User=root method=getmarkup cookies=NO CCOKIES

      [10/25/12 10:58:16:546 IST] 0000003b WSRPEngine    E com.ibm.wps.wsrp.producer.impl.WSRPEngine checkCookie EJPWC1104E: The Producer environment has timed out. The Consumer needs to invoke initCookie() again.

      [10/25/12 10:58:16:562 IST] 0000003b WSRPEngine    3 com.ibm.wps.wsrp.producer.impl.WSRPEngine getMakup EJPWC1104E: The Producer environment has timed out. The Consumer needs to invoke initCookie() again.

                                       com.ibm.wps.wsrp.exception.WSRPException: EJPWC1104E: The Producer environment has timed out. The Consumer needs to invoke initCookie() again.

          at com.ibm.wps.wsrp.producer.impl.WSRPEngine.checkCookie(WSRPEngine.java:349)

          at com.ibm.wps.wsrp.producer.impl.WSRPEngine.getMarkup(WSRPEngine.java:513)

          at oasis.names.tc.wsrp.v2.bind.WSRP_v2_Markup_Binding_SOAPImpl.getMarkup(WSRP_v2_Markup_Binding_SOAPImpl.java:90)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

          at java.lang.reflect.Method.invoke(Method.java:618)

          at com.ibm.ws.webservices.engine.dispatchers.java.JavaDispatcher.invokeMethod(JavaDispatcher.java:178)

          at com.ibm.ws.webservices.engine.dispatchers.java.JavaDispatcher.invokeOperation(JavaDispatcher.java:141)

          at com.ibm.ws.webservices.engine.dispatchers.SoapRPCProcessor.processRequestResponse(SoapRPCProcessor.java:464)

          at com.ibm.ws.webservices.engine.dispatchers.SoapRPCProcessor.processMessage(SoapRPCProcessor.java:425)

          at com.ibm.ws.webservices.engine.dispatchers.BasicDispatcher.processMessage(BasicDispatcher.java:134)

          at com.ibm.ws.webservices.engine.dispatchers.java.SessionDispatcher.invoke(SessionDispatcher.java:204)

          at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:228)

          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:228)

          at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:228)

          at com.ibm.ws.webservices.engine.WebServicesEngine.invoke(WebServicesEngine.java:336)

          at com.ibm.ws.webservices.engine.transport.http.WebServicesServlet.doPost(WebServicesServlet.java:831)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)

          at com.ibm.ws.webservices.engine.transport.http.WebServicesServletBase.service(WebServicesServletBase.java:341)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

          at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1095)

          at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1036)

          at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:118)

          at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)

          at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:832)

          at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:679)

          at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:565)

          at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)

          at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:321)

          at com.ibm.wps.auth.AuthFacadeServlet.service(AuthFacadeServlet.java:78)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

          at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1095)

          at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:569)

          at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)

          at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)

          at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:748)

          at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1461)

          at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:119)

          at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)

          at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)

          at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)

          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:136)

          at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)

          at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)

          at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)

          at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)

       

      [10/25/12 10:58:16:562 IST] 0000003b MessageTrace  3   WSWS3572I: Outbound HTTP SOAP response:

      Content-Type: text/xml; charset=utf-8

      Message contents:

      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Header/><soapenv:Body><soapenv:Fault xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><faultcode xmlns:p50="urn:oasis:names:tc:wsrp:v2:types">p50:InvalidCookieFault</faultcode><faultstring>oasis.names.tc.wsrp.v2.types.InvalidCookieFault: EJPWC1104E: The Producer environment has timed out. The Consumer needs to invoke initCookie() again.</faultstring><detail encodingStyle=""><p50:InvalidCookie xmlns:p50="urn:oasis:names:tc:wsrp:v2:types"/></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>

       

      Pls help.

       

      Thanks