java.lang.ClassCastException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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) .......
    via by Steven Heller,
  • 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) .......
    via by Steven Heller,
    • 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)
    No Bugmate found.