When the client code below is received in Server Side via SpringMVC, it throws an exception:
FormData formData = FormData(document.getElementById(formElemId));
formData.append('version', null);
The server side code in Spring MVC looks like this:
@RequestParam(value = 'version', required = false) Integer versionNumber
The exception thrown is:
Error converting a value of type 'java.lang.String' to the required type 'java.lang.Integer'; the error stems from java.lang.NumberFormatException: For input string: "null"