To obtain a dissolution of marriage, one of the parties to the marriage must reside 6 months in the state before the filing of the petition.