Hi

There is a problem with the id generation, already fixed on:

https://issues.apache.org/jira/browse/MYFACES-3944

Probably this case is related too.

regards,

Leonardo Uribe

2014-11-30 10:10 GMT-05:00 Donatas Čiukšys <donatas.ciuk...@mitsoft.lt>:

> I‘m on TomEE 1.7.1, MyFaces 2.2.6, PrimeFaces 5.1.5. Log’s are currently
> exploding with the error messages like one at the bottom.
>
> The page /portal/legalAct is using templating; many <ui:decorate> that are
> using many <ui:decorate> again; often ui:decorate template is like this:
>
>
>
> <ui:decorate
> template="/WEB-INF/templates/legalActSideALinkedDocuments.xhtml">
>
>     <ui:param name="linkTypeCodeParam"
> value="#{LinkTypeHolder.LINK_KEIČIANTIS_PAKEITIMAS_TYPE_CODE}"/>
>
>     <ui:param name="linkedDocumentsParam"
> value="#{legalActController.keičiantisPakeitimasDocuments}"/>
>
> </ui:decorate>
>
>
>
> legalActSideALinkedDocuments.xhtml:
>
>
>
> <ui:composition …>
>
>     <p:tab disabled="#{legalActController.linkedDocumentCount lt 0}"
>
>            rendered="#{legalActController.linkedDocumentCount lt 0 or
> !empty linkedDocumentsParam}">
>
>     ...
>
>     </p:tab>
>
> </ui:composition>
>
>
>
> That is, included (decorated actually) part might not be rendered at all.
>
>
>
> Only ui:composition and ui:decorate are used, no c:if (c namespace is not
> used at all), no ui:include, no ui:fragment. I think this is some corner
> case (bug actually).
>
> What should I look for (print for debugging) to help find the reason?
>
>
>
> ERROR 2014-11-30 16:52:12,343 ##### REQUEST ANALYSIS #####: method: POST,
> requestURL:
> https://www.e-tar.lt/portal/legalAct.html?documentId=cdba6b00e56911e39ea8c7e1dfdc4b5c,
> JSF-PHASE: RESTORE_VIEW, AJAX: true, sessionId:
> C77CE1B76CD9A3435E444B6E243C1096.asHost1
>
> java.lang.IllegalStateException: Error restoring component:
> mainForm:accordionRight
>
>                            at
> org.apache.myfaces.view.facelets.DefaultFaceletsStateManagementStrategy.restoreStateFromMap(DefaultFaceletsStateManagementStrategy.java:832)
> ~[myfaces-impl-2.2.6.jar:2.2.6]
>
>                            at
> org.apache.myfaces.view.facelets.DefaultFaceletsStateManagementStrategy.restoreStateFromMap(DefaultFaceletsStateManagementStrategy.java:847)
> ~[myfaces-impl-2.2.6.jar:2.2.6]
>
>                            at
> org.apache.myfaces.view.facelets.DefaultFaceletsStateManagementStrategy.restoreStateFromMap(DefaultFaceletsStateManagementStrategy.java:847)
> ~[myfaces-impl-2.2.6.jar:2.2.6]
>
>                            at
> org.apache.myfaces.view.facelets.DefaultFaceletsStateManagementStrategy.restoreStateFromMap(DefaultFaceletsStateManagementStrategy.java:847)
> ~[myfaces-impl-2.2.6.jar:2.2.6]
>
>                            at
> org.apache.myfaces.view.facelets.DefaultFaceletsStateManagementStrategy.restoreStateFromMap(DefaultFaceletsStateManagementStrategy.java:847)
> ~[myfaces-impl-2.2.6.jar:2.2.6]
>
>                            at
> org.apache.myfaces.view.facelets.DefaultFaceletsStateManagementStrategy.restoreStateFromMap(DefaultFaceletsStateManagementStrategy.java:847)
> ~[myfaces-impl-2.2.6.jar:2.2.6]
>
>                            at
> org.apache.myfaces.view.facelets.DefaultFaceletsStateManagementStrategy.restoreStateFromMap(DefaultFaceletsStateManagementStrategy.java:847)
> ~[myfaces-impl-2.2.6.jar:2.2.6]
>
>                            at
> org.apache.myfaces.view.facelets.DefaultFaceletsStateManagementStrategy.restoreView(DefaultFaceletsStateManagementStrategy.java:412)
> ~[myfaces-impl-2.2.6.jar:2.2.6]
>
>                            at
> org.apache.myfaces.application.StateManagerImpl.restoreView(StateManagerImpl.java:133)
> ~[myfaces-impl-2.2.6.jar:2.2.6]
>
>                            at
> org.apache.myfaces.shared.view.ViewDeclarationLanguageBase.restoreView(ViewDeclarationLanguageBase.java:104)
> ~[myfaces-impl-2.2.6.jar:2.2.6]
>
>                            at
> org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.restoreView(FaceletViewDeclarationLanguage.java:2140)
> ~[myfaces-impl-2.2.6.jar:2.2.6]
>
>                            at
> org.apache.myfaces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:336)
> ~[myfaces-impl-2.2.6.jar:2.2.6]
>
>                            at
> org.ocpsoft.rewrite.faces.RewriteViewHandler.restoreView(RewriteViewHandler.java:102)
> ~[rewrite-integration-faces-2.0.12.Final.jar:2.0.12.Final]
>
>                            at
> javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper..java:82)
> ~[myfaces-api-2.2.6.jar:2.2.6]
>
>                            at
> org.omnifaces.viewhandler.RestorableViewHandler.restoreView(RestorableViewHandler.java:66)
> ~[omnifaces-1.8.1.jar:1.8.1-20140603]
>
>                            at
> javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper..java:82)
> ~[myfaces-api-2.2.6.jar:2.2.6]
>
>                            at
> org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:170)
> ~[myfaces-impl-2.2.6.jar:2.2.6]
>
>                            at
> org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:196)
> [myfaces-impl-2.2.6.jar:2.2.6]
>
>                            at
> org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:143)
> [myfaces-impl-2.2.6.jar:2.2.6]
>
>                            at
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
> [myfaces-api-2.2.6.jar:2.2.6]
>
>                            at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
> [catalina.jar:7.0.55]
>
>                            at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> [catalina.jar:7.0.55]
>
>                            at
> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> [tomcat7-websocket.jar:7.0.55]
>
>                            at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
> [catalina.jar:7.0.55]
>
>                            at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> [catalina.jar:7.0.55]
>
>                            at
> org.ocpsoft.rewrite.servlet.RewriteFilter.doFilter(RewriteFilter.java:205)
> [rewrite-servlet-2.0.12.Final.jar:2.0.12.Final]
>
>                            at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
> [catalina.jar:7.0.55]
>
>                            at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> [catalina.jar:7.0.55]
>
>                            at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
> [catalina.jar:7.0.55]
>
>                            at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
> [catalina.jar:7.0.55]
>
>                            at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:411)
> [catalina.jar:7.0.55]
>
>                            at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
> [catalina.jar:7.0.55]
>
>                            at
> org.ocpsoft.rewrite.servlet.impl.HttpRewriteResultHandler.handleResult(HttpRewriteResultHandler.java:41)
> [rewrite-servlet-2.0.12.Final.jar:2.0.12.Final]
>
>                            at
> org.ocpsoft.rewrite.servlet.RewriteFilter.rewrite(RewriteFilter.java:268)
> [rewrite-servlet-2.0.12.Final.jar:2.0.12.Final]
>
>                            at
> org.ocpsoft.rewrite.servlet.RewriteFilter.doFilter(RewriteFilter.java:188)
> [rewrite-servlet-2.0.12.Final.jar:2.0.12.Final]
>
>                            at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
> [catalina.jar:7.0.55]
>
>                            at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> [catalina.jar:7.0.55]
>
>                            at
> lt.asseco.tar.setup.jsf.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:30)
> [CharacterEncodingFilter.class:na]
>
>                            at
> org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:77)
> [omnifaces-1.8.1.jar:1.8.1-20140603]
>
>                            at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
> [catalina.jar:7.0.55]
>
>                            at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> [catalina.jar:7.0.55]
>
>                            at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve..java:220)
> [catalina.jar:7.0.55]
>
>                            at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve..java:122)
> [catalina.jar:7.0.55]
>
>                            at
> org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:44)
> [tomee-catalina-1.7.1.jar:1.7.1]
>
>                            at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
> [catalina.jar:7.0.55]
>
>                            at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
> [catalina.jar:7.0.55]
>
>                            at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
> [catalina.jar:7.0.55]
>
>                            at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
> [catalina.jar:7.0.55]
>
>                            at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
> [catalina.jar:7.0.55]
>
>                            at
> org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:188)
> [tomcat-coyote.jar:7.0.55]
>
>                            at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
> [tomcat-coyote.jar:7.0.55]
>
>                            at
> org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2440)
> [tomcat-coyote.jar:7.0.55]
>
>                            at
> org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2429)
> [tomcat-coyote.jar:7.0.55]
>
>                            at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> [na:1.8.0_25]
>
>                            at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> [na:1.8.0_25]
>
>                            at
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread..java:61)
> [tomcat-coyote.jar:7.0.55]
>
>                            at java.lang.Thread.run(Thread.java:745)
> [na:1.8.0_25]
>
> Caused by: java.lang.ClassCastException: [Ljava.lang.Object; cannot be
> cast to javax.faces.component._DeltaList
>
>                            at
> javax.faces.component.UIComponentBase.restoreState(UIComponentBase.java:2072)
> ~[myfaces-api-2.2.6.jar:2.2.6]
>
>                            at
> org.apache.myfaces.view.facelets.DefaultFaceletsStateManagementStrategy.restoreStateFromMap(DefaultFaceletsStateManagementStrategy.java:828)
> ~[myfaces-impl-2.2.6.jar:2.2.6]
>
>                            ... 56 common frames omitted
>

Reply via email to