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

Poul Bildsoee Moeller (JIRA) jira-events at jboss.com
Sun Oct 29 15:10:41 EST 2006


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
         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


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