fast-serialization
fast-serialization copied to clipboard
java.lang.NullPointerException: "org.nustaq.serialization.FSTClazzInfo$FSTFieldInfo.getPossibleClasses()"
I am receiving this error from class FSTObjectInput - line number 357.
java.lang.NullPointerException: Cannot load from object array because the return value of "org.nustaq.serialization.FSTClazzInfo$FSTFieldInfo.getPossibleClasses()" is null
What should I have in possibleClasses so that it does not result in NullPointerException? Here is the FSTFieldInfo for which this is failing -
I have another with same information but that works and code resolved is not equals to 1 -
![Screen Shot 2021-06-16 at 10 31 51 PM](https://user-images.githubusercontent.com/1910845/122322776-0370d380-cef4-11eb-832c-e2ca161f8391.png)
Same here, using as a drop in replacement for redisson.
We have stopped using this library and all our issues are resolved. I don't think this library provides any advantage even in terms of performance.
We have stopped using this library and all our issues are resolved. I don't think this library provides any advantage even in terms of performance.
What are you using now? Inbuild java object serialization?
We have stopped using this library and all our issues are resolved. I don't think this library provides any advantage even in terms of performance.
What are you using now? Inbuild java object serialization?
Yes.
I had the same exception and it was related to using the same encode instance in multiple threads, since it is not threadsafe.
Make sure to use a construct like the following as described on https://github.com/RuedigerMoeller/fast-serialization/wiki/Serialization
static ThreadLocal<FSTConfiguration> conf = new ThreadLocal() { public FSTConfiguration initialValue() { return FSTConfiguration.createDefaultConfiguration(); } };