Longtime Putnam County Court Judge James Reitz, who also served as an acting Putnam County Supreme Court justice, suffered a heart attack on the bench and died Friday morning, state court system officials said.

He had been handling a family court matter at the time of the heart attack. A Legal Aid attorney and a lawyer for the children were in the courtroom when it occurred, said Lucian Chalfen, a state Unified Court System spokesman.