The judge first issued an arrest order in 2005 but a court subsequently ruled that Spain had no jurisdiction to try the soldiers .