1900 as "constantly grumbling person;" 1914 as a type of candy; from sour (adj.) + ball (n.1).
: Everyone thought itwas funny except the sour-balls instructor
sorehead (1900+)