Description
Marek Wiącek opened SPR-13853 and commented
RestTemplate produces the following error when used with Jackson 2.7.0-rc3:
Caused by: java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.type.TypeFactory.constructType(Ljava/lang/reflect/Type;Ljava/lang/Class;)Lcom/fasterxml/jackson/databind/JavaType;
at org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.getJavaType(AbstractJackson2HttpMessageConverter.java:314)
at org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.canRead(AbstractJackson2HttpMessageConverter.java:146)
at org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.canRead(AbstractJackson2HttpMessageConverter.java:141)
at org.springframework.web.client.RestTemplate$AcceptHeaderRequestCallback.doWithRequest(RestTemplate.java:706)
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:594)
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:557)
at org.springframework.web.client.RestTemplate.getForEntity(RestTemplate.java:289)
Affects: 4.2.3, 4.2.4
Issue Links:
- AbstractJackson2HttpMessageConverter is incompatible with Jackson 2.7+ [SPR-13870] #18443 AbstractJackson2HttpMessageConverter is incompatible with Jackson 2.7+ ("is duplicated by")
- Jackson 2.7.0 not compatible with Spring [SPR-13864] #18437 Jackson 2.7.0 not compatible with Spring ("is duplicated by")
- Jackson 2.6: message converter should use type only for collections [SPR-13318] #17903 Jackson 2.6: message converter should use type only for collections
- Revise AbstractJackson2HttpMessageConverter's generic type adaptation [SPR-13728] #18301 Revise AbstractJackson2HttpMessageConverter's generic type adaptation
Referenced from: commits 09db26a
1 votes, 9 watchers