Riccardo Montagnin
02/08/2019, 10:48 AMInvalidDefinitionException - (no Creators, like default construct, exist): cannot deserialize from Object value (no delegate- or property-based Creator)
I'm installing the feature as follows:
install(ContentNegotiation) {
jackson {
// Set how the dates should be handled
dateFormat = SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").apply {
timeZone = TimeZone.getTimeZone("UTC")
}
// Do not serialize null values
setSerializationInclusion(JsonInclude.Include.NON_NULL)
// Do not worry about unknown properties, ignoring them
configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false)
// If we receive an empty object, treat it as null
enable(DeserializationFeature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT)
//accept also lowercase value in enum fields
enable(MapperFeature.ACCEPT_CASE_INSENSITIVE_ENUMS)
}
}
Every time I do something like call.receive<MyClass>()
I get that error. I really don't know what to do