Life of Galileo Galilei was not simple, predictable, or rational. Being as great as he was, Galileo, for example, did not accept Kepler's laws of planetary motion. At the same time, he believed with all his heart in the Copernicus`s theory of the solar system. Because of his personal belief in the heliocentric doctrine, Galileo was heavily criticized by the church, and in 1616 was sentenced by the Inquisition to life imprisonment in his home in Florence.
It was outrageous that a person such as Galileo was forced to spend the remainder of his days in house exile. Nevertheless, he continued to work and write books while in exile. One of the books was the famous "Dialogue on the Two Chief World Systems."
Galileo died in 1642 after having suffered blindness in the last four years of his life and leaving his inventions, discoveries, books, and his devotion to science to future generations, that is, to us.
Are there any other examples in the history where a physicist was criticised socially or by his peers for his idea/theory/ work, but was later accepted wholeheartedly by the society?
One such instance that I know is the case of Galileo Galilei. I don't know any other example of such a case and I had no idea where to ask. (I am also afraid for the duplication of this question.)