java.lang.ClassCastException: org.primefaces.model.menu.DefaultSubMenu cannot be cast to org.primefaces.model.menu.MenuItem

Stack Overflow | Sultan Khan | 1 month ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    composite component and ajax update

    Stack Overflow | 4 years ago | user1595858
    javax.faces.FacesException: Cannot find component with identifier "_comImplContSearch_contentListForm" referenced from "comImplContSearch_folderTree".
  2. 0

    Show Prime faces Bread Crumb dynamically

    Stack Overflow | 1 month ago | Sultan Khan
    java.lang.ClassCastException: org.primefaces.model.menu.DefaultSubMenu cannot be cast to org.primefaces.model.menu.MenuItem
  3. 0

    PrimeFaces Community Forum • View topic - Issue with slide menu after upgrading to 4.0.RC1

    primefaces.org | 1 year ago
    java.lang.ClassCastException: com.sun.faces.facelets.compiler.UIInstructions cannot be cast to org.primefaces.model.menu.MenuElement
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    5 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.primefaces.model.menu.DefaultSubMenu cannot be cast to org.primefaces.model.menu.MenuItem

      at org.primefaces.component.breadcrumb.BreadCrumbRenderer.encodeMarkup()
    2. primefaces
      BaseMenuRenderer.encodeEnd
      1. org.primefaces.component.breadcrumb.BreadCrumbRenderer.encodeMarkup(BreadCrumbRenderer.java:42)[primefaces-5.2.jar:5.2]
      2. org.primefaces.component.menu.BaseMenuRenderer.encodeEnd(BaseMenuRenderer.java:113)[primefaces-5.2.jar:5.2]
      2 frames
    3. JavaEE 7
      UIComponent.encodeAll
      1. javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:875)[jboss-jsf-api_2.1_spec-2.0.0.Final.jar:2.0.0.Final]
      2. javax.faces.component.UIComponent.encodeAll(UIComponent.java:1764)[jboss-jsf-api_2.1_spec-2.0.0.Final.jar:2.0.0.Final]
      3. javax.faces.render.Renderer.encodeChildren(Renderer.java:168)[jboss-jsf-api_2.1_spec-2.0.0.Final.jar:2.0.0.Final]
      4. javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845)[jboss-jsf-api_2.1_spec-2.0.0.Final.jar:2.0.0.Final]
      5. javax.faces.component.UIComponent.encodeAll(UIComponent.java:1757)[jboss-jsf-api_2.1_spec-2.0.0.Final.jar:2.0.0.Final]
      6. javax.faces.component.UIComponent.encodeAll(UIComponent.java:1760)[jboss-jsf-api_2.1_spec-2.0.0.Final.jar:2.0.0.Final]
      6 frames
    4. JSF
      LifecycleImpl.render
      1. com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:402)[jsf-impl-2.1.5-jbossorg-1.jar:2.1.5-SNAPSHOT]
      2. com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)[jsf-impl-2.1.5-jbossorg-1.jar:2.1.5-SNAPSHOT]
      3. com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121)[jsf-impl-2.1.5-jbossorg-1.jar:2.1.5-SNAPSHOT]
      4. com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)[jsf-impl-2.1.5-jbossorg-1.jar:2.1.5-SNAPSHOT]
      5. com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)[jsf-impl-2.1.5-jbossorg-1.jar:2.1.5-SNAPSHOT]
      5 frames
    5. JavaEE 7
      FacesServlet.service
      1. javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)[jboss-jsf-api_2.1_spec-2.0.0.Final.jar:2.0.0.Final]
      1 frame
    6. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)[jbossweb-7.0.10.Final.jar:]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)[jbossweb-7.0.10.Final.jar:]
      2 frames
    7. primefaces
      FileUploadFilter.doFilter
      1. org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:100)[primefaces-5.2.jar:5.2]
      1 frame
    8. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)[jbossweb-7.0.10.Final.jar:]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)[jbossweb-7.0.10.Final.jar:]
      2 frames
    9. webutilities
      CompressionFilter.doFilter
      1. com.googlecode.webutilities.filters.CompressionFilter.doFilter(CompressionFilter.java:112)[webutilities-0.0.5.jar:]
      1 frame
    10. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)[jbossweb-7.0.10.Final.jar:]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)[jbossweb-7.0.10.Final.jar:]
      2 frames
    11. Spring ORM
      OpenEntityManagerInViewFilter.doFilterInternal
      1. org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:113)[spring-orm-3.0.5.RELEASE.jar:3.0.5.RELEASE]
      1 frame
    12. Spring
      OncePerRequestFilter.doFilter
      1. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)[spring-web-3.0.5.RELEASE.jar:3.0.5.RELEASE]
      1 frame
    13. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)[jbossweb-7.0.10.Final.jar:]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)[jbossweb-7.0.10.Final.jar:]
      2 frames
    14. pk.gov.fbr
      IRISFilterBean.doFilter
      1. pk.gov.fbr.insys.base.IRISFilterBean.doFilter(IRISFilterBean.java:105)[classes:]
      1 frame
    15. Glassfish Core
      AuthenticatorBase.invoke
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)[jbossweb-7.0.10.Final.jar:]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)[jbossweb-7.0.10.Final.jar:]
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)[jbossweb-7.0.10.Final.jar:]
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)[jbossweb-7.0.10.Final.jar:]
      5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:489)[jbossweb-7.0.10.Final.jar:]
      5 frames
    16. JBoss Web
      SecurityContextAssociationValve.invoke
      1. org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:154)[jboss-as-web-7.1.0.Final.jar:7.1.0.Final]
      1 frame
    17. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)[jbossweb-7.0.10.Final.jar:]
      2. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)[jbossweb-7.0.10.Final.jar:]
      3. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)[jbossweb-7.0.10.Final.jar:]
      4. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)[jbossweb-7.0.10.Final.jar:]
      4 frames
    18. Grizzly HTTP
      JIoEndpoint$Worker.run
      1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)[jbossweb-7.0.10.Final.jar:]
      2. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)[jbossweb-7.0.10.Final.jar:]
      3. org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)[jbossweb-7.0.10.Final.jar:]
      3 frames
    19. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)[rt.jar:1.6.0_33]
      1 frame