MyFaces Trinidad
  1. MyFaces Trinidad
  2. TRINIDAD-955

ClassCastException in StateManagerImpl on PPR

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 1.2.6-core
    • Fix Version/s: 1.2.7-core
    • Component/s: Archetype
    • Labels:
      None
    • Environment:
      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

        Activity

          People

          • Assignee:
            Andrew Robinson
            Reporter:
            Alexey Stukalov
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development