State police said an Oneonta man was arrested after violating an order of protection twice within a few hours.

According to a media release, Troopers from the Oneonta station arrested Joshua P. Eckman, 38, at about 11:45 p.m. July 3 for second-degree criminal contempt, a misdemeanor, after a victim called troopers to say Eckman entered the victim’s residence and violated an order of protection that was issued on June 22. Eckman was arraigned in the town of Oneonta court, released on his recognizance and told to stay away from the victim.

Just a few hours later, at about 5:36 p.m. July 4, Eckman was arrested again on the same charge after he allegedly entered the victim’s home again.

Troopers said Eckman complained of pain while being processed. He was transported to A.O. Fox Hospital, where the judge from Oneonta town court traveled to arraign him. Once cleared from the hospital, he was sent to the Otsego County Jail on $1,000 cash bail or $2,000 property bond.