1 Reply Latest reply on Jan 29, 2011 5:31 PM by paranormal

    UIPortletViewRoot cannot be cast to StateManagerImpl

    paranormal

      Hello and hope you fine

      Im using Portletbridge in my development portlet uses

      JSF 1.2 , faceletes , primefaces , portletbridge 2.1.0.CR1

      and deploying it to Liferay portal 6.05 CE

       

      it works fine but sometimes if i referesh the page many times it throws an exception

       

      here is the stacktrace

       

      Caused by: javax.portlet.faces.BridgeException: Error processing render lifecycle
              at org.jboss.portletbridge.ExceptionHandlerBase.processRenderException(ExceptionHandlerBase.java:72)
              at org.jboss.portletbridge.AjaxPortletBridge.doFacesRequest(AjaxPortletBridge.java:689)
              at javax.portlet.faces.GenericFacesPortlet.doFacesDispatch(GenericFacesPortlet.java:598)
              ... 194 more
      Caused by: javax.faces.FacesException: java.lang.ClassCastException: org.jboss.portletbridge.component.UIPortletViewRoot cannot be cast to com.sun.faces.application.StateManagerImpl$TreeNode
              at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:306)
              at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
              at org.jboss.portletbridge.AjaxPortletBridge.execute(AjaxPortletBridge.java:1163)
              at org.jboss.portletbridge.AjaxPortletBridge.doFacesRequest(AjaxPortletBridge.java:647)
              ... 195 more
      Caused by: java.lang.ClassCastException: org.jboss.portletbridge.component.UIPortletViewRoot cannot be cast to com.sun.faces.application.StateManagerImpl$TreeNode
              at com.sun.faces.application.StateManagerImpl.restoreTree(StateManagerImpl.java:602)
              at com.sun.faces.application.StateManagerImpl.restoreTree(StateManagerImpl.java:551)
              at com.sun.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:87)
              at javax.faces.application.StateManagerWrapper.restoreView(StateManagerWrapper.java:167)
              at com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:290)
              at com.sun.facelets.FaceletViewHandler.restoreView(FaceletViewHandler.java:316)
              at javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:193)
              at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:141)
              at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
              ... 198 more
      09:15:34,502 INFO  [PortalImpl:3812] Current URL /poller/receive generates exception: null
      09:15:34,988 INFO  [PortalImpl:3824] 
      09:15:34,988 ERROR [jsp:154] java.lang.ClassCastException: org.jboss.portletbridge.component.UIPortletViewRoot cannot be cast to com.sun.faces.application.StateManagerImpl$TreeNode
              at com.sun.faces.application.StateManagerImpl.restoreTree(StateManagerImpl.java:602)
              at com.sun.faces.application.StateManagerImpl.restoreTree(StateManagerImpl.java:551)
              at com.sun.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:87)
              at javax.faces.application.StateManagerWrapper.restoreView(StateManagerWrapper.java:167)
              at com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:290)
              at com.sun.facelets.FaceletViewHandler.restoreView(FaceletViewHandler.java:316)
              at javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:193)
              at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:141)
              at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
              at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
              at org.jboss.portletbridge.AjaxPortletBridge.execute(AjaxPortletBridge.java:1163)
              at org.jboss.portletbridge.AjaxPortletBridge.doFacesRequest(AjaxPortletBridge.java:647)
              at javax.portlet.faces.GenericFacesPortlet.doFacesDispatch(GenericFacesPortlet.java:598)
              at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:486)
              at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)
              at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:457)
              at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
              at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:101)
              at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:64)
              at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:92)
      

       

      any one has any idea about what is happening ?

      i also tries the portletbridge 2.1.0.FINAL and its the same

       

      any idea ?

       

      thankx

        • 1. UIPortletViewRoot cannot be cast to StateManagerImpl
          paranormal

          so I didn't find any solution for this damn problem

          but as i think the problem is thrown because the chat portlet in liferay

          ...................................

          what i did is i deleted this portlet and start creating a new one

          by using richfaces 3.3.1  and jboss portletbridge 1.0 snapshot

          which is the best for liferay

          a lot of people talk about running richfaces 3.3.3 with portletbridge 2 final

          but it didnt work for me ( the ajax functions )

           

          and the best example for using richfaces and portletbridge inside liferay is

          the example which puublished by exadel

          http://liferay.exadel.com/web/guest/richfaces-demo

           

          as i think its the best and the only working example with all ajax functions

           

          regards