Merge pull request #1435 from Zhangyx39/format_exception

SAMZA-2596: Replace String.format() calls to avoid MissingFormatArgumentException