Hi, I will try Marvin's way : keep the name of the class instead of the class itself (or create a custom Serializer as a backup plan). I just created CAS-1403.
I agree that there is something to do with this serialization mechanism, but it's so efficient compared to the Java one : no pain, no gain ! Best regards, Jérôme 2013/12/18 Misagh Moayyed <mmoay...@unicon.net> > +1 on a comprehensive strategy down the road to ease this process. I > suppose either solution would work fine for the time being, but we should > really review this for better alternatives to be able to make mods to the > codebase without having to worry about side-effects such as this. > > Misagh > > > ------------------------------ > *From: *"Marvin Addison" <marvin.addi...@gmail.com> > *To: *cas-dev@lists.jasig.org > *Sent: *Tuesday, December 17, 2013 12:55:21 PM > *Subject: *Re: [cas-dev] New issue on 4.0-RC2 > > > The problem is that the FailedLoginException references itself through > its > > cause property [1]. > > > > Thus, the Kryo serialization fails with the following error: Buffer limit > > exceeded writing object of type: > > javax.security.auth.login.FailedLoginException. > > Every time I'm faced with these sorts of issues, I feel like we should > invest the energy in a thoughtful and comprehensive strategy for > serialization across the entire codebase. I realize that's out of > scope in the present circumstance, but I did want to mention it since > I believe we'll have to cross the bridge eventually. > > My initial thought is an ImmutableAuthentication serializer that > simply records the class names of exceptions in the failure map. I > honestly think the class name is sufficient to record the failure > cause long term. If a use case arises that we need more, we can > consider augmenting at a future date. > > M > > -- > You are currently subscribed to cas-dev@lists.jasig.org as: > mmoay...@unicon.net > To unsubscribe, change settings or access archives, see > http://www.ja-sig.org/wiki/display/JSG/cas-dev > > -- > You are currently subscribed to cas-dev@lists.jasig.org as: lel...@gmail.com > To unsubscribe, change settings or access archives, see > http://www.ja-sig.org/wiki/display/JSG/cas-dev > > -- You are currently subscribed to cas-dev@lists.jasig.org as: arch...@mail-archive.com To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-dev