1 Reply Latest reply on Jul 9, 2013 4:56 PM by Brian Leathem

    <rich:panelMenu>,<rich:panelMenuGroup>

    RK 39 Newbie

      Hi,

       

      After migrating to richfaces 5 , for the xhtml that contains  <rich:panelMenu> . I am getting following error.

       

      SEVERE: Error Rendering View[/xhtml/account/accountHoldings.xhtml]

      java.lang.ClassCastException: org.richfaces.component.UIScripts cannot be cast to org.richfaces.ui.core.UIScripts

              at org.richfaces.javascript.JavaScriptServiceImpl.getOrCreateScriptResource(JavaScriptServiceImpl.java:107)

              at org.richfaces.javascript.JavaScriptServiceImpl.addScript(JavaScriptServiceImpl.java:64)

              at org.richfaces.ui.common.DivPanelRenderer.writeJavaScript(DivPanelRenderer.java:135)

              at org.richfaces.ui.toggle.panelMenu.PanelMenuRenderer.doEncodeBegin(PanelMenuRenderer.java:83)

              at org.richfaces.renderkit.RendererBase.encodeBegin(RendererBase.java:116)

              at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:869)

              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1854)

              at javax.faces.render.Renderer.encodeChildren(Renderer.java:176)

              at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:894)

              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1856)

              at org.richfaces.renderkit.RendererBase.renderChildren(RendererBase.java:277)

              at org.richfaces.ui.output.outputPanel.AjaxOutputPanelRenderer.encodeChildren(AjaxOutputPanelRenderer.java:56)

              at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:894)

              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1856)

              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)

              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)

              at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:443)

              at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)

              at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337)

              at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337)

              at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337)

              at org.apache.myfaces.tomahawk.application.ResourceViewHandlerWrapper.renderView(ResourceViewHandlerWrapper.java:93)

              at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)

              at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)

              at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:219)

              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:647)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)

              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)

              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)

              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)

              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)

              at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)

              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)

              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)

              at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)

              at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)

              at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1813)

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)

              at java.lang.Thread.run(Thread.java:722)

       

       

       

      Only for this rich component I am getting error.