MODE-1871 Corrected spelling error in exception message
Corrected compiler warnings