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
  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

    db:: 2.80::problem with af:showPrintablePageBehavior in JDeveloper 11.1.1.7 pk

    hivmr.com | 6 months ago
    java.lang.ClassCastException: oracle.xml.parser.v2.XMLComment cannot be cast to org.w3c.dom.Element
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Problem: BPEL Array population

    Oracle Community | 6 years ago | 846590
    java.lang.ClassCastException: java.lang.Integer cannot be cast to org.w3c.dom.Element
  6. 0

    GitHub comment 96#227998902

    GitHub | 6 months ago | jaimecasero
    java.lang.ClassCastException: org.mobicents.servlet.sip.startup.loading.SipServletMapping cannot be cast to org.w3c.dom.Element

    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