Description
Claes Mogren opened SPR-14163 and commented
We have a project that registers both a MappingJackson2HttpMessageConverter and a ProtobufHttpMessageConverter to our RestTemplate. This works fine, but every time we de-serialize a JSON body into a protobuf we get something like:
2016-04-13 13:22:30.760 WARN [app-service] 15947 --- [AppClient-1] .c.j.MappingJackson2HttpMessageConverter : Failed to evaluate deserialization for type [simple type, class com.company.product.component.protobuf.Client$Configurations]: com.fasterxml.jackson.databind.JsonMappingException: Can not find a (Map) Key deserializer for type [simple type, class com.google.protobuf.Descriptors$FieldDescriptor]
It can of course be hidden by setting logging.level.org.springframework.http.converter.json: 'ERROR' in our application.yml, but it's not the solution.
Affects: 4.1.7
Issue Links:
- Log caught exception in MappingJackson2HttpMessageConverter [SPR-11403] #16030 Log caught exception in MappingJackson2HttpMessageConverter
- MappingJackson2(Http)MessageConverter should be more verbose in canRead/canWrite checks (on Jackson 2.3) [SPR-11261] #15886 MappingJackson2(Http)MessageConverter should be more verbose in canRead/canWrite checks (on Jackson 2.3)
- Poor diagnostics when Jackson cannot deserialise an application/json payload due to a missing deserialiser [SPR-15582] #20141 Poor diagnostics when Jackson cannot deserialise an application/json payload due to a missing deserialiser
- AbstractJackson2HttpMessageConverter incorrectly logs at WARN level after upgrading to Jackson 2.9 [SPR-16947] #21486 AbstractJackson2HttpMessageConverter incorrectly logs at WARN level after upgrading to Jackson 2.9
Referenced from: commits 62ce9af, bf3cadb, e366746, 5f4e838, 334b4a9