[jboss-jira] [JBoss JIRA] (AS7-6681) ClusteredSingleSignOn ClassCastException with non-distributable apps

Dennis Reed (JIRA) jira-events at lists.jboss.org
Tue Mar 5 18:42:56 EST 2013


    [ https://issues.jboss.org/browse/AS7-6681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12758762#comment-12758762 ] 

Dennis Reed edited comment on AS7-6681 at 3/5/13 6:41 PM:
----------------------------------------------------------

The bug is in the following line in ClusteredSingleSignOn#deregisterLocal:

            ClusteredSession<OutgoingDistributableSessionData> clusteredSession = (ClusteredSession<OutgoingDistributableSessionData>) session ;

It incorrectly assumes every session tied to the SSO is a ClusteredSession, which is not true for non-distributable applications.

                
      was (Author: dereed):
    The bug is in the following line in ClusteredSingleSignOn#deregisterLocal:

            // Invalidate this session, but do not propagate to other nodes
            ClusteredSession<OutgoingDistributableSessionData> clusteredSession =
                    (ClusteredSession<OutgoingDistributableSessionData>) session ;

It incorrectly assumes every session tied to the SSO is a ClusteredSession, which is not true for non-distributable applications.

                  
> ClusteredSingleSignOn ClassCastException with non-distributable apps
> --------------------------------------------------------------------
>
>                 Key: AS7-6681
>                 URL: https://issues.jboss.org/browse/AS7-6681
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: Web
>    Affects Versions: 7.1.3.Final (EAP)
>            Reporter: Dennis Reed
>            Assignee: Dennis Reed
>         Attachments: test.war
>
>
> When ClusteredSingleSignOn is enabled, and a user has an active session in a non-distributable web application, invalidating any session in the same SSO from a different AS instance in the cluster causes the following exception (logged numerous times in various ways):
> ERROR [org.infinispan.interceptors.InvocationContextInterceptor] (OOB-20,null) ISPN000136: Execution error: org.infinispan.CacheException: Caught exception [java.lang.ClassCastException] while invoking method [public void org.jboss.as.clustering.web.sso.infinispan.SSOClusterManager.cacheEntryRemoved(org.infinispan.notifications.cachelistener.event.CacheEntryRemovedEvent)] on listener instance: org.jboss.as.clustering.web.sso.infinispan.SSOClusterManager at 28e13c84
> ...
> Caused by: java.lang.ClassCastException: org.apache.catalina.session.StandardSession cannot be cast to org.jboss.as.web.session.ClusteredSession
>     at org.jboss.as.web.sso.ClusteredSingleSignOn.deregisterLocal(ClusteredSingleSignOn.java:523) [jboss-as-web-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]
>     ...

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list