Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: EE-4.0.0.GA, 4.1
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      ICEfaces 4 w/ Mojarra 2.2.8 runtime.
    • Assignee Priority:
      P2
    • Affects:
      Compatibility/Configuration

      Description

      When running with Mojarra 2.2.8 and showcase selecting a new demo will fail with an "javax.faces.FacesException: Cannot add the same component twice: javascript_runner" exception.
      1. Screen Shot 2014-10-20 at 4.21.09 PM.png
        11 kB

        Activity

        Ken Fyten created issue -
        Hide
        Ken Fyten added a comment -

        Full stack trace:

        Oct 20, 2014 4:20:33 PM com.sun.faces.application.view.FaceletViewHandlingStrategy handleRenderException
        SEVERE: Error Rendering View[/showcase-mobile.xhtml]
        javax.faces.FacesException: Cannot add the same component twice: javascript_runner
        	at com.sun.faces.context.StateContext$DynamicAddRemoveListener.handleAddRemoveWithAutoPrune(StateContext.java:751)
        	at com.sun.faces.context.StateContext$DynamicAddRemoveListener.handleAdd(StateContext.java:678)
        	at com.sun.faces.context.StateContext$AddRemoveListener.processEvent(StateContext.java:352)
        	at com.sun.faces.context.StateContext$DynamicAddRemoveListener.processEvent(StateContext.java:568)
        	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:2239)
        	at com.sun.faces.application.ApplicationImpl.invokeViewListenersFor(ApplicationImpl.java:2057)
        	at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:292)
        	at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:247)
        	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$ChildrenList.add(UIComponentBase.java:2687)
        	at javax.faces.component.UIComponentBase$ChildrenList.add(UIComponentBase.java:2659)
        	at javax.faces.component.UIViewRoot.addComponentResource(UIViewRoot.java:533)
        	at org.icefaces.impl.event.JavaScriptRunnerSetup.processEvent(JavaScriptRunnerSetup.java:66)
        	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:2190)
        	at com.sun.faces.application.ApplicationImpl.invokeListenersFor(ApplicationImpl.java:2163)
        	at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:303)
        	at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:247)
        	at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:856)
        	at javax.faces.component.UIViewRoot.encodeBegin(UIViewRoot.java:985)
        	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1854)
        	at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:430)
        	at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:133)
        	at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337)
        	at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)
        	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
        	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:304)
        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
        	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
        	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
        	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
        	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
        	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
        	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:279)
        	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
        	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
        	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
        	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
        	at java.lang.Thread.run(Thread.java:695)
        Show
        Ken Fyten added a comment - Full stack trace: Oct 20, 2014 4:20:33 PM com.sun.faces.application.view.FaceletViewHandlingStrategy handleRenderException SEVERE: Error Rendering View[/showcase-mobile.xhtml] javax.faces.FacesException: Cannot add the same component twice: javascript_runner at com.sun.faces.context.StateContext$DynamicAddRemoveListener.handleAddRemoveWithAutoPrune(StateContext.java:751) at com.sun.faces.context.StateContext$DynamicAddRemoveListener.handleAdd(StateContext.java:678) at com.sun.faces.context.StateContext$AddRemoveListener.processEvent(StateContext.java:352) at com.sun.faces.context.StateContext$DynamicAddRemoveListener.processEvent(StateContext.java:568) 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:2239) at com.sun.faces.application.ApplicationImpl.invokeViewListenersFor(ApplicationImpl.java:2057) at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:292) at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:247) 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$ChildrenList.add(UIComponentBase.java:2687) at javax.faces.component.UIComponentBase$ChildrenList.add(UIComponentBase.java:2659) at javax.faces.component.UIViewRoot.addComponentResource(UIViewRoot.java:533) at org.icefaces.impl.event.JavaScriptRunnerSetup.processEvent(JavaScriptRunnerSetup.java:66) 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:2190) at com.sun.faces.application.ApplicationImpl.invokeListenersFor(ApplicationImpl.java:2163) at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:303) at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:247) at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:856) at javax.faces.component.UIViewRoot.encodeBegin(UIViewRoot.java:985) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1854) at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:430) at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:133) at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) 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:304) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:279) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang. Thread .run( Thread .java:695)
        Hide
        Ken Fyten added a comment -

        Attached Mojarra 2.2.8 lib.

        Show
        Ken Fyten added a comment - Attached Mojarra 2.2.8 lib.
        Ken Fyten made changes -
        Field Original Value New Value
        Attachment javax.faces-2.2.8.jar [ 17526 ]
        Ken Fyten made changes -
        Fix Version/s EE-4.0.0.GA [ 11171 ]
        Ken Fyten made changes -
        Assignee Mircea Toma [ mircea.toma ]
        Assignee Priority P2 [ 10011 ]
        Ken Fyten made changes -
        Affects Compatibility/Configuration [ 10002 ]
        Ken Fyten made changes -
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #43073 Mon Oct 20 17:02:02 MDT 2014 ken.fyten Reverted Mojarra JSF to 2.2.7, see ICE-10335 for details.
        Files Changed
        Commit graph ADD /icefaces4/trunk/icefaces/lib/mojarra/2.2/javax.faces-2.2.7.jar
        Commit graph DEL /icefaces4/trunk/icefaces/lib/mojarra/2.2/javax.faces-2.2.8.jar
        Commit graph MODIFY /icefaces4/trunk/icefaces/lib/versions-licenses.html
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #43373 Thu Nov 13 07:11:11 MST 2014 mircea.toma ICE-10335 Remove temporarily the component that has new children added dynamically to avoid having Mojarra re-playing their addition during the restore phase.
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/core/src/main/java/org/icefaces/impl/event/BridgeFormsSetup.java
        Commit graph MODIFY /icefaces4/trunk/icefaces/core/src/main/java/org/icefaces/impl/event/JavaScriptRunnerSetup.java
        Commit graph MODIFY /icefaces4/trunk/icefaces/core/src/main/java/org/icefaces/util/CachingHeadersSetup.java
        Commit graph MODIFY /icefaces4/trunk/icefaces/core/src/main/java/org/icefaces/impl/util/CoreUtils.java
        Commit graph MODIFY /icefaces4/trunk/icefaces/core/src/main/java/org/icefaces/impl/event/RestoreResourceDependencies.java
        Commit graph MODIFY /icefaces4/trunk/icefaces/core/src/main/java/org/icefaces/impl/event/ResourceOrdering.java
        Commit graph MODIFY /icefaces4/trunk/icefaces/core/src/main/java/org/icefaces/impl/event/BridgeSetup.java
        Commit graph MODIFY /icefaces4/trunk/icefaces/core/src/main/java/org/icefaces/impl/event/WindowAndViewIDSetup.java
        Commit graph MODIFY /icefaces4/trunk/icefaces/core/src/main/java/org/icefaces/impl/event/FormSubmit.java
        Commit graph MODIFY /icefaces4/trunk/icefaces/core/src/main/java/org/icefaces/impl/event/MandatoryResourcesSetup.java
        Hide
        Mircea Toma added a comment - - edited

        Remove temporarily (by taking it out of the view) the component that has new children added dynamically to avoid having Mojarra re-playing their addition during the restore phase.

        Show
        Mircea Toma added a comment - - edited Remove temporarily (by taking it out of the view) the component that has new children added dynamically to avoid having Mojarra re-playing their addition during the restore phase.
        Mircea Toma made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Hide
        Liana Munroe added a comment -

        Not able to reproduce using mojarra 2.2.8 and ICEfaces 4 trunk r43530.

        Show
        Liana Munroe added a comment - Not able to reproduce using mojarra 2.2.8 and ICEfaces 4 trunk r43530.
        Hide
        Liana Munroe added a comment -

        Reopening due to issues with ace:fileEntry > All demos (all browsers). ICEfaces 4 trunk r43530.
        Unable to upload files. Page and server errors seen:
        javax.faces.FacesException: Cannot add the same component twice: example-form:ice_fileEntry_encodedURL
        at com.sun.faces.context.StateContext$DynamicAddRemoveListener.handleAddRemoveWithAutoPrune(StateContext.java:751)
        at com.sun.faces.context.StateContext$DynamicAddRemoveListener.handleAdd(StateContext.java:678)
        at com.sun.faces.context.StateContext$AddRemoveListener.processEvent(StateContext.java:352)
        at com.sun.faces.context.StateContext$DynamicAddRemoveListener.processEvent(StateContext.java:568)
        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:2239)
        at com.sun.faces.application.ApplicationImpl.invokeViewListenersFor(ApplicationImpl.java:2057)
        at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:292)
        at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:247)
        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$ChildrenList.add(UIComponentBase.java:2676)
        at javax.faces.component.UIComponentBase$ChildrenList.add(UIComponentBase.java:2659)
        at org.icefaces.ace.component.fileentry.FileEntryFormSubmit.processEvent(FileEntryFormSubmit.java:142)
        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:2190)
        at com.sun.faces.application.ApplicationImpl.invokeListenersFor(ApplicationImpl.java:2163)
        at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:303)
        at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:247)
        at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:856)
        at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:302)
        at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:114)
        at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:889)
        at org.icefaces.ace.renderkit.CoreRenderer.renderChild(CoreRenderer.java:83)
        at org.icefaces.ace.renderkit.CoreRenderer.renderChildren(CoreRenderer.java:71)
        at org.icefaces.ace.component.panel.PanelRenderer.encodeContent(PanelRenderer.java:238)
        at org.icefaces.ace.component.panel.PanelRenderer.encodeMarkup(PanelRenderer.java:135)
        at org.icefaces.ace.component.panel.PanelRenderer.encodeEnd(PanelRenderer.java:73)
        at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:919)
        at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:312)
        at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:114)
        at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:889)
        at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:304)
        at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:114)
        at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:889)
        at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:304)
        at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:114)
        at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:889)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1856)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)
        at org.icefaces.impl.context.DOMPartialViewContext.processPartial(DOMPartialViewContext.java:164)
        at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:1004)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1856)
        at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:430)
        at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:133)
        at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337)
        at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)
        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
        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:305)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
        at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1852)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
        Nov 17, 2014 11:09:42 AM com.sun.faces.application.view.FaceletViewHandlingStrategy handleRenderException
        SEVERE: Error Rendering View[/showcase.xhtml]
        javax.faces.FacesException: Cannot add the same component twice: example-form:ice_fileEntry_encodedURL
        at com.sun.faces.context.StateContext$DynamicAddRemoveListener.handleAddRemoveWithAutoPrune(StateContext.java:751)
        at com.sun.faces.context.StateContext$DynamicAddRemoveListener.handleAdd(StateContext.java:678)
        at com.sun.faces.context.StateContext$AddRemoveListener.processEvent(StateContext.java:352)
        at com.sun.faces.context.StateContext$DynamicAddRemoveListener.processEvent(StateContext.java:568)
        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:2239)
        at com.sun.faces.application.ApplicationImpl.invokeViewListenersFor(ApplicationImpl.java:2057)
        at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:292)
        at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:247)
        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$ChildrenList.add(UIComponentBase.java:2676)
        at javax.faces.component.UIComponentBase$ChildrenList.add(UIComponentBase.java:2659)
        at org.icefaces.ace.component.fileentry.FileEntryFormSubmit.processEvent(FileEntryFormSubmit.java:142)
        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:2190)
        at com.sun.faces.application.ApplicationImpl.invokeListenersFor(ApplicationImpl.java:2163)
        at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:303)
        at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:247)
        at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:856)
        at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:302)
        at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:114)
        at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:889)
        at org.icefaces.ace.renderkit.CoreRenderer.renderChild(CoreRenderer.java:83)
        at org.icefaces.ace.renderkit.CoreRenderer.renderChildren(CoreRenderer.java:71)
        at org.icefaces.ace.component.panel.PanelRenderer.encodeContent(PanelRenderer.java:238)
        at org.icefaces.ace.component.panel.PanelRenderer.encodeMarkup(PanelRenderer.java:135)
        at org.icefaces.ace.component.panel.PanelRenderer.encodeEnd(PanelRenderer.java:73)
        at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:919)
        at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:312)
        at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:114)
        at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:889)
        at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:304)
        at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:114)
        at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:889)
        at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:304)
        at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:114)
        at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:889)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1856)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)
        at org.icefaces.impl.context.DOMPartialViewContext.processPartial(DOMPartialViewContext.java:164)
        at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:1004)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1856)
        at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:430)
        at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:133)
        at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337)
        at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)
        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
        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:305)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
        at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1852)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)

        Show
        Liana Munroe added a comment - Reopening due to issues with ace:fileEntry > All demos (all browsers). ICEfaces 4 trunk r43530. Unable to upload files. Page and server errors seen: javax.faces.FacesException: Cannot add the same component twice: example-form:ice_fileEntry_encodedURL at com.sun.faces.context.StateContext$DynamicAddRemoveListener.handleAddRemoveWithAutoPrune(StateContext.java:751) at com.sun.faces.context.StateContext$DynamicAddRemoveListener.handleAdd(StateContext.java:678) at com.sun.faces.context.StateContext$AddRemoveListener.processEvent(StateContext.java:352) at com.sun.faces.context.StateContext$DynamicAddRemoveListener.processEvent(StateContext.java:568) 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:2239) at com.sun.faces.application.ApplicationImpl.invokeViewListenersFor(ApplicationImpl.java:2057) at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:292) at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:247) 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$ChildrenList.add(UIComponentBase.java:2676) at javax.faces.component.UIComponentBase$ChildrenList.add(UIComponentBase.java:2659) at org.icefaces.ace.component.fileentry.FileEntryFormSubmit.processEvent(FileEntryFormSubmit.java:142) 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:2190) at com.sun.faces.application.ApplicationImpl.invokeListenersFor(ApplicationImpl.java:2163) at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:303) at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:247) at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:856) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:302) at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:114) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:889) at org.icefaces.ace.renderkit.CoreRenderer.renderChild(CoreRenderer.java:83) at org.icefaces.ace.renderkit.CoreRenderer.renderChildren(CoreRenderer.java:71) at org.icefaces.ace.component.panel.PanelRenderer.encodeContent(PanelRenderer.java:238) at org.icefaces.ace.component.panel.PanelRenderer.encodeMarkup(PanelRenderer.java:135) at org.icefaces.ace.component.panel.PanelRenderer.encodeEnd(PanelRenderer.java:73) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:919) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:312) at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:114) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:889) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:304) at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:114) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:889) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:304) at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:114) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:889) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1856) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859) at org.icefaces.impl.context.DOMPartialViewContext.processPartial(DOMPartialViewContext.java:164) at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:1004) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1856) at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:430) at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:133) at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) 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:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1852) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Nov 17, 2014 11:09:42 AM com.sun.faces.application.view.FaceletViewHandlingStrategy handleRenderException SEVERE: Error Rendering View [/showcase.xhtml] javax.faces.FacesException: Cannot add the same component twice: example-form:ice_fileEntry_encodedURL at com.sun.faces.context.StateContext$DynamicAddRemoveListener.handleAddRemoveWithAutoPrune(StateContext.java:751) at com.sun.faces.context.StateContext$DynamicAddRemoveListener.handleAdd(StateContext.java:678) at com.sun.faces.context.StateContext$AddRemoveListener.processEvent(StateContext.java:352) at com.sun.faces.context.StateContext$DynamicAddRemoveListener.processEvent(StateContext.java:568) 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:2239) at com.sun.faces.application.ApplicationImpl.invokeViewListenersFor(ApplicationImpl.java:2057) at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:292) at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:247) 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$ChildrenList.add(UIComponentBase.java:2676) at javax.faces.component.UIComponentBase$ChildrenList.add(UIComponentBase.java:2659) at org.icefaces.ace.component.fileentry.FileEntryFormSubmit.processEvent(FileEntryFormSubmit.java:142) 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:2190) at com.sun.faces.application.ApplicationImpl.invokeListenersFor(ApplicationImpl.java:2163) at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:303) at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:247) at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:856) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:302) at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:114) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:889) at org.icefaces.ace.renderkit.CoreRenderer.renderChild(CoreRenderer.java:83) at org.icefaces.ace.renderkit.CoreRenderer.renderChildren(CoreRenderer.java:71) at org.icefaces.ace.component.panel.PanelRenderer.encodeContent(PanelRenderer.java:238) at org.icefaces.ace.component.panel.PanelRenderer.encodeMarkup(PanelRenderer.java:135) at org.icefaces.ace.component.panel.PanelRenderer.encodeEnd(PanelRenderer.java:73) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:919) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:312) at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:114) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:889) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:304) at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:114) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:889) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:304) at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:114) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:889) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1856) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859) at org.icefaces.impl.context.DOMPartialViewContext.processPartial(DOMPartialViewContext.java:164) at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:1004) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1856) at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:430) at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:133) at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) 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:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1852) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745)
        Liana Munroe made changes -
        Resolution Fixed [ 1 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #43542 Mon Nov 17 16:51:13 MST 2014 mircea.toma ICE-10335 Remove temporarily the form from the view when adding dynamically new components to it.
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/fileentry/FileEntryFormSubmit.java
        Hide
        Mircea Toma added a comment -

        Remove temporarily the form (FileEntry uses for upload) from the view when adding dynamically new components to it.

        Show
        Mircea Toma added a comment - Remove temporarily the form ( FileEntry uses for upload) from the view when adding dynamically new components to it.
        Mircea Toma made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Liana Munroe added a comment -

        Verified fileEntry issue resolved ICEfaces 4 trunk r43546. Tomcat 7, IE 11. FF 33, Chrome 38.

        Show
        Liana Munroe added a comment - Verified fileEntry issue resolved ICEfaces 4 trunk r43546. Tomcat 7, IE 11. FF 33, Chrome 38.
        Ken Fyten made changes -
        Fix Version/s 4.1 [ 11375 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Ken Fyten
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: