java.lang.ClassCastException: javax.swing.tree.DefaultTreeModel

Oracle Community | 800614 | 9 years 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

    hlep on creating tree using richfaces

    Oracle Community | 9 years ago | 800614
    java.lang.ClassCastException: javax.swing.tree.DefaultTreeModel

    Root Cause Analysis

    1. java.lang.ClassCastException

      javax.swing.tree.DefaultTreeModel

      at org.richfaces.component.UITree.createDataModel()
    2. RichFaces Core API
      UIDataAdaptor.encodeBegin
      1. org.richfaces.component.UITree.createDataModel(UITree.java:516)
      2. org.richfaces.component.UITree.resetDataModel(UITree.java:292)
      3. org.ajax4jsf.component.UIDataAdaptor.encodeBegin(UIDataAdaptor.java:1058)
      3 frames
    3. org.ajax4jsf.renderkit
      RendererBase.renderChildren
      1. org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:280)
      2. org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:262)
      2 frames
    4. RichFaces Core Implementation
      SimpleToggleControlTemplate.doEncodeChildren
      1. org.richfaces.renderkit.html.SimpleToggleControlTemplate.doEncodeChildren(SimpleToggleControlTemplate.java:318)
      2. org.richfaces.renderkit.html.SimpleToggleControlTemplate.doEncodeChildren(SimpleToggleControlTemplate.java:313)
      2 frames
    5. org.ajax4jsf.renderkit
      RendererBase.encodeChildren
      1. org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:121)
      1 frame
    6. RichFaces Core Implementation
      SimpleTogglePanelRenderer.encodeChildren
      1. org.richfaces.renderkit.html.SimpleTogglePanelRenderer.encodeChildren(SimpleTogglePanelRenderer.java:185)
      1 frame
    7. JavaEE 7
      UIComponentBase.encodeChildren
      1. javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:809)
      1 frame
    8. JSF
      GridRenderer.encodeChildren
      1. com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:271)
      2. com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:242)
      2 frames
    9. JavaEE 7
      UIComponentBase.encodeChildren
      1. javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:809)
      1 frame
    10. org.ajax4jsf.renderkit
      RendererBase.renderChildren
      1. org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:282)
      2. org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:262)
      2 frames
    11. RichFaces Core API
      TabRendererBase.encodeChildren
      1. org.richfaces.renderkit.TabRendererBase.encodeChildren(TabRendererBase.java:113)
      1 frame
    12. JavaEE 7
      UIComponentBase.encodeChildren
      1. javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:809)
      1 frame
    13. org.ajax4jsf.renderkit
      RendererBase.renderChildren
      1. org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:282)
      2. org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:262)
      2 frames
    14. RichFaces Core Implementation
      TabPanelRenderer.doEncodeChildren
      1. org.richfaces.renderkit.html.TabPanelRenderer.doEncodeChildren(TabPanelRenderer.java:266)
      2. org.richfaces.renderkit.html.TabPanelRenderer.doEncodeChildren(TabPanelRenderer.java:261)
      2 frames
    15. org.ajax4jsf.renderkit
      RendererBase.encodeChildren
      1. org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:121)
      1 frame
    16. JavaEE 7
      UIComponent.encodeAll
      1. javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:809)
      2. javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
      3. javax.faces.render.Renderer.encodeChildren(Renderer.java:137)
      4. javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:809)
      5. javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
      6. javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
      6 frames
    17. Facelets
      FaceletViewHandler.renderView
      1. com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
      1 frame
    18. org.ajax4jsf.application
      AjaxViewHandler.renderView
      1. org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
      2. org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216)
      2 frames
    19. JSF
      LifecycleImpl.render
      1. com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
      2. com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
      3. com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
      3 frames
    20. JavaEE 7
      FacesServlet.service
      1. javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
      1 frame
    21. Atmosphere weblogic
      FilterChainImpl.doFilter
      1. weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
      2. weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
      3. weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
      4. weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
      5. weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
      5 frames
    22. org.ajax4jsf.webapp
      BaseFilter.doFilter
      1. org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
      2. org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
      2 frames
    23. Atmosphere weblogic
      WebAppServletContext$ServletInvocationAction.run
      1. weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
      2. weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:26)
      3. weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
      4. weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3393)
      4 frames
    24. weblogic.security.acl
      AuthenticatedSubject.doAs
      1. weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      1 frame
    25. weblogic.security.service
      SecurityManager.runAs
      1. weblogic.security.service.SecurityManager.runAs(Unknown Source)
      1 frame
    26. Atmosphere weblogic
      ServletRequestImpl.run
      1. weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
      2. weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
      3. weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
      3 frames
    27. weblogic.work
      ExecuteThread.run
      1. weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
      2. weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
      2 frames