Open llaros opened 3 years ago
IMHO the problem lies with the expected Kryo object or more precisely its package com.esotericsoftware.kryo.Kryo
vs info.jerrinot.subzero.relocated.com.esotericsoftware.kryo.Kryo
Problem solved with following dependencies
<dependency>
<groupId>info.jerrinot</groupId>
<artifactId>subzero-core</artifactId>
<version>0.10</version>
</dependency>
<dependency>
<groupId>de.javakaffee</groupId>
<artifactId>kryo-serializers</artifactId>
<version>0.45</version>
</dependency>
<dependency>
<groupId>com.esotericsoftware</groupId>
<artifactId>kryo</artifactId>
<version>4.0.2</version>
</dependency>
I've reopened just because I don't know whether or notshould subzero-all work out-of-the box with kryo-serializers.
hi, thanks for reporting this, your analysis looks correct. I'll check what to do about it.
@llaros I'm afraid there is no good solution. The serializer plugins expect Kryo in the original package. I could either:
subzero-core
. subzero-all
but it does not feel good. Any other idea?
Some more thoughts: Subzero-All could relocate Kryo dependencies, but keep Kryo itself in its original packages. Why? Kryo depends on some fairly popular low-level infrastructure libraries, such as Asm or Objenesis. Not relocating them could lead to a bad JAR hell. Kryo itself is less popular and the risk of conflicts is lower. Not relocating it will allow 3rd party serializers to work. Thanks to @viliam-durina for the idea!
Hello,
I've read https://github.com/jerrinot/subzero/issues/8 and therefore placed
subzero-serializers.properties
file withUnmodifiableCollectionsSerializer
as its content.Project dependencies
hazelcast.xml with following element
But got following exception on hz node startup:
I've decompiled UnmodifiableCollectionsSerializer and assured that it has