Electromagnetic resonance of nonlinear vacuum in one-dimensional cavity