code generation error
Exception in thread "main" com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of `java.time.LocalDate` (no Creators, like default construct, exist): no String-argument constructor/factory method to deserialize from String value ('2020-01-01')
at [Source: (String)"{
"GetHotelDetailsRQ": {
"SearchCriteria": {
"HotelRefs": {
"HotelRef": {
"HotelCode": "1208",
"CodeContext": "SABRE"
}
},
"RateInfoRef": {
"PrepaidQualifier": "IncludePrepaid",
"RefundableOnly": true,
"ConvertedRateInfoOnly": true,
"StayDateRange": {
"StartDate": "2020-01-01",
"EndDate": "2020-01-08"
},
"Rooms": {
"Room": [
{
"[truncated 2485 chars]; line: 15, column: 25] (through reference chain: com.sabre.gt.csl.hotel.details.model.GetHotelDetailsRequest["GetHotelDetailsRQ"]->com.sabre.gt.csl.hotel.details.model.GetHotelDetailsRequestGetHotelDetailsRQ["SearchCriteria"]->com.sabre.gt.csl.hotel.details.model.GetHotelDetailsRequestGetHotelDetailsRQSearchCriteria["RateInfoRef"]->com.sabre.gt.csl.hotel.details.model.GetHotelDetailsRequestGetHotelDetailsRQSearchCriteriaRateInfoRef["StayDateRange"]->com.sabre.gt.csl.hotel.details.model.GetHotelDetailsRequestGetHotelDetailsRQSearchCriteriaRateInfoRefStayDateRange["StartDate"])
at com.fasterxml.jackson.databind.exc.InvalidDefinitionException.from(InvalidDefinitionException.java:67)
at com.fasterxml.jackson.databind.DeserializationContext.reportBadDefinition(DeserializationContext.java:1452)
at com.fasterxml.jackson.databind.DeserializationContext.handleMissingInstantiator(DeserializationContext.java:1028)
at com.fasterxml.jackson.databind.deser.ValueInstantiator._createFromStringFallbacks(ValueInstantiator.java:371)
at com.fasterxml.jackson.databind.deser.std.StdValueInstantiator.createFromString(StdValueInstantiator.java:323)
at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromString(BeanDeserializerBase.java:1373)
at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeOther(BeanDeserializer.java:171)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:161)
at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:127)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:288)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:151)
at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:127)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:288)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:151)
at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:127)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:288)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:151)
at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:127)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:288)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:151)
at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:127)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:288)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:151)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4013)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3004)
at com.sabre.gt.csl.hotel.details.api.HotelDetailsClientTest.convertJsonToGetHotelDetailsRequest(HotelDetailsClientTest.java:44)
at com.sabre.gt.csl.hotel.details.api.HotelDetailsClientTest.createGetHotelDetailsRequest(HotelDetailsClientTest.java:24)
at com.sabre.gt.csl.hotel.details.api.HotelDetailsClientTest.main(HotelDetailsClientTest.java:19)