Things I've checked:
- The logs - there isn't anything that seems related to this particular error. It doesn't look like the controller method is even being entered. No exception is being thrown and there is no error logging.
- The types of the properties in the object I'm sending. Another asker had the same error message when their POJO had primitive fields and the JSON had nulls for those fields. There are no unpopulated primitive fields in my JSON.
- Changing the user-agent header to something that isn't Postman doesn't work.
- The POJO has a parameterless constructor.
- I serialized the POJO with the same Jackson version that the controller uses.
- The JSON checks out as valid using several online tools, and none of the values are crazy.
Controller method signature:
@RequestMapping(method=RequestMethod.POST)
@ResponseBody
public AddressResponse standardiseAndPersistLocations (@RequestBody AddressRequest address, @RequestParam(defaultValue = "false") boolean includeCounty,
HttpServletRequest request, HttpServletResponse response)