We obtain a bifurcation result for solutions of the Lorentz equation in a semiRiemannian manifold; such solutions are critical points of a certain strongly indefinite functionals defined in terms of the semi-Riemannian metric and the magnetic field. The flow of the Jacobi equation along each solution preserves the so-called magnetic symplectic form, and the corresponding curve in the symplectic...