The occurrence of Painleve's paradox in the motion of a rotating shaft