6 Replies Latest reply on May 8, 2009 10:04 AM by Asha Rajesh

    ClassCastException

    Asha Rajesh Newbie

      Any idea why I get this exception (it is not reproducible) on displaying the panle with a tree?

      java.lang.ClassCastException: java.lang.String
      at org.richfaces.model.StackingTreeModel.doSetupKey(StackingTreeModel.java:129)
      at org.richfaces.model.StackingTreeModel.setupKey(StackingTreeModel.java:167)
      at org.richfaces.model.StackingTreeModel.setRowKey(StackingTreeModel.java:460)
      at org.ajax4jsf.component.UIDataAdaptor.setRowKey(UIDataAdaptor.java:339)
      at org.ajax4jsf.component.UIDataAdaptor.setRowKey(UIDataAdaptor.java:312)
      at org.richfaces.renderkit.TreeRendererBase.encodeSelectionStateInput(TreeRendererBase.java:494)
      at org.richfaces.renderkit.html.TreeRenderer.doEncodeEnd(TreeRenderer.java:216)
      at org.richfaces.renderkit.html.TreeRenderer.doEncodeEnd(TreeRenderer.java:239)
      at org.ajax4jsf.renderkit.RendererBase.encodeEnd(RendererBase.java:135)
      at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:539)
      at javax.faces.component.UIData.encodeEnd(UIData.java:573)
      at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:286)
      at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:262)
      at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:284)
      at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:262)
      at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:199)
      at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:194)
      at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:121)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:527)
      at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:414)
      at org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.java:229)
      at org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:101)
      at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:539)
      at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:286)
      at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:262)
      at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:199)
      at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:194)
      at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:121)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:527)
      at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:414)