java.lang.ClassCastException: org.apache.xerces.dom.TextImpl cannot be cast to org.w3c.dom.Element

ICEsoft JIRA Issue Tracker | Martin Melcher | 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

    The selectManyCheckbox component does not seem to work. <ice:selectManyCheckbox id="restrictions" value="#{RVController.processedEntity.restrictions}"> </ice:selectManyCheckbox> causes an exception to be thrown, even with no selectItems. Using selectManyMenu instead does not raise any exceptions. Stack trace follows... java.lang.ClassCastException: org.apache.xerces.dom.TextImpl cannot be cast to org.w3c.dom.Element at com.icesoft.faces.component.ext.renderkit.SelectManyCheckboxListRenderer.getTableElement(SelectManyCheckboxListRenderer.java:50) at com.icesoft.faces.renderkit.dom_html_basic.SelectManyCheckboxListRenderer.encodeEnd(SelectManyCheckboxListRenderer.java:91) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536) at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:362) at com.icesoft.faces.renderkit.dom_html_basic.GridRenderer.encodeChildren(GridRenderer.java:203) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:524) at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:546) at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:550) at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:550) at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:550) at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:550) at com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:282) at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:161) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:367) at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:18) at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(ReceiveSendUpdates.java:54) at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(ReceiveSendUpdates.java:42) at com.icesoft.faces.webapp.http.core.ViewBoundServer.service(ViewBoundServer.java:65) at com.icesoft.faces.webapp.http.core.RequestVerifier.service(RequestVerifier.java:44) at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer$Matcher.serviceOnMatch(PathDispatcherServer.java:50) at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:19) at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19) at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:29) at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:139) at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:35) at com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52) at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29) at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:79) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

    ICEsoft JIRA Issue Tracker | 9 years ago | Martin Melcher
    java.lang.ClassCastException: org.apache.xerces.dom.TextImpl cannot be cast to org.w3c.dom.Element
  2. 0

    The selectManyCheckbox component does not seem to work. <ice:selectManyCheckbox id="restrictions" value="#{RVController.processedEntity.restrictions}"> </ice:selectManyCheckbox> causes an exception to be thrown, even with no selectItems. Using selectManyMenu instead does not raise any exceptions. Stack trace follows... java.lang.ClassCastException: org.apache.xerces.dom.TextImpl cannot be cast to org.w3c.dom.Element at com.icesoft.faces.component.ext.renderkit.SelectManyCheckboxListRenderer.getTableElement(SelectManyCheckboxListRenderer.java:50) at com.icesoft.faces.renderkit.dom_html_basic.SelectManyCheckboxListRenderer.encodeEnd(SelectManyCheckboxListRenderer.java:91) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536) at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:362) at com.icesoft.faces.renderkit.dom_html_basic.GridRenderer.encodeChildren(GridRenderer.java:203) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:524) at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:546) at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:550) at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:550) at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:550) at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:550) at com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:282) at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:161) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:367) at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:18) at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(ReceiveSendUpdates.java:54) at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(ReceiveSendUpdates.java:42) at com.icesoft.faces.webapp.http.core.ViewBoundServer.service(ViewBoundServer.java:65) at com.icesoft.faces.webapp.http.core.RequestVerifier.service(RequestVerifier.java:44) at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer$Matcher.serviceOnMatch(PathDispatcherServer.java:50) at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:19) at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19) at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:29) at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:139) at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:35) at com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52) at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29) at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:79) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

    ICEsoft JIRA Issue Tracker | 9 years ago | Martin Melcher
    java.lang.ClassCastException: org.apache.xerces.dom.TextImpl cannot be cast to org.w3c.dom.Element
  3. 0

    Error for 404 pageNotFound with struts2

    Stack Overflow | 5 years ago | user1278890
    java.lang.ClassCastException: org.apache.struts2.dispatcher.StrutsRequestWrapper cannot be cast to com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.EvermindHttpServletRequest at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.NotFoundServlet.sendNotFound(NotFoundServlet.java:26 ) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.NotFoundServlet.service(NotFoundServlet.java:18)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ArrayList Entity property mystery using 'Integer' objects

    Stack Overflow | 2 years ago
    java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer at jFormTKServlets.JFormTKServletsServlet.doGet( JFormTKServletsServlet.java:330)
  6. 0

    Jetty - Java HTTP Servlet Server / Mailing Lists

    sourceforge.net | 2 years ago
    java.lang.ClassCastException: org.apache.soap.server.ServiceManager at org.apache.soap.server.http.ServerHTTPUtils.getServiceManagerFromContext(ServerHTTPUtils.java:112) at org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java:278)

    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.apache.xerces.dom.TextImpl cannot be cast to org.w3c.dom.Element

      at com.icesoft.faces.component.ext.renderkit.SelectManyCheckboxListRenderer.getTableElement()
    2. com.icesoft.faces
      SelectManyCheckboxListRenderer.encodeEnd
      1. com.icesoft.faces.component.ext.renderkit.SelectManyCheckboxListRenderer.getTableElement(SelectManyCheckboxListRenderer.java:50)
      2. com.icesoft.faces.renderkit.dom_html_basic.SelectManyCheckboxListRenderer.encodeEnd(SelectManyCheckboxListRenderer.java:91)
      2 frames
    3. JavaEE 7
      UIComponentBase.encodeEnd
      1. javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536)
      1 frame
    4. com.icesoft.faces
      GridRenderer.encodeChildren
      1. com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:362)
      2. com.icesoft.faces.renderkit.dom_html_basic.GridRenderer.encodeChildren(GridRenderer.java:203)
      2 frames
    5. JavaEE 7
      UIComponentBase.encodeChildren
      1. javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:524)
      1 frame
    6. com.icesoft.faces
      D2DViewHandler.renderView
      1. com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:546)
      2. com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:550)
      3. com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:550)
      4. com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:550)
      5. com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:550)
      6. com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:282)
      7. com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:161)
      7 frames
    7. Impl
      LifecycleImpl.render
      1. org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:367)
      1 frame
    8. com.icesoft.faces
      MainServlet.service
      1. com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:18)
      2. com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(ReceiveSendUpdates.java:54)
      3. com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(ReceiveSendUpdates.java:42)
      4. com.icesoft.faces.webapp.http.core.ViewBoundServer.service(ViewBoundServer.java:65)
      5. com.icesoft.faces.webapp.http.core.RequestVerifier.service(RequestVerifier.java:44)
      6. com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer$Matcher.serviceOnMatch(PathDispatcherServer.java:50)
      7. com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:19)
      8. com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
      9. com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:29)
      10. com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:139)
      11. com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:35)
      12. com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
      13. com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)
      14. com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:79)
      14 frames
    9. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      1 frame