Make sure that serializable classes are registered