(1) While both parties to an alleged marriage or domestic partnership are living, and at least one party is resident in this state or a member of the armed service and stationed in the state, a petition to have the marriage or domestic partnership declared invalid may be sought by: (a) Either or both parties, or the guardian of an incompetent spouse or incompetent domestic partner, for any cause specified in subsection (4) of this section; or (b) Either or both parties, the legal spouse or domestic