[keycloak-user] Infinispan caching issues because of unserializable classes

Lohitha Chiranjeewa kalc04 at gmail.com
Mon Nov 30 11:56:35 EST 2015


I agree that there could be inconsistent behavior with ASYNC mode depending
on what your use case is.

However, shouldn't the classes I mentioned be made serializable in any
case? They are directly referenced from the classes inside infinispan cache
model package.
On Nov 30, 2015 7:56 PM, "Stian Thorgersen" <sthorger at redhat.com> wrote:

> I wouldn't not recommend setting async as you may get unpredictable
> behavior
>
> On 30 November 2015 at 15:07, Lohitha Chiranjeewa <kalc04 at gmail.com>
> wrote:
>
>> Yes, the 'mode' of 'realms' and 'users' caches were changed to 'ASYNC'.
>> This causes the app to store the invalidations temporarily w/o sending to
>> other nodes and flush them all only when a threshold value is arrived. I
>> think this storage method causes the Serialization issue.
>>
>> On Mon, Nov 30, 2015 at 7:30 PM, Bill Burke <bburke at redhat.com> wrote:
>>
>>> Did you change caching configuration?
>>>
>>> On 11/30/2015 8:50 AM, Lohitha Chiranjeewa wrote:
>>>
>>>> Issue came up with Realm and User caches. Not User Sessions.
>>>>
>>>> On Mon, Nov 30, 2015 at 7:17 PM, Bill Burke <bburke at redhat.com
>>>> <mailto:bburke at redhat.com>> wrote:
>>>>
>>>>     Or is this related to UserSession cache?
>>>>
>>>>     On 11/30/2015 8:45 AM, Bill Burke wrote:
>>>>      > We don't replicate at all.  Why would this be an issue?
>>>>      >
>>>>      > On 11/30/2015 8:41 AM, Lohitha Chiranjeewa wrote:
>>>>      >> When Infinispan caching is enabled in ASYNC mode, exceptions get
>>>>     logged
>>>>      >> at startup due to serialization issues. Basically the following
>>>>     classes
>>>>      >> have to implement the Serialiazable interface:
>>>>      >>
>>>>      >> org.keycloak.models.OTPPolicy
>>>>      >> org.keycloak.models.
>>>>      >> RequiredActionProviderModel
>>>>      >>
>>>>      >> There could be other classes as well.
>>>>      >>
>>>>      >> Is this already fixed in 1.7.0 code or shall I put a JIRA?
>>>>      >>
>>>>      >>
>>>>      >> Regards,
>>>>      >> Lohitha.
>>>>      >>
>>>>      >>
>>>>      >> _______________________________________________
>>>>      >> keycloak-user mailing list
>>>>      >> keycloak-user at lists.jboss.org <mailto:
>>>> keycloak-user at lists.jboss.org>
>>>>      >> https://lists.jboss.org/mailman/listinfo/keycloak-user
>>>>      >>
>>>>      >
>>>>
>>>>     --
>>>>     Bill Burke
>>>>     JBoss, a division of Red Hat
>>>>     http://bill.burkecentral.com
>>>>     _______________________________________________
>>>>     keycloak-user mailing list
>>>>     keycloak-user at lists.jboss.org <mailto:keycloak-user at lists.jboss.org
>>>> >
>>>>     https://lists.jboss.org/mailman/listinfo/keycloak-user
>>>>
>>>>
>>>>
>>> --
>>> Bill Burke
>>> JBoss, a division of Red Hat
>>> http://bill.burkecentral.com
>>>
>>
>>
>> _______________________________________________
>> keycloak-user mailing list
>> keycloak-user at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/keycloak-user
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20151130/d0c79a50/attachment.html 


More information about the keycloak-user mailing list