MappingJackson2(Http)MessageConverter should be more verbose in canRead/canWrite checks (on Jackson 2.3) [SPR-11261] #15886
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Oliver Drotbohm opened SPR-11261 and commented
The
MappingJackson2HttpMessageConverter
currently callsobjectMapper.can(De)Serialize(…)
to check whether the mapper supports a given type. The mapper returnsfalse
if it encounters an exception in the marshaling metadata setup. So if you have an error in your mapping setup, theHMC
is not selected and you never find out why.ObjectMapper
has overloads for thecan(De)Serialize(…)
methods taking anAtomicReference
to capture the issue that prevented the serializer from being able to (de)serialize the type. So it would be cool if we used those and log the reason in the debug level.Affects: 3.2.6, 4.0 GA
Issue Links:
The text was updated successfully, but these errors were encountered: