NotSerializableException on org.keycloak.services.DefaultKeycloakSession using RH-SSO 7.1 standalone cluster mode with custom User Storage SPI

Solution Verified - Updated -

Issue

  • Error in log

    ...
    Caused by: org.infinispan.commons.marshall.NotSerializableException: org.keycloak.services.DefaultKeycloakSession
    Caused by: an exception which occurred:
        in field session
        in field value
        in field instance
        in object java.util.concurrent.ConcurrentHashMap@3769c23c
        in object org.wildfly.clustering.ejb.infinispan.group.InfinispanBeanGroupEntry@65e67da0
        in object org.infinispan.commands.write.PutKeyValueCommand@eeb6ec6e
        in object org.infinispan.commands.tx.PrepareCommand@d8edf297
    ...
    

Environment

  • Red Hat Single Sign-On (RH-SSO) 7
  • Clustering
  • Custom or EJB User Storage SPI
  • Reference to the KeycloakSession on the UserStorageProvider implementation class.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content