A judge has found there is sufficient evidence for a man once briefly married to Britney Spears to go on trial for stalking.

After a two-hour preliminary hearing, Ventura County Judge David Worley ruled that 40-year-old Jason Allen Alexander should be held to answer on the charge, along with misdemeanor counts of trespassing, vandalism and battery, court records showed.

Not guilty pleas to all the charges were entered by an attorney for Alexander, who did not attend and remains imprisoned.

Spears married longtime boyfriend Sam Asghari at her home in Thousand Oaks, California on June 9 in front of several dozen guests including Selena Gomez, Drew Barrymore, Paris Hilton and Madonna.

Alexander, a childhood friend of Spears to whom she was married for less than three days in 2004, appeared uninvited at the house before the ceremony, livestreaming his raid on Instagram.

Richard Eubler, a since-fired security guard for Spears, testified at Monday’s hearing that Alexander got inside her house and up to the locked door of Spears’ bedroom while she was inside, according to multiple media reports.

The ex-guard said Alexander had also tried to enter the property in the days before the wedding.

Alexander’s lawyer, Sandra Bisignani, argued there was no evidence he had any intention of harming Spears.