A judge has compelled an acting prosecutor in south-central New York and another attorney to cooperate with an investigation of a complaint of misconduct against a former judge, after the two lawyers had refused to obey a subpoena, the New York State Commission on Judicial Conduct said in a statement Tuesday.

The two attorneys—acting Delaware County District Attorney Shawn J. Smith, and Gregory B. Peirez of Chenango County—were required to testify and produce emails pertinent to the commission’s inquiry into the former judge, whom the commission did not mention by name.