Skip to content
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

java.lang.NullPointerException: "org.nustaq.serialization.FSTClazzInfo$FSTFieldInfo.getPossibleClasses()" #315

Open
rhishirajnema opened this issue Jun 17, 2021 · 5 comments

Comments

@rhishirajnema
Copy link

rhishirajnema commented Jun 17, 2021

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 -
Screen Shot 2021-06-16 at 10 30 01 PM

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

@rhishirajnema rhishirajnema changed the title java.lang.NullPointerException: Cannot load from object array because the return value of "org.nustaq.serialization.FSTClazzInfo$FSTFieldInfo.getPossibleClasses()" is null java.lang.NullPointerException: "org.nustaq.serialization.FSTClazzInfo$FSTFieldInfo.getPossibleClasses()" Jun 17, 2021
@Sneakometer
Copy link

Same here, using as a drop in replacement for redisson.

@rhishirajnema
Copy link
Author

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.

@Sneakometer
Copy link

Sneakometer commented Mar 14, 2022

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?

@rhishirajnema
Copy link
Author

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.

@bluelu
Copy link

bluelu commented Jun 10, 2022

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 conf = new ThreadLocal() {
public FSTConfiguration initialValue() {
return FSTConfiguration.createDefaultConfiguration();
}
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants