Details
-
Type: Bug
-
Status: Closed
-
Priority: 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
-
Hide
- javax.faces-2.2.8.jar
- 2.98 MB
- Ken Fyten
-
- META-INF/MANIFEST.MF 25 kB
- com/sun/faces/web-facesconfig_1_1.xsd 82 kB
- com/sun/faces/javaee_6.xsd 79 kB
- com/sun/.../javaee_web_services_1_2.xsd 25 kB
- com/sun/faces/LogStrings_fr.properties 23 kB
- com/sun/faces/web-facesconfig_2_1.xsd 110 kB
- com/.../ClientSideStateHelper$StringBuilderWriter.class 3 kB
- com/.../SelectItemsIterator$GenericObjectSelectItemIterator.class 2 kB
- com/.../SelectItemsIterator$GenericObjectSelectItemIterator$GenericObjectSelectItem.class 4 kB
- com/.../SelectItemsIterator$ArrayIterator.class 2 kB
- com/sun/.../RenderKitFactoryImpl.class 2 kB
- com/.../SelectItemsIterator$SingleElementIterator.class 2 kB
- com/sun/.../renderkit/StateHelper.class 6 kB
- com/sun/.../renderkit/RenderKitImpl$1.class 1 kB
- com/sun/.../SelectItemsIterator.class 5 kB
- com/sun/.../renderkit/RenderKitUtils$1.class 1.0 kB
- com/sun/.../ClientSideStateHelper.class 12 kB
- com/sun/.../AttributeManager$Key.class 4 kB
- com/sun/.../renderkit/RenderKitImpl.class 11 kB
- com/sun/.../html_basic/RadioRenderer.class 6 kB
- com/sun/.../html_basic/SecretRenderer.class 4 kB
- com/sun/.../html_basic/MessageRenderer.class 6 kB
- com/sun/.../OutcomeTargetLinkRenderer.class 6 kB
- com/sun/.../html_basic/ScriptRenderer.class 5 kB
- com/.../HtmlBasicRenderer$OptionComponentInfo.class 2 kB
- com/sun/.../html_basic/DoctypeRenderer.class 2 kB
- com/sun/.../html_basic/GridRenderer.class 6 kB
- com/sun/.../OutputMessageRenderer.class 5 kB
- com/sun/.../BaseTableRenderer.class 5 kB
- com/sun/.../AjaxBehaviorRenderer.class 9 kB
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
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.
Not able to reproduce using mojarra 2.2.8 and ICEfaces 4 trunk r43530.
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)
Remove temporarily the form (FileEntry uses for upload) from the view when adding dynamically new components to it.
Verified fileEntry issue resolved ICEfaces 4 trunk r43546. Tomcat 7, IE 11. FF 33, Chrome 38.
Full stack trace: