Getting TTP Status 500 - No serializer found for class org.springframework.validation.DefaultMessageCodesResolver and no properties discovered to create BeanSerializer

Hi, I am trying to add a visit by calling a post request to visit endpoint.

The packet is:

{
 "uuid":"7c2ecf5c-a835-4ce1-9d3c-9b1bd9b72090",
 "startDatetime":"2023-03-30T16:51:48.772+0530",
 "stopDatetime":null,
 "visitType":"a86ac96e-2e07-47a7-8e72-8216a1a75bfd",
 "attributes":[
	 {
		 "attributeType":"3f296939-c6d3-4d2e-b8ca-d7f4bfd42c2d",
		 "value":"All"
	 }
 ],
 "patient":"9f3ff388-240c-4aed-8d92-c7918e42b25a",
 "location":"eb374eaf-430e-465e-81df-fe94c2c515be", 
 "encounters" : ["674add25-0dd5-47bf-98da-750f7d27f708"]
}

However, it is returning me:

HTTP Status 500 - No serializer found for class org.springframework.validation.DefaultMessageCodesResolver and no properties discovered to create BeanSerializer

The full stack is available at this pastebin

OpenMRS v 2.5.0 Build 157c43 Ref App v 2.12.0-SNAPSHOT

JDK 1.8 MySQL 5.7

Any help will be greatly appreciated.

Thanks

Provide the full server side log via pastebin.com

HI @dkayiwa , the full logs are here

That does not look like the full server side log.