Bentley in the Encyclopedia of Mormonism addressing the 1826 and 1830 hearings.
Joseph I. Bentley, "Legal Trials of Joseph Smith," in Daniel H. Ludlow, ed., The Encyclopedia of Mormonism, 4 vols. (New York: Macmillan Publishing Company), 3:1346
LEGAL TRIALS OF JOSEPH SMITH
Joseph Smith believe that his enemies perverted legal processes, using them as tools of religious persecution against him, as they had been used against many of Christ's apostles and other past martyrs. Although he often gained quick acquittals, numerous "vexatious and wicked" lawsuits consumed his time and assets, leading to several incarcerations and ultimately to his martyrdom. Beginning soon after his ministry began and continuing throughout his life, Joseph Smith was subjected to approximately thirty criminal actions and at least that many civil suits related to debt collection or failed financial ventures.
The first charge of being a "disorderly person" involved treasure hunting for hire, brought against him at SOUTH BAINBRIDGE, NEW YORK, in 1826 by a disgruntled Methodist preacher related to Josiah Stowell, Joseph's employer. When Stowell refused to testify against him at the trial, Joseph was discharged. In July 1830 in the same venue, Joseph was tried and acquitted by another magistrate on charges of "being a disorderly person, of setting the county in an uproar by preaching the Book of Mormon, etc." (HC 1:88). The trial ended at midnight. The next day, he was seized and tried in neighboring Broome County on the same charges, as well as charges of casting out a devil and using pretended angelic visitations to obtain property from others. Following a twenty-three-hour trial involving some forty witnesses, Joseph was again acquitted (HC 1:91-96)