[
http://jira.jboss.com/jira/browse/JBPORTAL-1094?page=comments#action_1235... ]
Poul Bildsoee Moeller commented on JBPORTAL-1094:
-------------------------------------------------
I think it is allright to close this issue. The resolution description should really be
"Not a bug" since the Exception was caused by some sort of cluster
misconfigurarion on my side that I wasn't able to reproduce when I started all over
using a clean portal/app-server bundle. The Interceptor design leading to the Exception
can always be discussed but this is as you say a forums "thing".
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
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