The trial of a former Hudson, Massachusetts, middle school teacher accused of raping one of her former students ended Friday with a hung jury for a second time.