javax.faces.FacesException: java.lang.RuntimeException: Failed to append text[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">] into #document

Icesoft | titoermejo | 7 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Problem when going to server root

    Icesoft | 7 years ago | titoermejo
    javax.faces.FacesException: java.lang.RuntimeException: Failed to append text[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">] into #document
  2. 0

    HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is not permitted.

    icesoft.org | 1 year ago
    javax.faces.FacesException: Problem in renderResponse: Failed to append text[<input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="] into #document
  3. 0

    Re:TypeError

    Icesoft | 7 years ago | makoto1337
    org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is not permitted.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Implementing the List

    Stack Overflow | 2 years ago | seventeen
    org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is not permitted.
  6. 0

    How to create Dom objects parsing an XML with Stax

    Stack Overflow | 6 years ago | user512345
    org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is not permitted.

  1. treefolk 1 times, last 1 month ago
5 unregistered visitors
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. org.w3c.dom.DOMException

    HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is not permitted.

    at com.sun.org.apache.xerces.internal.dom.ParentNode.internalInsertBefore()
  2. Java RT
    NodeImpl.appendChild
    1. com.sun.org.apache.xerces.internal.dom.ParentNode.internalInsertBefore(ParentNode.java:356)
    2. com.sun.org.apache.xerces.internal.dom.ParentNode.insertBefore(ParentNode.java:284)
    3. com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.insertBefore(CoreDocumentImpl.java:389)
    4. com.sun.org.apache.xerces.internal.dom.NodeImpl.appendChild(NodeImpl.java:235)
    4 frames
  3. com.icesoft.faces
    DOMResponseWriter.write
    1. com.icesoft.faces.context.DOMResponseWriter.appendToCursor(DOMResponseWriter.java:587)
    2. com.icesoft.faces.context.DOMResponseWriter.write(DOMResponseWriter.java:281)
    2 frames
  4. com.sun.webui
    PageRenderer.encodeBegin
    1. com.sun.webui.jsf.renderkit.html.PageRenderer.encodeBegin(PageRenderer.java:80)
    1 frame
  5. JavaEE 7
    UIComponentBase.encodeBegin
    1. javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:788)
    1 frame
  6. com.icesoft.faces
    D2DViewHandler.renderView
    1. com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:514)
    2. com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
    3. com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:481)
    4. com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:153)
    4 frames
  7. 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
  8. com.icesoft.faces
    MainServlet.service
    1. com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:19)
    2. com.icesoft.faces.context.View$2$1.respond(View.java:48)
    3. com.icesoft.faces.webapp.http.servlet.GlassFishAdaptingServlet$GlassFishRequestResponse.respondWith(GlassFishAdaptingServlet.java:159)
    4. com.icesoft.faces.context.View$2.serve(View.java:76)
    5. com.icesoft.faces.context.View.servePage(View.java:139)
    6. com.icesoft.faces.webapp.http.core.MultiViewServer.service(MultiViewServer.java:55)
    7. com.icesoft.faces.webapp.http.common.ServerProxy.service(ServerProxy.java:11)
    8. com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet$4.service(MainSessionBoundServlet.java:114)
    9. com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
    10. com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:160)
    11. com.icesoft.faces.webapp.http.servlet.SessionDispatcher$1.service(SessionDispatcher.java:42)
    12. com.icesoft.faces.webapp.http.servlet.GlassFishAdaptingServlet.service(GlassFishAdaptingServlet.java:60)
    13. com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:63)
    14. com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:62)
    15. com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
    16. com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:153)
    16 frames
  9. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
    1 frame
  10. Glassfish Core
    ApplicationDispatcher.forward
    1. org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
    2. org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:875)
    3. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:723)
    4. org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:558)
    5. org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:490)
    6. org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:382)
    6 frames
  11. JSF
    ViewHandlerImpl.renderView
    1. com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:408)
    2. com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:442)
    3. com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:115)
    3 frames
  12. com.sun.rave
    ViewHandlerImpl.renderView
    1. com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:320)
    1 frame
  13. com.icesoft.faces
    D2DViewHandler.renderView
    1. com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:145)
    1 frame
  14. 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
  15. JavaEE 7
    FacesServlet.service
    1. javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
    1 frame
  16. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
    2. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:333)
    3. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
    3 frames
  17. spring-security-core
    FilterChainProxy$VirtualFilterChain.doFilter
    1. org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
    1 frame
  18. org.springframework.security
    FilterSecurityInterceptor.doFilter
    1. org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
    2. org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
    2 frames
  19. spring-security-core
    FilterChainProxy$VirtualFilterChain.doFilter
    1. org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    1 frame
  20. org.springframework.security
    SpringSecurityFilter.doFilter
    1. org.springframework.security.ui.SessionFixationProtectionFilter.doFilterHttp(SessionFixationProtectionFilter.java:67)
    2. org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    2 frames
  21. spring-security-core
    FilterChainProxy$VirtualFilterChain.doFilter
    1. org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    1 frame
  22. org.springframework.security
    SpringSecurityFilter.doFilter
    1. org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101)
    2. org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    2 frames
  23. spring-security-core
    FilterChainProxy$VirtualFilterChain.doFilter
    1. org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    1 frame
  24. org.springframework.security
    SpringSecurityFilter.doFilter
    1. org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFilterHttp(AnonymousProcessingFilter.java:105)
    2. org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    2 frames
  25. spring-security-core
    FilterChainProxy$VirtualFilterChain.doFilter
    1. org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    1 frame
  26. org.springframework.security
    SpringSecurityFilter.doFilter
    1. org.springframework.security.ui.rememberme.RememberMeProcessingFilter.doFilterHttp(RememberMeProcessingFilter.java:116)
    2. org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    2 frames
  27. spring-security-core
    FilterChainProxy$VirtualFilterChain.doFilter
    1. org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    1 frame
  28. org.springframework.security
    SpringSecurityFilter.doFilter
    1. org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doFilterHttp(SecurityContextHolderAwareRequestFilter.java:91)
    2. org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    2 frames
  29. spring-security-core
    FilterChainProxy$VirtualFilterChain.doFilter
    1. org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    1 frame
  30. org.springframework.security
    SpringSecurityFilter.doFilter
    1. org.springframework.security.ui.basicauth.BasicProcessingFilter.doFilterHttp(BasicProcessingFilter.java:174)
    2. org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    2 frames
  31. spring-security-core
    FilterChainProxy$VirtualFilterChain.doFilter
    1. org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    1 frame
  32. org.springframework.security
    SpringSecurityFilter.doFilter
    1. org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:277)
    2. org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    2 frames
  33. spring-security-core
    FilterChainProxy$VirtualFilterChain.doFilter
    1. org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    1 frame
  34. org.springframework.security
    SpringSecurityFilter.doFilter
    1. org.springframework.security.ui.logout.LogoutFilter.doFilterHttp(LogoutFilter.java:89)
    2. org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    2 frames
  35. spring-security-core
    FilterChainProxy$VirtualFilterChain.doFilter
    1. org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    1 frame
  36. Spring Security - Portlet support
    HttpSessionContextIntegrationFilter.doFilterHttp
    1. org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235)
    1 frame
  37. org.springframework.security
    SpringSecurityFilter.doFilter
    1. org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    1 frame
  38. spring-security-core
    FilterChainProxy.doFilter
    1. org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    2. org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:175)
    2 frames
  39. Spring
    DelegatingFilterProxy.doFilter
    1. org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:183)
    2. org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:138)
    2 frames
  40. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
    2 frames
  41. Hibernate
    OpenSessionInViewFilter.doFilterInternal
    1. org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
    1 frame
  42. Spring
    OncePerRequestFilter.doFilter
    1. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
    1 frame
  43. Glassfish Core
    StandardPipeline.doInvoke
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:313)
    4. org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
    5. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
    6. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
    7. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
    7 frames
  44. Glassfish
    PESessionLockingStandardPipeline.invoke
    1. com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
    2. com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
    2 frames
  45. Glassfish Core
    ContainerBase.invoke
    1. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
    2. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
    3. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
    4. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
    5. org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
    6. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
    7. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
    8. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
    9. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
    10. org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
    10 frames
  46. org.apache.coyote
    CoyoteAdapter.service
    1. org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:288)
    1 frame
  47. Glassfish Core
    DefaultProcessorTask.invokeAdapter
    1. com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:647)
    1 frame
  48. Grizzly Compat
    CometAsyncFilter.doFilter
    1. com.sun.enterprise.web.connector.grizzly.comet.CometEngine.executeServlet(CometEngine.java:609)
    2. com.sun.enterprise.web.connector.grizzly.comet.CometEngine.handle(CometEngine.java:356)
    3. com.sun.enterprise.web.connector.grizzly.comet.CometAsyncFilter.doFilter(CometAsyncFilter.java:84)
    3 frames
  49. Grizzly HTTP
    AsyncProcessorTask.doTask
    1. com.sun.enterprise.web.connector.grizzly.async.DefaultAsyncExecutor.invokeFilters(DefaultAsyncExecutor.java:175)
    2. com.sun.enterprise.web.connector.grizzly.async.DefaultAsyncExecutor.interrupt(DefaultAsyncExecutor.java:153)
    3. com.sun.enterprise.web.connector.grizzly.async.AsyncProcessorTask.doTask(AsyncProcessorTask.java:92)
    3 frames
  50. Glassfish Core
    TaskBase.run
    1. com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
    1 frame
  51. Grizzly HTTP
    SSLWorkerThread.run
    1. com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
    1 frame