Serialization in Java, invalid type code 00

前端 未结 4 1192
别跟我提以往
别跟我提以往 2020-12-20 18:34

I\'m getting an error (java.io.StreamCorruptedException: invalid type code: 00) when reading in a serialised object. Here is the class that implements serializable:

4条回答
  •  旧时难觅i
    2020-12-20 18:49

    Came here to find solution for Mallet classifier deserialization. Finally my problem was that I trained and serialized the model in one Eclipse project and tried to deserialize in another Eclipse project. One of the classes (among those I created) in the serialized object was only on the class path of the former project and not on the class path of the latter.

提交回复
热议问题