RuedigerMoeller / fast-serialization

FST: fast java serialization drop in-replacement
Apache License 2.0
1.59k stars 247 forks source link

java.lang.NullPointerException #184

Closed dubboy closed 7 years ago

dubboy commented 7 years ago

java.io.IOException: java.lang.NullPointerException at org.nustaq.serialization.FSTObjectInput.readObject(FSTObjectInput.java:243) ~[fst-2.45.jar:?] at org.nustaq.serialization.FSTConfiguration.asObject(FSTConfiguration.java:1122) ~[fst-2.45.jar:?] java.io.IOException: java.lang.NullPointerException at org.nustaq.serialization.FSTObjectInput.readObject(FSTObjectInput.java:243) ~[fst-2.45.jar:?] at org.nustaq.serialization.FSTConfiguration.asObject(FSTConfiguration.java:1122) ~[fst-2.45.jar:?]

Fst Version:fst-2.45.jar

FstUtil: public class FstUtils {

public FstUtils() {
}

private static FSTConfiguration configuration = FSTConfiguration.createMinBinConfiguration();

public static byte[] serializeByte(Object t) {
    return configuration.asByteArray(t);
}

public  static  Object deserializeByte(byte[] bytes) {
    return configuration.asObject(bytes);
}

}

服务器重启有几率触发这个问题(Server restart has a chance to trigger this problem)

RuedigerMoeller commented 7 years ago

maybe a multithreading related issue during initial build up of metadata (FSTClassInfo).

RuedigerMoeller commented 7 years ago

seems fixed with 2.5x as no further response