javax.faces.FacesException: Cannot add the same component twice: javax_faces_location_HEAD

ICEsoft JIRA Issue Tracker | Arran Mccullough | 2 years ago
  1. 0

    When using dynamin ui:includes for navigation/displaying content. After loading some content, navigating, then loading the previous page/content, the following error is thrown and the Network Connection Interrupted dialog is shown: 15-Apr-2015 13:08:44.782 SEVERE [http-nio-8084-exec-12] com.sun.faces.context.AjaxExceptionHandlerImpl.handlePartialResponseError javax.faces.FacesException: Cannot add the same component twice: javax_faces_location_HEAD at com.sun.faces.context.StateContext$DynamicAddRemoveListener.handleAddRemoveWithAutoPrune(StateContext.java:748) at com.sun.faces.context.StateContext$DynamicAddRemoveListener.handleAdd(StateContext.java:664) at com.sun.faces.context.StateContext$AddRemoveListener.processEvent(StateContext.java:347) at com.sun.faces.context.StateContext$DynamicAddRemoveListener.processEvent(StateContext.java:565) at javax.faces.event.SystemEvent.processListener(SystemEvent.java:108) at javax.faces.event.ComponentSystemEvent.processListener(ComponentSystemEvent.java:118) at com.sun.faces.application.ApplicationImpl.processListenersAccountingForAdds(ApplicationImpl.java:2218) at com.sun.faces.application.ApplicationImpl.invokeViewListenersFor(ApplicationImpl.java:2036) at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:290) at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:245) at javax.faces.component.UIComponentBase.publishAfterViewEvents(UIComponentBase.java:2253) at javax.faces.component.UIComponentBase.doPostAddProcessing(UIComponentBase.java:1934) at javax.faces.component.UIComponentBase.setParent(UIComponentBase.java:447) at javax.faces.component.UIComponentBase$FacetsMap.put(UIComponentBase.java:2993) at javax.faces.component.UIComponentBase$FacetsMap.put(UIComponentBase.java:2953) at javax.faces.component.UIViewRoot.getComponentResources(UIViewRoot.java:1818) at javax.faces.component.UIViewRoot.addComponentResource(UIViewRoot.java:521) at org.icefaces.impl.application.InitializeHeadAndBodyFacetContainers.initializeFacetContainer(InitializeHeadAndBodyFacetContainers.java:49) at org.icefaces.impl.application.InitializeHeadAndBodyFacetContainers.beforePhase(InitializeHeadAndBodyFacetContainers.java:34) at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:228) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:99) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:219) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:647) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:526) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:655) at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1566) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1523) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745)

    ICEsoft JIRA Issue Tracker | 2 years ago | Arran Mccullough
    javax.faces.FacesException: Cannot add the same component twice: javax_faces_location_HEAD
  2. 0

    When using dynamin ui:includes for navigation/displaying content. After loading some content, navigating, then loading the previous page/content, the following error is thrown and the Network Connection Interrupted dialog is shown: 15-Apr-2015 13:08:44.782 SEVERE [http-nio-8084-exec-12] com.sun.faces.context.AjaxExceptionHandlerImpl.handlePartialResponseError javax.faces.FacesException: Cannot add the same component twice: javax_faces_location_HEAD at com.sun.faces.context.StateContext$DynamicAddRemoveListener.handleAddRemoveWithAutoPrune(StateContext.java:748) at com.sun.faces.context.StateContext$DynamicAddRemoveListener.handleAdd(StateContext.java:664) at com.sun.faces.context.StateContext$AddRemoveListener.processEvent(StateContext.java:347) at com.sun.faces.context.StateContext$DynamicAddRemoveListener.processEvent(StateContext.java:565) at javax.faces.event.SystemEvent.processListener(SystemEvent.java:108) at javax.faces.event.ComponentSystemEvent.processListener(ComponentSystemEvent.java:118) at com.sun.faces.application.ApplicationImpl.processListenersAccountingForAdds(ApplicationImpl.java:2218) at com.sun.faces.application.ApplicationImpl.invokeViewListenersFor(ApplicationImpl.java:2036) at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:290) at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:245) at javax.faces.component.UIComponentBase.publishAfterViewEvents(UIComponentBase.java:2253) at javax.faces.component.UIComponentBase.doPostAddProcessing(UIComponentBase.java:1934) at javax.faces.component.UIComponentBase.setParent(UIComponentBase.java:447) at javax.faces.component.UIComponentBase$FacetsMap.put(UIComponentBase.java:2993) at javax.faces.component.UIComponentBase$FacetsMap.put(UIComponentBase.java:2953) at javax.faces.component.UIViewRoot.getComponentResources(UIViewRoot.java:1818) at javax.faces.component.UIViewRoot.addComponentResource(UIViewRoot.java:521) at org.icefaces.impl.application.InitializeHeadAndBodyFacetContainers.initializeFacetContainer(InitializeHeadAndBodyFacetContainers.java:49) at org.icefaces.impl.application.InitializeHeadAndBodyFacetContainers.beforePhase(InitializeHeadAndBodyFacetContainers.java:34) at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:228) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:99) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:219) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:647) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:526) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:655) at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1566) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1523) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745)

    ICEsoft JIRA Issue Tracker | 2 years ago | Arran Mccullough
    javax.faces.FacesException: Cannot add the same component twice: javax_faces_location_HEAD
  3. 0

    javax.faces.FacesException: Cannot add the same component twice: javascript_runner

    icesoft.org | 8 months ago
    javax.faces.FacesException: Cannot add the same component twice: javascript_runner
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Cannot add the same component twice- Websphere

    Stack Overflow | 8 months ago | gu3rr3ro
    javax.faces.FacesException: Cannot add the same component twice: vp6szfq2_icefaces_config

    1 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. javax.faces.FacesException

      Cannot add the same component twice: javax_faces_location_HEAD

      at com.sun.faces.context.StateContext$DynamicAddRemoveListener.handleAddRemoveWithAutoPrune()
    2. JSF
      StateContext$DynamicAddRemoveListener.processEvent
      1. com.sun.faces.context.StateContext$DynamicAddRemoveListener.handleAddRemoveWithAutoPrune(StateContext.java:748)
      2. com.sun.faces.context.StateContext$DynamicAddRemoveListener.handleAdd(StateContext.java:664)
      3. com.sun.faces.context.StateContext$AddRemoveListener.processEvent(StateContext.java:347)
      4. com.sun.faces.context.StateContext$DynamicAddRemoveListener.processEvent(StateContext.java:565)
      4 frames
    3. JavaEE 7
      ComponentSystemEvent.processListener
      1. javax.faces.event.SystemEvent.processListener(SystemEvent.java:108)
      2. javax.faces.event.ComponentSystemEvent.processListener(ComponentSystemEvent.java:118)
      2 frames
    4. JSF
      ApplicationImpl.publishEvent
      1. com.sun.faces.application.ApplicationImpl.processListenersAccountingForAdds(ApplicationImpl.java:2218)
      2. com.sun.faces.application.ApplicationImpl.invokeViewListenersFor(ApplicationImpl.java:2036)
      3. com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:290)
      4. com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:245)
      4 frames
    5. JavaEE 7
      UIViewRoot.addComponentResource
      1. javax.faces.component.UIComponentBase.publishAfterViewEvents(UIComponentBase.java:2253)
      2. javax.faces.component.UIComponentBase.doPostAddProcessing(UIComponentBase.java:1934)
      3. javax.faces.component.UIComponentBase.setParent(UIComponentBase.java:447)
      4. javax.faces.component.UIComponentBase$FacetsMap.put(UIComponentBase.java:2993)
      5. javax.faces.component.UIComponentBase$FacetsMap.put(UIComponentBase.java:2953)
      6. javax.faces.component.UIViewRoot.getComponentResources(UIViewRoot.java:1818)
      7. javax.faces.component.UIViewRoot.addComponentResource(UIViewRoot.java:521)
      7 frames
    6. org.icefaces.impl
      InitializeHeadAndBodyFacetContainers.beforePhase
      1. org.icefaces.impl.application.InitializeHeadAndBodyFacetContainers.initializeFacetContainer(InitializeHeadAndBodyFacetContainers.java:49)
      2. org.icefaces.impl.application.InitializeHeadAndBodyFacetContainers.beforePhase(InitializeHeadAndBodyFacetContainers.java:34)
      2 frames
    7. JSF
      LifecycleImpl.render
      1. com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:228)
      2. com.sun.faces.lifecycle.Phase.doPhase(Phase.java:99)
      3. com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:219)
      3 frames
    8. JavaEE 7
      FacesServlet.service
      1. javax.faces.webapp.FacesServlet.service(FacesServlet.java:647)
      1 frame
    9. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    10. Tomcat WS
      WsFilter.doFilter
      1. org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      1 frame
    11. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    12. org.netbeans.modules
      MonitorFilter.doFilter
      1. org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
      1 frame
    13. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
      5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)
      6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136)
      7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
      8. org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
      9. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
      10. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:526)
      10 frames
    14. Grizzly HTTP
      NioEndpoint$SocketProcessor.run
      1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)
      2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:655)
      3. org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)
      4. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1566)
      5. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1523)
      5 frames
    15. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      2 frames
    16. Tomcat Util
      TaskThread$WrappingRunnable.run
      1. org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      1 frame
    17. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame