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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via ICEsoft JIRA Issue Tracker by Arran Mccullough, 1 year ago
Cannot add the same component twice: javax_faces_location_HEAD
via Stack Overflow by gu3rr3ro
, 1 year ago
Cannot add the same component twice: vp6szfq2_icefaces_config
via Stack Overflow by Nikki
, 8 months ago
via Stack Overflow by edmond
, 2 years ago
Cannot add the same component twice: nav:panel-nav:nav_panel-nav_uinavmitem1
via icesoft.org by Unknown author, 1 year ago
javax.faces.FacesException: Cannot add the same component twice: javax_faces_location_HEAD
at com.sun.faces.context.StateContext$DynamicAddRemoveListener.handleAddRemoveWithAutoPrune(StateContext.java:751)
at com.sun.faces.context.StateContext$DynamicAddRemoveListener.handleAdd(StateContext.java:667)
at com.sun.faces.context.StateContext$AddRemoveListener.processEvent(StateContext.java:352)
at com.sun.faces.application.ApplicationImpl.processListenersAccountingForAdds(ApplicationImpl.java:2215)
at com.sun.faces.application.ApplicationImpl.invokeViewListenersFor(ApplicationImpl.java:2033)
at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:292)
at javax.faces.component.UIComponentBase.publishAfterViewEvents(UIComponentBase.java:2203)
at javax.faces.component.UIComponentBase.doPostAddProcessing(UIComponentBase.java:1885)
at javax.faces.component.UIComponentBase.setParent(UIComponentBase.java:405)
at javax.faces.component.UIComponentBase$FacetsMap.put(UIComponentBase.java:2943)
at javax.faces.component.UIComponentBase$FacetsMap.put(UIComponentBase.java:2903)
at javax.faces.component.UIViewRoot.getComponentResources(UIViewRoot.java:1749)
at org.icefaces.impl.event.RestoreResourceDependencies.addResourceDependency(RestoreResourceDependencies.java:110)
at org.icefaces.impl.event.RestoreResourceDependencies.collectResourceDependencies(RestoreResourceDependencies.java:76)
at org.icefaces.impl.event.RestoreResourceDependencies.access$000(RestoreResourceDependencies.java:37)
at org.icefaces.impl.event.RestoreResourceDependencies$1.visit(RestoreResourceDependencies.java:49)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1611)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1622)
at javax.faces.component.UIForm.visitTree(UIForm.java:371)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1622)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1622)
at org.icefaces.impl.event.RestoreResourceDependencies.processEvent(RestoreResourceDependencies.java:47)
at com.sun.faces.application.ApplicationImpl.processListeners(ApplicationImpl.java:2166)
at com.sun.faces.application.ApplicationImpl.invokeListenersFor(ApplicationImpl.java:2139)
at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:303)
at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:814)
at javax.faces.component.UIViewRoot.encodeBegin(UIViewRoot.java:954)
at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:426)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:604)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
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.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 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

Know the solutions? Share your knowledge to help other developers to debug faster.