Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-133

ClusteredSingleSignOn ClassCastException with non-distributable apps

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 8.0.0.Alpha1
    • None
    • Web (Undertow)
    • None
    • Hide

      Deploy attached test.war to two clustered instances on the same host (so the SSO cookie is shared).

      Access http://<hostname>:<port>/test for both instances.
      Access http://<hostname>:<port>/test?x=1 for one instance (the x=1 triggers a session.invalidate() call)

      Expected Result: no errors
      Actual Result: The exception in the description

      Show
      Deploy attached test.war to two clustered instances on the same host (so the SSO cookie is shared). Access http://<hostname>:<port>/test for both instances. Access http://<hostname>:<port>/test?x=1 for one instance (the x=1 triggers a session.invalidate() call) Expected Result: no errors Actual Result: The exception in the description
    • Release Notes

    Description

      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@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]
      ...

      Attachments

        Issue Links

          Activity

            People

              jpederse@redhat.com Jesper Pedersen
              rhn-support-dereed Dennis Reed
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: