<div dir="ltr"><div><div>We&#39;re using 1.2.0 Final as of now. Is there a newer version?<br><br><br></div>Regards,<br></div>Lohitha<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 12, 2015 at 12:09 PM, Stian Thorgersen <span dir="ltr">&lt;<a href="mailto:stian@redhat.com" target="_blank">stian@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Please upgrade to latest release - this issue should already be fixed<br>
<div><div class="h5"><br>
----- Original Message -----<br>
&gt; From: &quot;Lohitha Chiranjeewa&quot; &lt;<a href="mailto:kalc04@gmail.com">kalc04@gmail.com</a>&gt;<br>
&gt; To: <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
&gt; Sent: Friday, 12 June, 2015 7:33:42 AM<br>
&gt; Subject: [keycloak-user] Exception thrown when deleting user through API (when Keycloak servers are highly available)<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt; We&#39;re running into a bit of a problem when trying to delete users through the<br>
&gt; API. The error returned is of HTML format with 500 error code:<br>
&gt; &lt;html&gt;&lt;head&gt;&lt;title&gt;Error&lt;/title&gt;&lt;/head&gt;&lt;body&gt;Internal Server<br>
&gt; Error&lt;/body&gt;&lt;/html&gt;<br>
&gt;<br>
&gt; Please note:<br>
&gt; - We&#39;re using Infinispan for userSessions, realmCache and userCache. Rest of<br>
&gt; the data is in MySQL.<br>
&gt; - Issue only occurs when Keycloak servers are highly available (2 servers in<br>
&gt; our case). Works fine when only one server is up.<br>
&gt;<br>
&gt; Logs reveal that this is possibly a serialization issue related to<br>
&gt; Infinispan:<br>
&gt;<br>
&gt; [2015-06-12 04:56:54.0303], ERROR,<br>
&gt; org.infinispan.interceptors.InvocationContextInterceptor default task-11 -<br>
&gt; ISPN000136: Execution error: org.infinispan.commons.CacheException:<br>
&gt; java.lang.RuntimeException: Failure to marshal argument(s)<br>
&gt; at org.infinispan.commons.util.Util.rewrapAsCacheException(Util.java:581)<br>
&gt; at<br>
&gt; org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.invokeRemoteCommand(CommandAwareRpcDispatcher.java:176)<br>
&gt; at<br>
&gt; org.infinispan.remoting.transport.jgroups.JGroupsTransport.invokeRemotely(JGroupsTransport.java:521)<br>
&gt; at<br>
&gt; org.infinispan.remoting.rpc.RpcManagerImpl.invokeRemotely(RpcManagerImpl.java:281)<br>
&gt; Caused by: java.lang.RuntimeException: Failure to marshal argument(s)<br>
&gt; at<br>
&gt; org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.marshallCall(CommandAwareRpcDispatcher.java:333)<br>
&gt; at<br>
&gt; org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.processSingleCall(CommandAwareRpcDispatcher.java:352)<br>
&gt; at<br>
&gt; org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.invokeRemoteCommand(CommandAwareRpcDispatcher.java:167)<br>
&gt; ... 94 more<br>
&gt; Caused by: org.infinispan.commons.marshall.NotSerializableException:<br>
&gt; org.keycloak.models.sessions.infinispan.entities.LoginFailureKey<br>
&gt; Caused by: an exception which occurred:<br>
&gt; in object<br>
&gt; org.keycloak.models.sessions.infinispan.entities.LoginFailureKey@f42bdd72<br>
&gt; -&gt; toString =<br>
&gt; org.keycloak.models.sessions.infinispan.entities.LoginFailureKey@f42bdd72<br>
&gt; in object org.infinispan.commands.write.RemoveCommand@914fd0ce<br>
&gt; -&gt; toString =<br>
&gt; RemoveCommand{key=org.keycloak.models.sessions.infinispan.entities.LoginFailureKey@f42bdd72,<br>
&gt; value=null, flags=null, valueMatcher=MATCH_ALWAYS}<br>
&gt; in object org.infinispan.commands.remote.SingleRpcCommand@bfee4c5c<br>
&gt; -&gt; toString = SingleRpcCommand{cacheName=&#39;loginFailures&#39;,<br>
&gt; command=RemoveCommand{key=org.keycloak.models.sessions.infinispan.entities.LoginFailureKey@f42bdd72,<br>
&gt; value=null, flags=null, valueMatcher=MATCH_ALWAYS}}<br>
&gt;<br>
&gt;<br>
&gt; Also there&#39;s a DEBUG log as follows:<br>
&gt;<br>
&gt; [2015-06-12 04:56:54.0301], DEBUG,<br>
&gt; org.infinispan.marshall.core.VersionAwareMarshaller default task-11 - Object<br>
&gt; is not serializable: java.io.NotSerializableException:<br>
&gt; org.keycloak.models.sessions.infinispan.entities.LoginFailureKey<br>
&gt; at<br>
&gt; org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:860)<br>
&gt; at<br>
&gt; org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:58)<br>
&gt; at<br>
&gt; org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:111)<br>
&gt; at<br>
&gt; org.infinispan.marshall.exts.ReplicableCommandExternalizer.writeCommandParameters(ReplicableCommandExternalizer.java:57)<br>
&gt; at<br>
&gt; org.infinispan.marshall.exts.ReplicableCommandExternalizer.writeObject(ReplicableCommandExternalizer.java:42)<br>
&gt; at<br>
&gt; org.infinispan.marshall.exts.ReplicableCommandExternalizer.writeObject(ReplicableCommandExternalizer.java:30)<br>
&gt; at<br>
&gt; org.infinispan.marshall.core.ExternalizerTable$ExternalizerAdapter.writeObject(ExternalizerTable.java:395)<br>
&gt; at<br>
&gt; org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:138)<br>
&gt;<br>
&gt;<br>
&gt; Our Keycloak HA system works fine except for this issue. Please advise on how<br>
&gt; tackle this.<br>
&gt;<br>
&gt;<br>
&gt; Regards,<br>
&gt; Lohitha.<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; keycloak-user mailing list<br>
&gt; <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
</blockquote></div><br></div>