示例

public static class SerializableObject implements Serializable{

synchronized private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException {
s.defaultReadObject();
}
}

解决方案
声明不具有 synchronized 修饰符的 readObject()

public static class SerializableObject implements Serializable{

private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException {
s.defaultReadObject();
}
}