In any office occurring by virtue of a judgment of a court of this state convicting the incumbent of and sentencing the incumbent for treason, felony or other crime of whatsoever nature punishable by imprisonment in any jail or prison for one year or more, or convicting the incumbent of and sentencing the incumbent for any offense involving a violation of the incumbent's official oath; or declarin