java.lang.ClassCastException: com.icesoft.faces.component.menubar.MenuItemSeparator

ICEsoft JIRA Issue Tracker | Steven Heller | 7 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    When creating your menuitems in a java class and adding a MenuItemSeparator to them there is a problem when using the <ice:selectItems> tag. The menu is rendered correctly, but if you try to execute a method within the menu, you will get the following stacktrace: java.lang.ClassCastException: com.icesoft.faces.component.menubar.MenuItemSeparator at com.icesoft.faces.component.menubar.MenuItems.processDecodes(MenuItems.java:154) at com.icesoft.faces.component.menubar.MenuItemBase.processDecodes(MenuItemBase.java:73) at com.icesoft.faces.component.menubar.MenuBar.processDecodes(MenuBar.java:260) at com.icesoft.faces.component.ext.HtmlDataTable.processKids(HtmlDataTable.java:338) at com.icesoft.faces.component.ext.HtmlDataTable.iterate(HtmlDataTable.java:293) at com.icesoft.faces.component.panelseries.UISeries.processDecodes(UISeries.java:315) at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026) at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026) at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026) at com.icesoft.faces.component.panelcollapsible.PanelCollapsible.processDecodes(PanelCollapsible.java:219) at javax.faces.component.UIForm.processDecodes(UIForm.java:209) at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026) at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026) at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026) at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026) at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026) at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026) at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026) at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026) at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026) at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:540) at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:78) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) .......

    ICEsoft JIRA Issue Tracker | 7 years ago | Steven Heller
    java.lang.ClassCastException: com.icesoft.faces.component.menubar.MenuItemSeparator
  2. 0

    When creating your menuitems in a java class and adding a MenuItemSeparator to them there is a problem when using the <ice:selectItems> tag. The menu is rendered correctly, but if you try to execute a method within the menu, you will get the following stacktrace: java.lang.ClassCastException: com.icesoft.faces.component.menubar.MenuItemSeparator at com.icesoft.faces.component.menubar.MenuItems.processDecodes(MenuItems.java:154) at com.icesoft.faces.component.menubar.MenuItemBase.processDecodes(MenuItemBase.java:73) at com.icesoft.faces.component.menubar.MenuBar.processDecodes(MenuBar.java:260) at com.icesoft.faces.component.ext.HtmlDataTable.processKids(HtmlDataTable.java:338) at com.icesoft.faces.component.ext.HtmlDataTable.iterate(HtmlDataTable.java:293) at com.icesoft.faces.component.panelseries.UISeries.processDecodes(UISeries.java:315) at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026) at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026) at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026) at com.icesoft.faces.component.panelcollapsible.PanelCollapsible.processDecodes(PanelCollapsible.java:219) at javax.faces.component.UIForm.processDecodes(UIForm.java:209) at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026) at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026) at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026) at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026) at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026) at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026) at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026) at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026) at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026) at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:540) at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:78) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) .......

    ICEsoft JIRA Issue Tracker | 7 years ago | Steven Heller
    java.lang.ClassCastException: com.icesoft.faces.component.menubar.MenuItemSeparator

    Root Cause Analysis

    1. java.lang.ClassCastException

      com.icesoft.faces.component.menubar.MenuItemSeparator

      at com.icesoft.faces.component.menubar.MenuItems.processDecodes()
    2. com.icesoft.faces
      UISeries.processDecodes
      1. com.icesoft.faces.component.menubar.MenuItems.processDecodes(MenuItems.java:154)
      2. com.icesoft.faces.component.menubar.MenuItemBase.processDecodes(MenuItemBase.java:73)
      3. com.icesoft.faces.component.menubar.MenuBar.processDecodes(MenuBar.java:260)
      4. com.icesoft.faces.component.ext.HtmlDataTable.processKids(HtmlDataTable.java:338)
      5. com.icesoft.faces.component.ext.HtmlDataTable.iterate(HtmlDataTable.java:293)
      6. com.icesoft.faces.component.panelseries.UISeries.processDecodes(UISeries.java:315)
      6 frames
    3. JavaEE 7
      UIComponentBase.processDecodes
      1. javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026)
      2. javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026)
      3. javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026)
      3 frames
    4. com.icesoft.faces
      PanelCollapsible.processDecodes
      1. com.icesoft.faces.component.panelcollapsible.PanelCollapsible.processDecodes(PanelCollapsible.java:219)
      1 frame
    5. JavaEE 7
      UIViewRoot.processDecodes
      1. javax.faces.component.UIForm.processDecodes(UIForm.java:209)
      2. javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026)
      3. javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026)
      4. javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026)
      5. javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026)
      6. javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026)
      7. javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026)
      8. javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026)
      9. javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026)
      10. javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026)
      11. javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:540)
      11 frames
    6. JSF
      LifecycleImpl.execute
      1. com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:78)
      2. com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
      3. com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
      3 frames