AbstractJackson2HttpMessageConverter is incompatible with Jackson 2.7+ [SPR-13870] #18443
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: duplicate
A duplicate of another issue
Abhijit Sarkar opened SPR-13870 and commented
AbstractJackson2HttpMessageConverter.getJavaType
callsobjectMapper.getTypeFactory().constructType(type, contextClass)
. In Jackson 2.7+, they modified the signature ofconstructType
and it doesn't take a 2ndClass
argument anymore. This is breaking everything that uses theAbstractJackson2HttpMessageConverter
, includingRestTemplate
and controllers that output JSON.AbstractJackson2HttpMessageConverter
claims that it is "Compatible with Jackson 2.1 and higher." but that's not true anymore. The newer Jackson has features that are very desirable, like customization options for JDK8 date time, so downgrading is not a viable option for modern clients.Sample stacktrace:
Issue Links:
The text was updated successfully, but these errors were encountered: