I think Gauri can annul her marriage. Annulment can be filed if a person marries an already married person (bigamy) and was unaware of their married status. Gauri should be able to null the marriage as per this law. Then J can ask for divorce from A and should not enter a legal complication as his second marriage would be annulled. Then they can remarry, if they would like.