While this might not solve your problem, one thing I see.
You are using @RequestParam as if those values are directly in the URL
string as request parameters. So after the URL part you would have to have ?userName=someValue&message=MessageValue for @RequestParam to get those values. If those values aren't in the URL after the ? then they aren't Request Params.
Where is that data? Is it in the RequestBody? Is it a ModelAttribute? If so , then use its corresponding annotation, @RequestBody or @ModelAttribute
I think it is a combination of the message being sent Message meaning URL and contents, not your variable message. And also in the Controller annotations that you are using are incorrect.
Mark