You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "wojtask (Created) (JIRA)" <de...@myfaces.apache.org> on 2012/03/20 18:51:38 UTC

[jira] [Created] (MYFACES-3508) ClassCastException during RestoreView with MyFaces 2.1.7-SNAPSHOT

ClassCastException during RestoreView with MyFaces 2.1.7-SNAPSHOT
-----------------------------------------------------------------

                 Key: MYFACES-3508
                 URL: https://issues.apache.org/jira/browse/MYFACES-3508
             Project: MyFaces Core
          Issue Type: Bug
          Components: JSR-314
    Affects Versions: 2.1.7-SNAPSHOT
         Environment: Tomcat 6.x jdk 1.6 linux/windows
            Reporter: wojtask


With MyFaces 2.1.7-SNAPSHOT sometimes we see this stacktrace:


Caused by: java.lang.ClassCastException: 
org.apache.myfaces.renderkit.html.HtmlTextRenderer cannot be cast to 
javax.faces.event.ComponentSystemEventListener
at 
javax.faces.component.UIComponent$EventListenerWrapper.restoreState(UIComponent.java:1600)
at 
javax.faces.component.UIComponentBase.restoreAttachedState(UIComponentBase.java:1878)
at javax.faces.component._DeltaList.restoreState(_DeltaList.java:254)
at 
javax.faces.component.UIComponentBase.restoreAttachedState(UIComponentBase.java:1878)
at 
javax.faces.component.UIComponentBase.restoreFullSystemEventListenerClassMap(UIComponentBase.java:2181)
at javax.faces.component.UIComponentBase.restoreState(UIComponentBase.java:2021)
at javax.faces.component.UIOutput.restoreState(UIOutput.java:209)
at 
javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1593)
at 
org.apache.myfaces.view.facelets.DefaultFaceletsStateManagementStrategy$2.invokeContextCallback(DefaultFaceletsStateManagementStrategy.java:441)
at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:227)
at 
javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:1136)
at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:238)
at 
javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:1136)


test and other informations:
http://www.mail-archive.com/users@myfaces.apache.org/msg58543.html


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (MYFACES-3508) ClassCastException during RestoreView with MyFaces 2.1.7-SNAPSHOT

Posted by "Leonardo Uribe (Resolved) (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/MYFACES-3508?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leonardo Uribe resolved MYFACES-3508.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1.7
                   2.0.13
         Assignee: Leonardo Uribe

The problem was caused by the improvement done in MYFACES-3144, because rendererType should be restored before any listener.
                
> ClassCastException during RestoreView with MyFaces 2.1.7-SNAPSHOT
> -----------------------------------------------------------------
>
>                 Key: MYFACES-3508
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3508
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>    Affects Versions: 2.1.7-SNAPSHOT
>         Environment: Tomcat 6.x jdk 1.6 linux/windows
>            Reporter: wojtask
>            Assignee: Leonardo Uribe
>             Fix For: 2.0.13, 2.1.7
>
>
> With MyFaces 2.1.7-SNAPSHOT sometimes we see this stacktrace:
> Caused by: java.lang.ClassCastException: 
> org.apache.myfaces.renderkit.html.HtmlTextRenderer cannot be cast to 
> javax.faces.event.ComponentSystemEventListener
> at 
> javax.faces.component.UIComponent$EventListenerWrapper.restoreState(UIComponent.java:1600)
> at 
> javax.faces.component.UIComponentBase.restoreAttachedState(UIComponentBase.java:1878)
> at javax.faces.component._DeltaList.restoreState(_DeltaList.java:254)
> at 
> javax.faces.component.UIComponentBase.restoreAttachedState(UIComponentBase.java:1878)
> at 
> javax.faces.component.UIComponentBase.restoreFullSystemEventListenerClassMap(UIComponentBase.java:2181)
> at javax.faces.component.UIComponentBase.restoreState(UIComponentBase.java:2021)
> at javax.faces.component.UIOutput.restoreState(UIOutput.java:209)
> at 
> javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1593)
> at 
> org.apache.myfaces.view.facelets.DefaultFaceletsStateManagementStrategy$2.invokeContextCallback(DefaultFaceletsStateManagementStrategy.java:441)
> at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:227)
> at 
> javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:1136)
> at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:238)
> at 
> javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:1136)
> test and other informations:
> http://www.mail-archive.com/users@myfaces.apache.org/msg58543.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira