-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancementA general enhancement
Milestone
Description
Oliver Drotbohm opened SPR-11261 and commented
The MappingJackson2HttpMessageConverter
currently calls objectMapper.can(De)Serialize(…)
to check whether the mapper supports a given type. The mapper returns false
if it encounters an exception in the marshaling metadata setup. So if you have an error in your mapping setup, the HMC
is not selected and you never find out why.
ObjectMapper
has overloads for the can(De)Serialize(…)
methods taking an AtomicReference
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:
- Log caught exception in MappingJackson2HttpMessageConverter [SPR-11403] #16030 Log caught exception in MappingJackson2HttpMessageConverter
- Poor jackson parsing error message in MappingJackson2HttpMessageConverter [SPR-11603] #16226 Poor jackson parsing error message in MappingJackson2HttpMessageConverter
- MappingJackson2HttpMessageConverter should not always log a warning [SPR-14163] #18735 MappingJackson2HttpMessageConverter should not always log a warning
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancementA general enhancement