The judge who sentenced a longtime Alabama sheriff to prison following his conviction on theft and ethics charges wasn't licensed to practice law at the time, the defense argued in asking a court to overturn the verdict and punishment.