Uploaded image for project: 'Portlet Bridge'
  1. Portlet Bridge
  2. PBR-121

ClassCastException thrown when redering VIEW

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.0.0.ALPHA
    • Fix Version/s: 2.0.0.BETA
    • Component/s: JSF
    • Labels:
      None
    • Environment:

      eXo Platform WCM 1.2

      Description

      JSRRIPortlet throws an Exception when eXo tries to render it

      Sep 21, 2009 5:00:02 PM org.jboss.portletbridge.AjaxPortletBridge doFacesRequest
      SEVERE: Error processing execute lifecycle
      javax.faces.FacesException: java.lang.ClassCastException: com.sun.faces.application.ViewHandlerResponseWrapper cannot be cast to javax.portlet.PortletResponse
      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:128)
      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
      at org.jboss.portletbridge.AjaxPortletBridge.render(AjaxPortletBridge.java:952)
      at org.jboss.portletbridge.AjaxPortletBridge.renderResponse(AjaxPortletBridge.java:766)
      at org.jboss.portletbridge.AjaxPortletBridge.doFacesRequest(AjaxPortletBridge.java:508)
      at javax.portlet.faces.GenericFacesPortlet.doFacesDispatch(GenericFacesPortlet.java:583)
      at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:474)
      at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)
      at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:445)
      at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
      at org.exoplatform.services.portletcontainer.plugins.pc.aop.PortletMethodCommand.render(PortletMethodCommand.java:62)
      at org.exoplatform.services.portletcontainer.plugins.pc.aop.BaseCommandUnit.execute(BaseCommandUnit.java:46)
      at org.exoplatform.container.component.ExecutionContext.executeNextUnit(ExecutionContext.java:39)
      at org.exoplatform.services.portletcontainer.plugins.pc.aop.PortletContentCommand.render(PortletContentCommand.java:28)
      at org.exoplatform.services.portletcontainer.plugins.pc.aop.BaseCommandUnit.execute(BaseCommandUnit.java:46)
      at org.exoplatform.container.component.ExecutionContext.executeNextUnit(ExecutionContext.java:39)
      at org.exoplatform.services.portletcontainer.plugins.pc.aop.PortletCacheCommand.render(PortletCacheCommand.java:109)
      at org.exoplatform.services.portletcontainer.plugins.pc.aop.BaseCommandUnit.execute(BaseCommandUnit.java:46)
      at org.exoplatform.container.component.ExecutionContext.executeNextUnit(ExecutionContext.java:39)
      at org.exoplatform.services.portletcontainer.plugins.pc.aop.PortletFilterCommand.render(PortletFilterCommand.java:71)
      at org.exoplatform.services.portletcontainer.plugins.pc.aop.BaseCommandUnit.execute(BaseCommandUnit.java:46)
      at org.exoplatform.container.component.ExecutionContext.executeNextUnit(ExecutionContext.java:39)
      at org.exoplatform.services.portletcontainer.plugins.pc.aop.PortletSecurityCommand.render(PortletSecurityCommand.java:49)
      at org.exoplatform.services.portletcontainer.plugins.pc.aop.BaseCommandUnit.execute(BaseCommandUnit.java:46)
      at org.exoplatform.container.component.ExecutionContext.executeNextUnit(ExecutionContext.java:39)
      at org.exoplatform.services.portletcontainer.plugins.pc.aop.BaseCommandUnit.render(BaseCommandUnit.java:66)
      at org.exoplatform.services.portletcontainer.plugins.pc.aop.BaseCommandUnit.execute(BaseCommandUnit.java:46)
      at org.exoplatform.container.component.ExecutionContext.execute(ExecutionContext.java:32)
      at org.exoplatform.services.portletcontainer.plugins.pc.aop.PortletCommandChain.doRender(PortletCommandChain.java:61)
      at org.exoplatform.services.portletcontainer.plugins.pc.PortletApplicationHandler.process(PortletApplicationHandler.java:300)
      at org.exoplatform.services.portletcontainer.impl.servlet.ServletWrapper.service(ServletWrapper.java:139)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
      at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
      at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
      at org.exoplatform.services.portletcontainer.plugins.pc.PortletContainerDispatcher.dispatch(PortletContainerDispatcher.java:916)
      at org.exoplatform.services.portletcontainer.plugins.pc.PortletContainerDispatcher.process(PortletContainerDispatcher.java:835)
      at org.exoplatform.services.portletcontainer.plugins.pc.PortletContainerDispatcher.render(PortletContainerDispatcher.java:713)
      at org.exoplatform.services.portletcontainer.impl.PortletContainerServiceImpl.render(PortletContainerServiceImpl.java:569)
      at org.exoplatform.portal.webui.application.UIPortletLifecycle.processRender(UIPortletLifecycle.java:162)
      at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:99)
      at org.exoplatform.portal.webui.workspace.UIPortalApplication.processRender(UIPortalApplication.java:366)
      at org.exoplatform.portal.application.PortalRequestHandler.execute(PortalRequestHandler.java:90)
      at org.exoplatform.web.WebAppController.service(WebAppController.java:124)
      at org.exoplatform.portal.application.PortalController.service(PortalController.java:97)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.exoplatform.services.wcm.metadata.web.PageMetadataRequestFilter.doFilter(PageMetadataRequestFilter.java:84)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.exoplatform.frameworks.jcr.web.ThreadLocalSessionProviderInitializedFilter.doFilter(ThreadLocalSessionProviderInitializedFilter.java:111)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.exoplatform.services.security.web.SetCurrentIdentityFilter.doFilter(SetCurrentIdentityFilter.java:92)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.exoplatform.frameworks.jcr.web.PortalContainerInitializedFilter.doFilter(PortalContainerInitializedFilter.java:83)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.ClassCastException: com.sun.faces.application.ViewHandlerResponseWrapper cannot be cast to javax.portlet.PortletResponse
      at org.jboss.portletbridge.context.PortletExternalContextImpl.getResponse(PortletExternalContextImpl.java:114)
      at org.jboss.portletbridge.context.MimeExternalContextImpl.getResponse(MimeExternalContextImpl.java:78)
      at org.jboss.portletbridge.context.RenderPortletExternalContextImpl.getResponse(RenderPortletExternalContextImpl.java:90)
      at org.jboss.portletbridge.context.RenderPortletExternalContextImpl.getResponse(RenderPortletExternalContextImpl.java:41)
      at org.jboss.portletbridge.application.PortletViewHandler.renderView(PortletViewHandler.java:254)
      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
      ... 72 more

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                wesleyhales Wesley Hales
                Reporter:
                rafaelliu rafael liu
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: