Theory of I-V characteristics of magnetic Josephson junctions