Throw exception if prefix is J