Publish an article in the journal in which one is an associate editor
It is not normal, but it can happen. Usually under such circumstances the article is handled by a different editor, and the submitting editor is treated as would any other person submitting to the journal. 

Also note that a paper can be submitted to a journal like Physical Review Letters, and them get transferred to another journal where the conflict could be created. (This happened to a colleague.)