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

NotSerializableException: org.wildfly.clustering.web.undertow.sso.elytron.ElytronAuthentication when using distributed SSO w/Elytron

    XMLWordPrintable

    Details

    • Steps to Reproduce:
      Hide
      1. cp -r standalone standalone1; cp -r standalone standalone2
      2. Apply attached configuration.
      3. bin/standalone.sh -c standalone-ha.xml -Djboss.server.base.dir=standalone1 -Djboss.node.name=host1
      4. bin/standalone.sh -c standalone-ha.xml -Djboss.server.base.dir=standalone2 -Djboss.node.name=host2 -Djboss.socket.binding.port-offset=200
      5. Deploy attached app.
      6. Hit localhost:8080/app1/unsecured (sorry for the confusing path).
      7. Enter userA and passwordA to login form.
      8. GOOD should be returned instead of error page.
      Show
      cp -r standalone standalone1; cp -r standalone standalone2 Apply attached configuration. bin/standalone.sh -c standalone-ha.xml -Djboss.server.base.dir=standalone1 -Djboss.node.name=host1 bin/standalone.sh -c standalone-ha.xml -Djboss.server.base.dir=standalone2 -Djboss.node.name=host2 -Djboss.socket.binding.port-offset=200 Deploy attached app. Hit localhost:8080/app1/unsecured (sorry for the confusing path). Enter userA and passwordA to login form. GOOD should be returned instead of error page.

      Description

      Having distributable application backed by Undertow application-security-domain with Elytron SSO set (for FORM mechanism), successful login attempts results in the following error:

      15:57:34,903 ERROR [org.infinispan.remoting.rpc.RpcManagerImpl] (default task-4) ISPN000073: Unexpected error while replicating: org.infinispan.commons.marshall.NotSerializableException: org.wildfly.clustering.web.undertow.sso.elytron.ElytronAuthentication
      Caused by: an exception which occurred:
      	in object org.wildfly.clustering.web.undertow.sso.elytron.ElytronAuthentication@46ef57a5
      	in object org.wildfly.clustering.marshalling.jboss.SimpleMarshalledValue@46ef57a5
      	in object org.wildfly.clustering.web.infinispan.sso.AuthenticationEntry@417b03e9
      	in object org.infinispan.commands.write.PutKeyValueCommand@9646d052
      	in object org.infinispan.commands.tx.PrepareCommand@50ee6487
      
      15:57:34,905 ERROR [org.infinispan.interceptors.InvocationContextInterceptor] (default task-4) ISPN000136: Error executing command PrepareCommand, writing keys [AuthenticationKey(ukdiDnE0KJg46OUFshcxq6XIE2xnV9JZRJfpScWx), CoarseSessionsKey(ukdiDnE0KJg46OUFshcxq6XIE2xnV9JZRJfpScWx)]: org.infinispan.commons.marshall.NotSerializableException: org.wildfly.clustering.web.undertow.sso.elytron.ElytronAuthentication
      Caused by: an exception which occurred:
      	in object org.wildfly.clustering.web.undertow.sso.elytron.ElytronAuthentication@46ef57a5
      	in object org.wildfly.clustering.marshalling.jboss.SimpleMarshalledValue@46ef57a5
      	in object org.wildfly.clustering.web.infinispan.sso.AuthenticationEntry@417b03e9
      	in object org.infinispan.commands.write.PutKeyValueCommand@9646d052
      	in object org.infinispan.commands.tx.PrepareCommand@50ee6487
      
      15:57:34,905 ERROR [org.infinispan.transaction.impl.TransactionCoordinator] (default task-4) ISPN000097: Error while processing a prepare in a single-phase transaction: org.infinispan.commons.marshall.NotSerializableException: org.wildfly.clustering.web.undertow.sso.elytron.ElytronAuthentication
      Caused by: an exception which occurred:
      	in object org.wildfly.clustering.web.undertow.sso.elytron.ElytronAuthentication@46ef57a5
      	in object org.wildfly.clustering.marshalling.jboss.SimpleMarshalledValue@46ef57a5
      	in object org.wildfly.clustering.web.infinispan.sso.AuthenticationEntry@417b03e9
      	in object org.infinispan.commands.write.PutKeyValueCommand@9646d052
      	in object org.infinispan.commands.tx.PrepareCommand@50ee6487
      

      Priority is set to blocker because it blocks EAP7-596.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              pferraro Paul Ferraro
              Reporter:
              pferraro Paul Ferraro
              Tester:
              Ondrej Kotek Ondrej Kotek
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: