Closed GoogleCodeExporter closed 9 years ago
Kyro 1.04 is the version. 1.6.1 is msm-kyro-serializer.
Original comment by monster...@gmail.com
on 20 Jun 2012 at 6:43
This issue was closed by revision r313.
Original comment by nathan.s...@gmail.com
on 21 Jun 2012 at 2:01
It looks like SimpleGrantedAuthority is trying to be put in the TreeMap, but
does not implement Comparable, so it explodes. Probably the TreeMap has a
Comparator and was serialized using MapSerializer, which serialized the keys
and values but not the Comparator. You'll need to extend MapSerializer and use
treeMap.comparator() to serialize the comparator, then the keys and values. On
deserialization you would read the comparator, then create a TreeMap with it,
then read the values. An implementation has been checked in for Kryo v2. You
can write one for v1 if necessary.
Original comment by nathan.s...@gmail.com
on 21 Jun 2012 at 2:01
It actually has an inner class for the implementation.
In the end, I just overrode the object in my local project and removed the
TreeMap used to sort GrantedAuthority objects. I probably need to file
something on Spring to make their User object more serialization friendly
and extensible.
Original comment by monster...@gmail.com
on 21 Jun 2012 at 1:46
Could you please share in which version of Kryo this is fixed.
We were using msm 1.6.5 with kryo-1.04.jar on OpenJdk 6 AWS EC2 instance. This
was working fine, we started seeing this issue when we upgraded to Java 7 (No
other changes in environment)
We tested using msm 1.8.1 with Kryo 2.2.2 Issue exists.
Spring Version : 3.1.2.RELEASE
Original comment by tito...@gmail.com
on 20 Feb 2014 at 6:01
Attachments:
I am facing this exception too. Could anyone give directions on how to fix it?
Tried the latest version of msm (1.8.3) and kryo (2.24)
Original comment by amruthke...@gmail.com
on 7 Dec 2014 at 1:08
Original issue reported on code.google.com by
monster...@gmail.com
on 20 Jun 2012 at 6:41