You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Gonçalo Manuel Cruchinho (JIRA)" <de...@myfaces.apache.org> on 2014/03/11 18:17:47 UTC
[jira] [Comment Edited] (MYFACES-3867)
SectionUniqueIdCounter.startUniqueIdSection(String base) does not generate
prefix correctly
[ https://issues.apache.org/jira/browse/MYFACES-3867?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13930608#comment-13930608 ]
Gonçalo Manuel Cruchinho edited comment on MYFACES-3867 at 3/11/14 5:17 PM:
----------------------------------------------------------------------------
Hi Leonardo,
I understand this is very difficult to reproduce without a test case, we just have been unable to produce one so far. I confirm we're using the latest version (as of today), I hope you consider the information that follows useful.
I wish to correct the information given before as the error occurs during Render Response Phase and not during Restore View (please check below). Below there's some detail on what occurs during the navigation that generates the error.
Restore View Phase - Page1.xhtml
Nothing to point out
Render Response Phase - Page2.xhtml
The id "1l_3_8_q_5_0_1_o_8_8" receives an instance of IterationState
The stack trace follows:
Daemon Thread [ajp-apr-8009-exec-8] (Suspended (breakpoint at line 57 in FaceletState))
FaceletState.putState(String, Object) line: 57
ForEachHandler.applyFirstTime(FaceletContext, FaceletCompositionContext, PageContext, UIComponent, String, Object, ValueExpression) line: 407
ForEachHandler.apply(FaceletContext, UIComponent) line: 229
CompositeFaceletHandler.apply(FaceletContext, UIComponent) line: 46
HtmlComponentHandler(DelegatingMetaTagHandler).applyNextHandler(FaceletContext, UIComponent) line: 55
BehaviorsAddingComponentHandlerWrapper.applyNextHandler(FaceletContext, UIComponent) line: 53
ComponentTagHandlerDelegate.apply(FaceletContext, UIComponent) line: 373
HtmlComponentHandler(DelegatingMetaTagHandler).apply(FaceletContext, UIComponent) line: 50
CompositeFaceletHandler.apply(FaceletContext, UIComponent) line: 46
ImplementationHandler.apply(FaceletContext, UIComponent) line: 67
CompositeFaceletHandler.apply(FaceletContext, UIComponent) line: 46
CompositeComponentDefinitionTagHandler.apply(FaceletContext, UIComponent) line: 257
NamespaceHandler.apply(FaceletContext, UIComponent) line: 59
EncodingHandler.apply(FaceletContext, UIComponent) line: 48
DefaultFacelet.applyCompositeComponent(AbstractFaceletContext, UIComponent, Resource) line: 602
DefaultFaceletContext.applyCompositeComponent(UIComponent, Resource) line: 778
CompositeComponentResourceTagHandler.applyCompositeComponentFacelet(FaceletContext, UIComponent) line: 443
CompositeComponentResourceTagHandler.applyNextHandler(FaceletContext, UIComponent) line: 216
BehaviorsAddingComponentHandlerWrapper.applyNextHandler(FaceletContext, UIComponent) line: 53
ComponentTagHandlerDelegate.apply(FaceletContext, UIComponent) line: 373
CompositeComponentResourceTagHandler(DelegatingMetaTagHandler).apply(FaceletContext, UIComponent) line: 50
CompositeFaceletHandler.apply(FaceletContext, UIComponent) line: 46
IfHandler.apply(FaceletContext, UIComponent) line: 126
CompositeFaceletHandler.apply(FaceletContext, UIComponent) line: 46
ImplementationHandler.apply(FaceletContext, UIComponent) line: 67
CompositeFaceletHandler.apply(FaceletContext, UIComponent) line: 46
CompositeComponentDefinitionTagHandler.apply(FaceletContext, UIComponent) line: 257
NamespaceHandler.apply(FaceletContext, UIComponent) line: 59
EncodingHandler.apply(FaceletContext, UIComponent) line: 48
DefaultFacelet.applyCompositeComponent(AbstractFaceletContext, UIComponent, Resource) line: 602
DefaultFaceletContext.applyCompositeComponent(UIComponent, Resource) line: 778
CompositeComponentResourceTagHandler.applyCompositeComponentFacelet(FaceletContext, UIComponent) line: 443
CompositeComponentResourceTagHandler.applyNextHandler(FaceletContext, UIComponent) line: 216
BehaviorsAddingComponentHandlerWrapper.applyNextHandler(FaceletContext, UIComponent) line: 53
ComponentTagHandlerDelegate.apply(FaceletContext, UIComponent) line: 373
CompositeComponentResourceTagHandler(DelegatingMetaTagHandler).apply(FaceletContext, UIComponent) line: 50
CompositeFaceletHandler.apply(FaceletContext, UIComponent) line: 46
CompositionHandler.apply(FaceletContext, UIComponent) line: 161
NamespaceHandler.apply(FaceletContext, UIComponent) line: 59
EncodingHandler.apply(FaceletContext, UIComponent) line: 48
DefaultFacelet.include(AbstractFaceletContext, UIComponent) line: 514
DefaultFacelet.include(AbstractFaceletContext, UIComponent, URL) line: 568
DefaultFacelet.include(AbstractFaceletContext, UIComponent, String) line: 546
DefaultFaceletContext.includeFacelet(UIComponent, String) line: 240
IncludeHandler.apply(FaceletContext, UIComponent) line: 226
CompositeFaceletHandler.apply(FaceletContext, UIComponent) line: 46
HtmlComponentHandler(DelegatingMetaTagHandler).applyNextHandler(FaceletContext, UIComponent) line: 55
BehaviorsAddingComponentHandlerWrapper.applyNextHandler(FaceletContext, UIComponent) line: 53
ComponentTagHandlerDelegate.apply(FaceletContext, UIComponent) line: 373
HtmlComponentHandler(DelegatingMetaTagHandler).apply(FaceletContext, UIComponent) line: 50
CompositeFaceletHandler.apply(FaceletContext, UIComponent) line: 46
ImplementationHandler.apply(FaceletContext, UIComponent) line: 67
CompositeFaceletHandler.apply(FaceletContext, UIComponent) line: 46
CompositeComponentDefinitionTagHandler.apply(FaceletContext, UIComponent) line: 257
NamespaceHandler.apply(FaceletContext, UIComponent) line: 59
EncodingHandler.apply(FaceletContext, UIComponent) line: 48
DefaultFacelet.applyCompositeComponent(AbstractFaceletContext, UIComponent, Resource) line: 602
DefaultFaceletContext.applyCompositeComponent(UIComponent, Resource) line: 778
CompositeComponentResourceTagHandler.applyCompositeComponentFacelet(FaceletContext, UIComponent) line: 443
CompositeComponentResourceTagHandler.applyNextHandler(FaceletContext, UIComponent) line: 216
BehaviorsAddingComponentHandlerWrapper.applyNextHandler(FaceletContext, UIComponent) line: 53
ComponentTagHandlerDelegate.apply(FaceletContext, UIComponent) line: 373
CompositeComponentResourceTagHandler(DelegatingMetaTagHandler).apply(FaceletContext, UIComponent) line: 50
CompositeFaceletHandler.apply(FaceletContext, UIComponent) line: 46
CompositionHandler.apply(FaceletContext, UIComponent) line: 161
NamespaceHandler.apply(FaceletContext, UIComponent) line: 59
EncodingHandler.apply(FaceletContext, UIComponent) line: 48
DefaultFacelet.include(AbstractFaceletContext, UIComponent) line: 514
DefaultFacelet.include(AbstractFaceletContext, UIComponent, URL) line: 568
DefaultFacelet.include(AbstractFaceletContext, UIComponent, String) line: 546
DefaultFaceletContext.includeFacelet(UIComponent, String) line: 240
IncludeHandler.apply(FaceletContext, UIComponent) line: 226
ForEachHandler.applyFirstTime(FaceletContext, FaceletCompositionContext, PageContext, UIComponent, String, Object, ValueExpression) line: 382
ForEachHandler.apply(FaceletContext, UIComponent) line: 229
CompositeFaceletHandler.apply(FaceletContext, UIComponent) line: 46
ImplementationHandler.apply(FaceletContext, UIComponent) line: 67
CompositeFaceletHandler.apply(FaceletContext, UIComponent) line: 46
CompositeComponentDefinitionTagHandler.apply(FaceletContext, UIComponent) line: 257
NamespaceHandler.apply(FaceletContext, UIComponent) line: 59
EncodingHandler.apply(FaceletContext, UIComponent) line: 48
DefaultFacelet.applyCompositeComponent(AbstractFaceletContext, UIComponent, Resource) line: 602
DefaultFaceletContext.applyCompositeComponent(UIComponent, Resource) line: 778
CompositeComponentResourceTagHandler.applyCompositeComponentFacelet(FaceletContext, UIComponent) line: 443
CompositeComponentResourceTagHandler.applyNextHandler(FaceletContext, UIComponent) line: 216
BehaviorsAddingComponentHandlerWrapper.applyNextHandler(FaceletContext, UIComponent) line: 53
ComponentTagHandlerDelegate.apply(FaceletContext, UIComponent) line: 373
CompositeComponentResourceTagHandler(DelegatingMetaTagHandler).apply(FaceletContext, UIComponent) line: 50
UserTagHandler.apply(FaceletContext, UIComponent, String) line: 210
TemplateContextImpl$TemplateManagerImpl.apply(FaceletContext, UIComponent, String) line: 193
TemplateContextImpl.includeDefinition(FaceletContext, Facelet, UIComponent, String) line: 136
DefaultFaceletContext.includeDefinition(UIComponent, String) line: 459
InsertHandler.apply(FaceletContext, UIComponent) line: 94
CompositeFaceletHandler.apply(FaceletContext, UIComponent) line: 46
ComponentRefHandler(DelegatingMetaTagHandler).applyNextHandler(FaceletContext, UIComponent) line: 55
BehaviorsAddingComponentHandlerWrapper.applyNextHandler(FaceletContext, UIComponent) line: 53
ComponentTagHandlerDelegate.apply(FaceletContext, UIComponent) line: 373
ComponentRefHandler(DelegatingMetaTagHandler).apply(FaceletContext, UIComponent) line: 50
NamespaceHandler.apply(FaceletContext, UIComponent) line: 59
EncodingHandler.apply(FaceletContext, UIComponent) line: 48
DefaultFacelet.include(AbstractFaceletContext, UIComponent) line: 514
DefaultFacelet.include(AbstractFaceletContext, UIComponent, URL) line: 568
DefaultFaceletContext.includeFacelet(UIComponent, URL) line: 389
UserTagHandler.apply(FaceletContext, UIComponent) line: 159
DefineHandler.applyDefinition(FaceletContext, UIComponent) line: 86
CompositionHandler.apply(FaceletContext, UIComponent, String) line: 178
TemplateContextImpl$TemplateManagerImpl.apply(FaceletContext, UIComponent, String) line: 193
TemplateContextImpl.includeDefinition(FaceletContext, Facelet, UIComponent, String) line: 136
DefaultFaceletContext.includeDefinition(UIComponent, String) line: 459
InsertHandler.apply(FaceletContext, UIComponent) line: 94
CompositeFaceletHandler.apply(FaceletContext, UIComponent) line: 46
HtmlComponentHandler(DelegatingMetaTagHandler).applyNextHandler(FaceletContext, UIComponent) line: 55
BehaviorsAddingComponentHandlerWrapper.applyNextHandler(FaceletContext, UIComponent) line: 53
ComponentTagHandlerDelegate.apply(FaceletContext, UIComponent) line: 373
HtmlComponentHandler(DelegatingMetaTagHandler).apply(FaceletContext, UIComponent) line: 50
HtmlComponentHandler(DelegatingMetaTagHandler).applyNextHandler(FaceletContext, UIComponent) line: 55
BehaviorsAddingComponentHandlerWrapper.applyNextHandler(FaceletContext, UIComponent) line: 53
ComponentTagHandlerDelegate.apply(FaceletContext, UIComponent) line: 373
HtmlComponentHandler(DelegatingMetaTagHandler).apply(FaceletContext, UIComponent) line: 50
CompositeFaceletHandler.apply(FaceletContext, UIComponent) line: 46
ViewHandler.apply(FaceletContext, UIComponent) line: 195
NamespaceHandler.apply(FaceletContext, UIComponent) line: 59
CompositeFaceletHandler.apply(FaceletContext, UIComponent) line: 46
EncodingHandler.apply(FaceletContext, UIComponent) line: 48
DefaultFacelet.include(AbstractFaceletContext, UIComponent) line: 514
DefaultFacelet.include(AbstractFaceletContext, UIComponent, URL) line: 568
DefaultFacelet.include(AbstractFaceletContext, UIComponent, String) line: 546
DefaultFaceletContext.includeFacelet(UIComponent, String) line: 240
CompositionHandler.apply(FaceletContext, UIComponent) line: 151
NamespaceHandler.apply(FaceletContext, UIComponent) line: 59
EncodingHandler.apply(FaceletContext, UIComponent) line: 48
DefaultFacelet.include(AbstractFaceletContext, UIComponent) line: 514
DefaultFacelet.include(AbstractFaceletContext, UIComponent, URL) line: 568
DefaultFacelet.include(AbstractFaceletContext, UIComponent, String) line: 546
DefaultFaceletContext.includeFacelet(UIComponent, String) line: 240
CompositionHandler.apply(FaceletContext, UIComponent) line: 151
NamespaceHandler.apply(FaceletContext, UIComponent) line: 59
EncodingHandler.apply(FaceletContext, UIComponent) line: 48
DefaultFacelet.apply(FacesContext, UIComponent) line: 187
FaceletViewDeclarationLanguage.buildView(FacesContext, UIViewRoot) line: 477
RenderResponseExecutor.execute(FacesContext) line: 78
LifecycleImpl.render(FacesContext) line: 267
FacesServlet.service(ServletRequest, ServletResponse) line: 198
...
Restore View Phase - Page2.xhtml
Nothing to point out
Render Response Phase - Page3.xhtml
ComponentSupport.restoreInitialTagState(ctx, fcc, parent, uniqueId) is executed on id "1l_3_8_q_5_0_1_o_8_8"
returning an instance of IterationState which is then cast to Boolean and causes the error:
org.apache.myfaces.view.facelets.tag.jstl.core.IterationState cannot be cast to java.lang.Boolean
at org.apache.myfaces.view.facelets.tag.jstl.core.IfHandler.apply(IfHandler.java:84)
...
Please note that there is no new state being defined for id "1l_3_8_q_5_0_1_o_8_8" between those two events. Also removing the offending c:forEach will move the problem to another c:forEach (the id also changes). Removing this last c:forEach will make the page work.
was (Author: gmanuel):
Hi Leonardo,
I understand this is very difficult to reproduce without a test case, we just have been unable to produce one so far. I confirm we're using the latest version (as of today), I hope you consider the information that follows useful.
I wish to correct the information given before as the error occurs during Render Response Phase and not during Restore View (please check below). Below there's some detail on what occurs during the navigation that generates the error.
Restore View Phase - Page1.xhtml
Nothing to point out
Render Response Phase - Page2.xhtml
The id "1l_3_8_q_5_0_1_o_8_8" receives an instance of IterationState
The stack trace follows:
Daemon Thread [ajp-apr-8009-exec-8] (Suspended (breakpoint at line 57 in FaceletState))
FaceletState.putState(String, Object) line: 57
ForEachHandler.applyFirstTime(FaceletContext, FaceletCompositionContext, PageContext, UIComponent, String, Object, ValueExpression) line: 407
ForEachHandler.apply(FaceletContext, UIComponent) line: 229
CompositeFaceletHandler.apply(FaceletContext, UIComponent) line: 46
HtmlComponentHandler(DelegatingMetaTagHandler).applyNextHandler(FaceletContext, UIComponent) line: 55
BehaviorsAddingComponentHandlerWrapper.applyNextHandler(FaceletContext, UIComponent) line: 53
ComponentTagHandlerDelegate.apply(FaceletContext, UIComponent) line: 373
HtmlComponentHandler(DelegatingMetaTagHandler).apply(FaceletContext, UIComponent) line: 50
CompositeFaceletHandler.apply(FaceletContext, UIComponent) line: 46
ImplementationHandler.apply(FaceletContext, UIComponent) line: 67
CompositeFaceletHandler.apply(FaceletContext, UIComponent) line: 46
CompositeComponentDefinitionTagHandler.apply(FaceletContext, UIComponent) line: 257
NamespaceHandler.apply(FaceletContext, UIComponent) line: 59
EncodingHandler.apply(FaceletContext, UIComponent) line: 48
DefaultFacelet.applyCompositeComponent(AbstractFaceletContext, UIComponent, Resource) line: 602
DefaultFaceletContext.applyCompositeComponent(UIComponent, Resource) line: 778
CompositeComponentResourceTagHandler.applyCompositeComponentFacelet(FaceletContext, UIComponent) line: 443
CompositeComponentResourceTagHandler.applyNextHandler(FaceletContext, UIComponent) line: 216
BehaviorsAddingComponentHandlerWrapper.applyNextHandler(FaceletContext, UIComponent) line: 53
ComponentTagHandlerDelegate.apply(FaceletContext, UIComponent) line: 373
CompositeComponentResourceTagHandler(DelegatingMetaTagHandler).apply(FaceletContext, UIComponent) line: 50
CompositeFaceletHandler.apply(FaceletContext, UIComponent) line: 46
IfHandler.apply(FaceletContext, UIComponent) line: 126
CompositeFaceletHandler.apply(FaceletContext, UIComponent) line: 46
ImplementationHandler.apply(FaceletContext, UIComponent) line: 67
CompositeFaceletHandler.apply(FaceletContext, UIComponent) line: 46
CompositeComponentDefinitionTagHandler.apply(FaceletContext, UIComponent) line: 257
NamespaceHandler.apply(FaceletContext, UIComponent) line: 59
EncodingHandler.apply(FaceletContext, UIComponent) line: 48
DefaultFacelet.applyCompositeComponent(AbstractFaceletContext, UIComponent, Resource) line: 602
DefaultFaceletContext.applyCompositeComponent(UIComponent, Resource) line: 778
CompositeComponentResourceTagHandler.applyCompositeComponentFacelet(FaceletContext, UIComponent) line: 443
CompositeComponentResourceTagHandler.applyNextHandler(FaceletContext, UIComponent) line: 216
BehaviorsAddingComponentHandlerWrapper.applyNextHandler(FaceletContext, UIComponent) line: 53
ComponentTagHandlerDelegate.apply(FaceletContext, UIComponent) line: 373
CompositeComponentResourceTagHandler(DelegatingMetaTagHandler).apply(FaceletContext, UIComponent) line: 50
CompositeFaceletHandler.apply(FaceletContext, UIComponent) line: 46
CompositionHandler.apply(FaceletContext, UIComponent) line: 161
NamespaceHandler.apply(FaceletContext, UIComponent) line: 59
EncodingHandler.apply(FaceletContext, UIComponent) line: 48
DefaultFacelet.include(AbstractFaceletContext, UIComponent) line: 514
DefaultFacelet.include(AbstractFaceletContext, UIComponent, URL) line: 568
DefaultFacelet.include(AbstractFaceletContext, UIComponent, String) line: 546
DefaultFaceletContext.includeFacelet(UIComponent, String) line: 240
IncludeHandler.apply(FaceletContext, UIComponent) line: 226
CompositeFaceletHandler.apply(FaceletContext, UIComponent) line: 46
HtmlComponentHandler(DelegatingMetaTagHandler).applyNextHandler(FaceletContext, UIComponent) line: 55
BehaviorsAddingComponentHandlerWrapper.applyNextHandler(FaceletContext, UIComponent) line: 53
ComponentTagHandlerDelegate.apply(FaceletContext, UIComponent) line: 373
HtmlComponentHandler(DelegatingMetaTagHandler).apply(FaceletContext, UIComponent) line: 50
CompositeFaceletHandler.apply(FaceletContext, UIComponent) line: 46
ImplementationHandler.apply(FaceletContext, UIComponent) line: 67
CompositeFaceletHandler.apply(FaceletContext, UIComponent) line: 46
CompositeComponentDefinitionTagHandler.apply(FaceletContext, UIComponent) line: 257
NamespaceHandler.apply(FaceletContext, UIComponent) line: 59
EncodingHandler.apply(FaceletContext, UIComponent) line: 48
DefaultFacelet.applyCompositeComponent(AbstractFaceletContext, UIComponent, Resource) line: 602
DefaultFaceletContext.applyCompositeComponent(UIComponent, Resource) line: 778
CompositeComponentResourceTagHandler.applyCompositeComponentFacelet(FaceletContext, UIComponent) line: 443
CompositeComponentResourceTagHandler.applyNextHandler(FaceletContext, UIComponent) line: 216
BehaviorsAddingComponentHandlerWrapper.applyNextHandler(FaceletContext, UIComponent) line: 53
ComponentTagHandlerDelegate.apply(FaceletContext, UIComponent) line: 373
CompositeComponentResourceTagHandler(DelegatingMetaTagHandler).apply(FaceletContext, UIComponent) line: 50
CompositeFaceletHandler.apply(FaceletContext, UIComponent) line: 46
CompositionHandler.apply(FaceletContext, UIComponent) line: 161
NamespaceHandler.apply(FaceletContext, UIComponent) line: 59
EncodingHandler.apply(FaceletContext, UIComponent) line: 48
DefaultFacelet.include(AbstractFaceletContext, UIComponent) line: 514
DefaultFacelet.include(AbstractFaceletContext, UIComponent, URL) line: 568
DefaultFacelet.include(AbstractFaceletContext, UIComponent, String) line: 546
DefaultFaceletContext.includeFacelet(UIComponent, String) line: 240
IncludeHandler.apply(FaceletContext, UIComponent) line: 226
ForEachHandler.applyFirstTime(FaceletContext, FaceletCompositionContext, PageContext, UIComponent, String, Object, ValueExpression) line: 382
ForEachHandler.apply(FaceletContext, UIComponent) line: 229
CompositeFaceletHandler.apply(FaceletContext, UIComponent) line: 46
ImplementationHandler.apply(FaceletContext, UIComponent) line: 67
CompositeFaceletHandler.apply(FaceletContext, UIComponent) line: 46
CompositeComponentDefinitionTagHandler.apply(FaceletContext, UIComponent) line: 257
NamespaceHandler.apply(FaceletContext, UIComponent) line: 59
EncodingHandler.apply(FaceletContext, UIComponent) line: 48
DefaultFacelet.applyCompositeComponent(AbstractFaceletContext, UIComponent, Resource) line: 602
DefaultFaceletContext.applyCompositeComponent(UIComponent, Resource) line: 778
CompositeComponentResourceTagHandler.applyCompositeComponentFacelet(FaceletContext, UIComponent) line: 443
CompositeComponentResourceTagHandler.applyNextHandler(FaceletContext, UIComponent) line: 216
BehaviorsAddingComponentHandlerWrapper.applyNextHandler(FaceletContext, UIComponent) line: 53
ComponentTagHandlerDelegate.apply(FaceletContext, UIComponent) line: 373
CompositeComponentResourceTagHandler(DelegatingMetaTagHandler).apply(FaceletContext, UIComponent) line: 50
UserTagHandler.apply(FaceletContext, UIComponent, String) line: 210
TemplateContextImpl$TemplateManagerImpl.apply(FaceletContext, UIComponent, String) line: 193
TemplateContextImpl.includeDefinition(FaceletContext, Facelet, UIComponent, String) line: 136
DefaultFaceletContext.includeDefinition(UIComponent, String) line: 459
InsertHandler.apply(FaceletContext, UIComponent) line: 94
CompositeFaceletHandler.apply(FaceletContext, UIComponent) line: 46
ComponentRefHandler(DelegatingMetaTagHandler).applyNextHandler(FaceletContext, UIComponent) line: 55
BehaviorsAddingComponentHandlerWrapper.applyNextHandler(FaceletContext, UIComponent) line: 53
ComponentTagHandlerDelegate.apply(FaceletContext, UIComponent) line: 373
ComponentRefHandler(DelegatingMetaTagHandler).apply(FaceletContext, UIComponent) line: 50
NamespaceHandler.apply(FaceletContext, UIComponent) line: 59
EncodingHandler.apply(FaceletContext, UIComponent) line: 48
DefaultFacelet.include(AbstractFaceletContext, UIComponent) line: 514
DefaultFacelet.include(AbstractFaceletContext, UIComponent, URL) line: 568
DefaultFaceletContext.includeFacelet(UIComponent, URL) line: 389
UserTagHandler.apply(FaceletContext, UIComponent) line: 159
DefineHandler.applyDefinition(FaceletContext, UIComponent) line: 86
CompositionHandler.apply(FaceletContext, UIComponent, String) line: 178
TemplateContextImpl$TemplateManagerImpl.apply(FaceletContext, UIComponent, String) line: 193
TemplateContextImpl.includeDefinition(FaceletContext, Facelet, UIComponent, String) line: 136
DefaultFaceletContext.includeDefinition(UIComponent, String) line: 459
InsertHandler.apply(FaceletContext, UIComponent) line: 94
CompositeFaceletHandler.apply(FaceletContext, UIComponent) line: 46
HtmlComponentHandler(DelegatingMetaTagHandler).applyNextHandler(FaceletContext, UIComponent) line: 55
BehaviorsAddingComponentHandlerWrapper.applyNextHandler(FaceletContext, UIComponent) line: 53
ComponentTagHandlerDelegate.apply(FaceletContext, UIComponent) line: 373
HtmlComponentHandler(DelegatingMetaTagHandler).apply(FaceletContext, UIComponent) line: 50
HtmlComponentHandler(DelegatingMetaTagHandler).applyNextHandler(FaceletContext, UIComponent) line: 55
BehaviorsAddingComponentHandlerWrapper.applyNextHandler(FaceletContext, UIComponent) line: 53
ComponentTagHandlerDelegate.apply(FaceletContext, UIComponent) line: 373
HtmlComponentHandler(DelegatingMetaTagHandler).apply(FaceletContext, UIComponent) line: 50
CompositeFaceletHandler.apply(FaceletContext, UIComponent) line: 46
ViewHandler.apply(FaceletContext, UIComponent) line: 195
NamespaceHandler.apply(FaceletContext, UIComponent) line: 59
CompositeFaceletHandler.apply(FaceletContext, UIComponent) line: 46
EncodingHandler.apply(FaceletContext, UIComponent) line: 48
DefaultFacelet.include(AbstractFaceletContext, UIComponent) line: 514
DefaultFacelet.include(AbstractFaceletContext, UIComponent, URL) line: 568
DefaultFacelet.include(AbstractFaceletContext, UIComponent, String) line: 546
DefaultFaceletContext.includeFacelet(UIComponent, String) line: 240
CompositionHandler.apply(FaceletContext, UIComponent) line: 151
NamespaceHandler.apply(FaceletContext, UIComponent) line: 59
EncodingHandler.apply(FaceletContext, UIComponent) line: 48
DefaultFacelet.include(AbstractFaceletContext, UIComponent) line: 514
DefaultFacelet.include(AbstractFaceletContext, UIComponent, URL) line: 568
DefaultFacelet.include(AbstractFaceletContext, UIComponent, String) line: 546
DefaultFaceletContext.includeFacelet(UIComponent, String) line: 240
CompositionHandler.apply(FaceletContext, UIComponent) line: 151
NamespaceHandler.apply(FaceletContext, UIComponent) line: 59
EncodingHandler.apply(FaceletContext, UIComponent) line: 48
DefaultFacelet.apply(FacesContext, UIComponent) line: 187
FaceletViewDeclarationLanguage.buildView(FacesContext, UIViewRoot) line: 477
RenderResponseExecutor.execute(FacesContext) line: 78
LifecycleImpl.render(FacesContext) line: 267
FacesServlet.service(ServletRequest, ServletResponse) line: 198
...
Restore View Phase - Page2.xhtml
Nothing to point out
Render Response Phase - Page3.xhtml
ComponentSupport.restoreInitialTagState(ctx, fcc, parent, uniqueId) is executed on id "1l_3_8_q_5_0_1_o_8_8"
returning an instance of IterationState which is then cast to Boolean and causes the error:
org.apache.myfaces.view.facelets.tag.jstl.core.IterationState cannot be cast to java.lang.Boolean
at org.apache.myfaces.view.facelets.tag.jstl.core.IfHandler.apply(IfHandler.java:84)
...
Please note that there is no new state being defined for id "1l_3_8_q_5_0_1_o_8_8" between those two events. Also removing the offending c:forEach will move the problem to another c:forEach (the id also changes). Removing this last c:forEach will make the page work.
> SectionUniqueIdCounter.startUniqueIdSection(String base) does not generate prefix correctly
> -------------------------------------------------------------------------------------------
>
> Key: MYFACES-3867
> URL: https://issues.apache.org/jira/browse/MYFACES-3867
> Project: MyFaces Core
> Issue Type: Bug
> Affects Versions: 2.2.1
> Reporter: Gonçalo Manuel Cruchinho
> Assignee: Leonardo Uribe
>
> The following error occurs during the restore view phase when working with ajax and re-rendering just a fraction of the page.
> This occurs with the latest version of the trunk. Unfortunately a test case for this problem was not possible due to the complexity of the page, which involves multiple composite components, <c:if> conditions and <c:forEach> tags.
> The stack trace follows.
> java.lang.ClassCastException: java.lang.Boolean cannot be cast to org.apache.myfaces.view.facelets.tag.jstl.core.IterationState
> at org.apache.myfaces.view.facelets.tag.jstl.core.ForEachHandler.apply(ForEachHandler.java:210)
> at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:46)
> at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:55)
> at org.richfaces.ui.behavior.BehaviorsAddingComponentHandlerWrapper.applyNextHandler(BehaviorsAddingComponentHandlerWrapper.java:53)
> at org.apache.myfaces.view.facelets.tag.jsf.ComponentTagHandlerDelegate.apply(ComponentTagHandlerDelegate.java:373)
> at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:50)
> at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:46)
> at org.apache.myfaces.view.facelets.tag.composite.ImplementationHandler.apply(ImplementationHandler.java:67)
> at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:46)
> at org.apache.myfaces.view.facelets.tag.composite.CompositeComponentDefinitionTagHandler.apply(CompositeComponentDefinitionTagHandler.java:257)
> at org.apache.myfaces.view.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:59)
> at org.apache.myfaces.view.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:48)
> at org.apache.myfaces.view.facelets.impl.DefaultFacelet.applyCompositeComponent(DefaultFacelet.java:602)
> at org.apache.myfaces.view.facelets.impl.DefaultFaceletContext.applyCompositeComponent(DefaultFaceletContext.java:778)
> at org.apache.myfaces.view.facelets.tag.composite.CompositeComponentResourceTagHandler.applyCompositeComponentFacelet(CompositeComponentResourceTagHandler.java:443)
> at org.apache.myfaces.view.facelets.tag.composite.CompositeComponentResourceTagHandler.applyNextHandler(CompositeComponentResourceTagHandler.java:216)
> at org.richfaces.ui.behavior.BehaviorsAddingComponentHandlerWrapper.applyNextHandler(BehaviorsAddingComponentHandlerWrapper.java:53)
> at org.apache.myfaces.view.facelets.tag.jsf.ComponentTagHandlerDelegate.apply(ComponentTagHandlerDelegate.java:373)
> at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:50)
> at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:46)
> at org.apache.myfaces.view.facelets.tag.jstl.core.IfHandler.apply(IfHandler.java:126)
> at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:46)
> at org.apache.myfaces.view.facelets.tag.composite.ImplementationHandler.apply(ImplementationHandler.java:67)
> at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:46)
> at org.apache.myfaces.view.facelets.tag.composite.CompositeComponentDefinitionTagHandler.apply(CompositeComponentDefinitionTagHandler.java:257)
> at org.apache.myfaces.view.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:59)
> at org.apache.myfaces.view.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:48)
> at org.apache.myfaces.view.facelets.impl.DefaultFacelet.applyCompositeComponent(DefaultFacelet.java:602)
> at org.apache.myfaces.view.facelets.impl.DefaultFaceletContext.applyCompositeComponent(DefaultFaceletContext.java:778)
> at org.apache.myfaces.view.facelets.tag.composite.CompositeComponentResourceTagHandler.applyCompositeComponentFacelet(CompositeComponentResourceTagHandler.java:443)
> at org.apache.myfaces.view.facelets.tag.composite.CompositeComponentResourceTagHandler.applyNextHandler(CompositeComponentResourceTagHandler.java:216)
> at org.richfaces.ui.behavior.BehaviorsAddingComponentHandlerWrapper.applyNextHandler(BehaviorsAddingComponentHandlerWrapper.java:53)
> at org.apache.myfaces.view.facelets.tag.jsf.ComponentTagHandlerDelegate.apply(ComponentTagHandlerDelegate.java:373)
> at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:50)
> at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:46)
> at org.apache.myfaces.view.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:161)
> at org.apache.myfaces.view.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:59)
> at org.apache.myfaces.view.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:48)
> at org.apache.myfaces.view.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:514)
> at org.apache.myfaces.view.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:568)
> at org.apache.myfaces.view.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:546)
> at org.apache.myfaces.view.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:240)
> at org.apache.myfaces.view.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:226)
> at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:46)
> at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:55)
> at org.richfaces.ui.behavior.BehaviorsAddingComponentHandlerWrapper.applyNextHandler(BehaviorsAddingComponentHandlerWrapper.java:53)
> at org.apache.myfaces.view.facelets.tag.jsf.ComponentTagHandlerDelegate.apply(ComponentTagHandlerDelegate.java:373)
> at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:50)
> at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:46)
> at org.apache.myfaces.view.facelets.tag.composite.ImplementationHandler.apply(ImplementationHandler.java:67)
> at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:46)
> at org.apache.myfaces.view.facelets.tag.composite.CompositeComponentDefinitionTagHandler.apply(CompositeComponentDefinitionTagHandler.java:257)
> at org.apache.myfaces.view.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:59)
> at org.apache.myfaces.view.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:48)
> at org.apache.myfaces.view.facelets.impl.DefaultFacelet.applyCompositeComponent(DefaultFacelet.java:602)
> at org.apache.myfaces.view.facelets.impl.DefaultFaceletContext.applyCompositeComponent(DefaultFaceletContext.java:778)
> at org.apache.myfaces.view.facelets.tag.composite.CompositeComponentResourceTagHandler.applyCompositeComponentFacelet(CompositeComponentResourceTagHandler.java:443)
> at org.apache.myfaces.view.facelets.tag.composite.CompositeComponentResourceTagHandler.applyNextHandler(CompositeComponentResourceTagHandler.java:216)
> at org.richfaces.ui.behavior.BehaviorsAddingComponentHandlerWrapper.applyNextHandler(BehaviorsAddingComponentHandlerWrapper.java:53)
> at org.apache.myfaces.view.facelets.tag.jsf.ComponentTagHandlerDelegate.apply(ComponentTagHandlerDelegate.java:373)
> at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:50)
> at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:46)
> at org.apache.myfaces.view.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:161)
> at org.apache.myfaces.view.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:59)
> at org.apache.myfaces.view.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:48)
> at org.apache.myfaces.view.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:514)
> at org.apache.myfaces.view.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:568)
> at org.apache.myfaces.view.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:546)
> at org.apache.myfaces.view.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:240)
> at org.apache.myfaces.view.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:226)
> at org.apache.myfaces.view.facelets.tag.jstl.core.ForEachHandler.applyFirstTime(ForEachHandler.java:382)
> at org.apache.myfaces.view.facelets.tag.jstl.core.ForEachHandler.apply(ForEachHandler.java:229)
> at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:46)
> at org.apache.myfaces.view.facelets.tag.composite.ImplementationHandler.apply(ImplementationHandler.java:67)
> at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:46)
> at org.apache.myfaces.view.facelets.tag.composite.CompositeComponentDefinitionTagHandler.apply(CompositeComponentDefinitionTagHandler.java:257)
> at org.apache.myfaces.view.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:59)
> at org.apache.myfaces.view.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:48)
> at org.apache.myfaces.view.facelets.impl.DefaultFacelet.applyCompositeComponent(DefaultFacelet.java:602)
> at org.apache.myfaces.view.facelets.impl.DefaultFaceletContext.applyCompositeComponent(DefaultFaceletContext.java:778)
> at org.apache.myfaces.view.facelets.tag.composite.CompositeComponentResourceTagHandler.applyCompositeComponentFacelet(CompositeComponentResourceTagHandler.java:443)
> at org.apache.myfaces.view.facelets.tag.composite.CompositeComponentResourceTagHandler.applyNextHandler(CompositeComponentResourceTagHandler.java:216)
> at org.richfaces.ui.behavior.BehaviorsAddingComponentHandlerWrapper.applyNextHandler(BehaviorsAddingComponentHandlerWrapper.java:53)
> at org.apache.myfaces.view.facelets.tag.jsf.ComponentTagHandlerDelegate.apply(ComponentTagHandlerDelegate.java:373)
> at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:50)
> at org.apache.myfaces.view.facelets.tag.UserTagHandler.apply(UserTagHandler.java:210)
> at org.apache.myfaces.view.facelets.impl.TemplateContextImpl$TemplateManagerImpl.apply(TemplateContextImpl.java:193)
> at org.apache.myfaces.view.facelets.impl.TemplateContextImpl.includeDefinition(TemplateContextImpl.java:136)
> at org.apache.myfaces.view.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:459)
> at org.apache.myfaces.view.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:94)
> at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:46)
> at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:55)
> at org.richfaces.ui.behavior.BehaviorsAddingComponentHandlerWrapper.applyNextHandler(BehaviorsAddingComponentHandlerWrapper.java:53)
> at org.apache.myfaces.view.facelets.tag.jsf.ComponentTagHandlerDelegate.apply(ComponentTagHandlerDelegate.java:373)
> at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:50)
> at org.apache.myfaces.view.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:59)
> at org.apache.myfaces.view.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:48)
> at org.apache.myfaces.view.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:514)
> at org.apache.myfaces.view.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:568)
> at org.apache.myfaces.view.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:389)
> at org.apache.myfaces.view.facelets.tag.UserTagHandler.apply(UserTagHandler.java:159)
> at org.apache.myfaces.view.facelets.tag.ui.DefineHandler.applyDefinition(DefineHandler.java:86)
> at org.apache.myfaces.view.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:178)
> at org.apache.myfaces.view.facelets.impl.TemplateContextImpl$TemplateManagerImpl.apply(TemplateContextImpl.java:193)
> at org.apache.myfaces.view.facelets.impl.TemplateContextImpl.includeDefinition(TemplateContextImpl.java:136)
> at org.apache.myfaces.view.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:459)
> at org.apache.myfaces.view.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:94)
> at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:46)
> at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:55)
> at org.richfaces.ui.behavior.BehaviorsAddingComponentHandlerWrapper.applyNextHandler(BehaviorsAddingComponentHandlerWrapper.java:53)
> at org.apache.myfaces.view.facelets.tag.jsf.ComponentTagHandlerDelegate.apply(ComponentTagHandlerDelegate.java:373)
> at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:50)
> at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:55)
> at org.richfaces.ui.behavior.BehaviorsAddingComponentHandlerWrapper.applyNextHandler(BehaviorsAddingComponentHandlerWrapper.java:53)
> at org.apache.myfaces.view.facelets.tag.jsf.ComponentTagHandlerDelegate.apply(ComponentTagHandlerDelegate.java:373)
> at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:50)
> at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:46)
> at org.apache.myfaces.view.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:195)
> at org.apache.myfaces.view.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:59)
> at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:46)
> at org.apache.myfaces.view.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:48)
> at org.apache.myfaces.view.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:514)
> at org.apache.myfaces.view.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:568)
> at org.apache.myfaces.view.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:546)
> at org.apache.myfaces.view.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:240)
> at org.apache.myfaces.view.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:151)
> at org.apache.myfaces.view.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:59)
> at org.apache.myfaces.view.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:48)
> at org.apache.myfaces.view.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:514)
> at org.apache.myfaces.view.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:568)
> at org.apache.myfaces.view.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:546)
> at org.apache.myfaces.view.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:240)
> at org.apache.myfaces.view.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:151)
> at org.apache.myfaces.view.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:59)
> at org.apache.myfaces.view.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:48)
> at org.apache.myfaces.view.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:187)
> at org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.buildView(FaceletViewDeclarationLanguage.java:477)
> at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:78)
> at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:267)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
> ...
--
This message was sent by Atlassian JIRA
(v6.2#6252)