See SPARK-15489 <https://issues.apache.org/jira/browse/SPARK-15489> I'll try to figure this one out as well, any leads ? "immediate suspects" ?
Thanks, Amit On Mon, May 23, 2016 at 10:27 PM Michael Armbrust <mich...@databricks.com> wrote: > Can you open a JIRA? > > On Sun, May 22, 2016 at 2:50 PM, Amit Sela <amitsel...@gmail.com> wrote: > >> I've been using Encoders with Kryo to support encoding of generically >> typed Java classes, mostly with success, in the following manner: >> >> public static <T> Encoder<T> encoder() { >> return Encoders.kryo((Class<T>) Object.class); >> } >> >> But at some point I got a decoding exception "Caused by: >> java.lang.UnsupportedOperationException >> at java.util.Collections$UnmodifiableCollection.add..." >> >> This seems to be because of Guava's `ImmutableList`. >> >> I tried registering `UnmodifiableCollectionsSerializer` and ` >> ImmutableListSerializer` from: https://github.com/magro/kryo-serializers >> but it didn't help. >> >> Ideas ? >> >> Thanks, >> Amit >> > >