SAN DIEGO—A San Diego home-invasion robbery trial abruptly ended when the defendant suddenly smeared feces on the face of his attorney and threw defecate at jurors.

Superior Court Judge Jeffrey Fraser declared a mistrial and hiked 37-year-old defendant Weusi McGowan's bail to $1 million pending a Feb. 9 hearing.

Prosecutor Christopher Lawson says McGowan was upset Monday because the judge refused to remove public defender Jeffrey Martin from the case.

McGowan had smuggled a plastic bag filled with feces into the courtroom and he spread it on Martin's hair and face before flinging the excrement toward jurors. No jurors were hit.

McGowan is charged with kidnapping for robbery, assault with a deadly weapon and other counts for an Oct. 17, 2007, home invasion assault.