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

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.

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