No plea in bar or abatement shall be received by the court unless it be in writing, signed by the accused, and sworn to before some competent officer.