An alleged stalker has been charged with two felonies after he was found living on the grounds of Jennifer Lopez's lavish Southampton mansion for a week earlier this month, said police.
The superstar singer-actress had an order of protection against John M. Dubis, 49, who was arrested at Lopez's Water Mill mansion on Aug. 8 after workers at the residence called police and reported a "suspicious male" on the property, police said in a statement. Dubis was staying in the mansion's pool house for a week unbeknown to Lopez, who was not staying in the home at the time.
Dubis was charged with second-degree burglary, first-degree criminal contempt, fourth-degree stalking and possession of burglar tools. He pleaded not guilty, and is being held on $100,000 bail.
The court ordered an exam to determine if Dubis was fit to proceed and face the criminal charges against him. He is scheduled to return to Southampton Justice Court at a later date, according to police.
The police did not release any details on Lopez's order of protection against Dubis.
Lopez's representative did not immediately respond to ABC News' request for comment.
Lopez bought the Southampton mansion on Long Island's East End in May for a reported $10 million, according to the Long Island paper Newsday.