Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
1.2.6-core
-
None
-
Facelets 1.1.14, JSF 1.2_07 RI
Description
On attempt to PPR, the following exception is thrown:
Caused by: java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to java.lang.String
at org.apache.myfaces.trinidadinternal.util.SubKeyMap._getBaseKey(SubKeyMap.java:116)
at org.apache.myfaces.trinidadinternal.util.SubKeyMap.get(SubKeyMap.java:75)
at org.apache.myfaces.trinidadinternal.application.StateManagerImpl.restoreView(StateManagerImpl.java:526)
at com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:318)
at com.sun.facelets.FaceletViewHandler.restoreView(FaceletViewHandler.java:316)
at javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:204)
at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:260)
at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:176)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:104)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
... 19 more
Instead of returning token string, an array of objects is returned by ResponseStateManager.getTreeStructureToRestore().
This affects trinidad-1.2.6 (maybe the issue is caused by changes in revision #614404 ?). trinidad-1.2.5 is ok