Uploaded image for project: 'Keycloak'
  1. Keycloak
  2. KEYCLOAK-1476

NotSerializableException: org.keycloak.models.cache.entities.CachedClientRole

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.3.1.Final
    • Component/s: None
    • Labels:
      None

      Description

      Infinispan complains about CachedClientRole not being serializable. However, it shouldn't need to serialize it as the realm cache is an invalidation-cache.

      19:40:09,840 ERROR [org.infinispan.statetransfer.OutboundTransferTask] (transport-thread--p2-t25) Failed to send entries to node node2 : java.lang.RuntimeException: Failure to marshal argument(s): org.infinispan.commons.CacheException: java.lang.RuntimeException: Failure to marshal argument(s)
      	at org.infinispan.commons.util.Util.rewrapAsCacheException(Util.java:657)
      	at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.invokeRemoteCommand(CommandAwareRpcDispatcher.java:250)
      	at org.infinispan.remoting.transport.jgroups.JGroupsTransport.invokeRemotely(JGroupsTransport.java:561)
      	at org.infinispan.remoting.rpc.RpcManagerImpl.invokeRemotely(RpcManagerImpl.java:287)
      	at org.infinispan.statetransfer.OutboundTransferTask.sendEntries(OutboundTransferTask.java:239)
      	at org.infinispan.statetransfer.OutboundTransferTask.run(OutboundTransferTask.java:178)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.RuntimeException: Failure to marshal argument(s)
      	at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.marshallCall(CommandAwareRpcDispatcher.java:417)
      	at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.processSingleCall(CommandAwareRpcDispatcher.java:432)
      	at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.invokeRemoteCommand(CommandAwareRpcDispatcher.java:241)
      	... 11 more
      Caused by: org.infinispan.commons.marshall.NotSerializableException: org.keycloak.models.cache.entities.CachedClientRole
      Caused by: an exception which occurred:
      	in object org.keycloak.models.cache.entities.CachedClientRole@62875ebb
      	in object org.infinispan.container.entries.ImmortalCacheEntry@70c538cd
      	in object java.util.ArrayList@70c538ec
      	in object org.infinispan.statetransfer.StateChunk@4fa05cbf
      	in object java.util.ArrayList@20e12d6d
      	in object org.infinispan.statetransfer.StateResponseCommand@e9d5684
      

        Gliffy Diagrams

          Attachments

          1. server-1.log
            2.30 MB
            Stian Thorgersen
          2. server-2.log
            1.63 MB
            Stian Thorgersen

            Issue Links

              Activity

                People

                • Assignee:
                  stianst Stian Thorgersen
                  Reporter:
                  stianst Stian Thorgersen
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: