[jboss-jira] [JBoss JIRA] Updated: (JBPORTAL-1094) ClassCastException when casting SubSession to List in PortalSessionSynchronizationInterceptor

Julien Viet (JIRA) jira-events at jboss.com
Sun Nov 19 18:54:41 EST 2006


     [ http://jira.jboss.com/jira/browse/JBPORTAL-1094?page=all ]

Julien Viet updated JBPORTAL-1094:
----------------------------------

        Fix Version/s:     (was: 2.4.1 Final)
    Affects Version/s:     (was: 2.4.1 Final)

> ClassCastException when casting SubSession to List in PortalSessionSynchronizationInterceptor
> ---------------------------------------------------------------------------------------------
>
>                 Key: JBPORTAL-1094
>                 URL: http://jira.jboss.com/jira/browse/JBPORTAL-1094
>             Project: JBoss Portal
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Portal Portlet
>    Affects Versions: 2.4 Final, 2.6.Alpha1
>         Environment: Portal Clustered using both Portal-ha-2.4.1CR1 and 2.4.0-ha running on JBoss AS 4.0.4
>            Reporter: Poul Bildsoee Moeller
>         Assigned To: Julien Viet
>            Priority: Minor
>             Fix For: 2.6.Alpha1
>
>
> In org.jboss.portal.portlet.aspects.portlet.PortalSessionSynchronizationInterceptor the following code is executed (code partially inserted):
> HttpSession session = req.getSession(false);
>          if (session != null)
>          {
>             ss = (SubSession)session.getAttribute(key);
>          }
>          //
>          try
>          {
>             // Set the sub session for the portlet synchronization
>             if (ss != null && ss.isActivated())
>             {
>                invocation.setAttribute("subsession", ss);
>             }
>             //
>             invocation.invokeNext();
>          }
>          finally
>          {
>             List modifications = (List)invocation.getAttribute("subsession");
> The code sets the SubSession as an attribute on invocation and then later tries to fetch this again and at the same time cast to List. This doesn't work since SubSession isn't a List. I am not sure what is meant to happen so I cannot really fix the problem myself.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list