javax.faces.FacesException

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.

  • 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)
    via by Arran Mccullough,
  • 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)
    via by Arran Mccullough,
    • javax.faces.FacesException: Cannot remove the same component twice: form:a123:j_idt2 at com.sun.faces.context.StateContext$DynamicAddRemoveListener.handleAddRemoveWithAutoPrune(StateContext.java:761) at com.sun.faces.context.StateContext$DynamicAddRemoveListener.handleRemove(StateContext.java:629) at com.sun.faces.context.StateContext$AddRemoveListener.processEvent(StateContext.java:342) 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 org.jboss.as.jsf.injection.weld.ForwardingApplication.publishEvent(ForwardingApplication.java:299) at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:726) at javax.faces.component.UIComponentBase.disconnectFromView(UIComponentBase.java:2281) at javax.faces.component.UIComponentBase.doPreRemoveProcessing(UIComponentBase.java:1944) at javax.faces.component.UIComponentBase.setParent(UIComponentBase.java:436) at javax.faces.component.UIComponentBase$ChildrenList.remove(UIComponentBase.java:2775) at javax.faces.component.UIViewRoot.addComponentResource(UIViewRoot.java:528) at com.sun.faces.renderkit.html_basic.ScriptStyleBaseRenderer.processEvent(ScriptStyleBaseRenderer.java:105) at javax.faces.component.UIComponent$ComponentSystemEventListenerAdapter.processEvent(UIComponent.java:2584) at javax.faces.event.SystemEvent.processListener(SystemEvent.java:108) at javax.faces.event.ComponentSystemEvent.processListener(ComponentSystemEvent.java:118) at com.sun.faces.application.ApplicationImpl.processListeners(ApplicationImpl.java:2169) at com.sun.faces.application.ApplicationImpl.invokeComponentListenersFor(ApplicationImpl.java:2114) at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:287) at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:245) at org.jboss.as.jsf.injection.weld.ForwardingApplication.publishEvent(ForwardingApplication.java:299) at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:726) at javax.faces.component.UIComponentBase.publishAfterViewEvents(UIComponentBase.java:2254) at javax.faces.component.UIComponentBase.doPostAddProcessing(UIComponentBase.java:1935) at javax.faces.component.UIComponentBase.setParent(UIComponentBase.java:448) at javax.faces.component.UIComponentBase$ChildrenList.add(UIComponentBase.java:2700) at javax.faces.component.UIComponentBase$ChildrenList.add(UIComponentBase.java:2672) at javax.faces.component.UIViewRoot.addComponentResource(UIViewRoot.java:533) at com.sun.faces.renderkit.html_basic.ScriptStyleBaseRenderer.processEvent(ScriptStyleBaseRenderer.java:105) at javax.faces.component.UIComponent$ComponentSystemEventListenerAdapter.processEvent(UIComponent.java:2584) at javax.faces.event.SystemEvent.processListener(SystemEvent.java:108) at javax.faces.event.ComponentSystemEvent.processListener(ComponentSystemEvent.java:118) at com.sun.faces.application.ApplicationImpl.processListeners(ApplicationImpl.java:2169) at com.sun.faces.application.ApplicationImpl.invokeComponentListenersFor(ApplicationImpl.java:2114) at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:287) at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:245) at org.jboss.as.jsf.injection.weld.ForwardingApplication.publishEvent(ForwardingApplication.java:299) at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:726) at javax.faces.component.UIComponentBase.publishAfterViewEvents(UIComponentBase.java:2254) at javax.faces.component.UIComponentBase.publishAfterViewEvents(UIComponentBase.java:2259) at javax.faces.component.UIComponentBase.publishAfterViewEvents(UIComponentBase.java:2267) at javax.faces.component.UIComponentBase.doPostAddProcessing(UIComponentBase.java:1935) at javax.faces.component.UIComponentBase.setParent(UIComponentBase.java:448) at javax.faces.component.UIComponentBase$ChildrenList.add(UIComponentBase.java:2700) at javax.faces.component.UIComponentBase$ChildrenList.add(UIComponentBase.java:2672) at org.omnifaces.util.Components.includeCompositeComponent(Components.java:653) at br.edu.ufca.eventos.visao.PaginaLogin.autenticarUsuario(PaginaLogin.java:82) at br.edu.ufca.eventos.visao.PaginaLoginServidor.autenticarUsuario(PaginaLoginServidor.java:19) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.sun.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:181) at com.sun.el.parser.AstValue.invoke(AstValue.java:289) at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:304) at org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40) at org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50) at org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40) at org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50) at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105) at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:87)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,