-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception while deserializing List<String> #3
Comments
Hi @thekalinga, thanks for reporting, I'll have a look! |
do you have a reproducer? it appears to work fine for me. NPE in ArrayList is a strong indication of a concurrency problem. I even tried to important the lombok library and use various generated way to construct the object - but it still seems to work OK. Any hint to reproduce it is much appreciated! |
After I have locally updated public abstract class KryoStrategy<T> {
private static final int BUFFER_SIZE = getInteger("subzero.buffer.size.kb", 16) * 1024;
private static final ThreadLocal<KryoContext> KRYOS = new ThreadLocal<KryoContext>() {
protected KryoContext initialValue() {
Kryo kryo = new Kryo();
kryo.setInstantiatorStrategy(new Kryo.DefaultInstantiatorStrategy(new StdInstantiatorStrategy())); // <-- This is the change
OutputChunked output = new OutputChunked(BUFFER_SIZE);
InputChunked input = new InputChunked(BUFFER_SIZE);
return new KryoContext(kryo, input, output);
}
};
// a lot more code
} i.e attempting to use The docs also talks about this Kryo object creation |
Additional info |
@thekalinga: excellent, many thanks for the report and analysis! |
Thanks |
I am getting this exception while deserializing List element from cache
The class is of the format
I am having global serialisation with
overrideJavaSerialization=true
versions
hazelcast 3.7
subzero-core 0.3
The text was updated successfully, but these errors were encountered: