These are chat archives for spring-cloud/spring-cloud

Jan 2016
Jan 21 2016 04:13

spring-cloud/spring-cloud-netflix#782 feign client return Page error:

Caused by: com.fasterxml.jackson.databind.JsonMappingException: Can not construct instance of, problem: abstract types either need to be mapped to concrete types, have custom deserializer, or be instantiated with additional type information
at [Source:; line: 1, column: 1]
at com.fasterxml.jackson.databind.JsonMappingException.from( ~[jackson-databind-2.6.4.jar:2.6.4]
at com.fasterxml.jackson.databind.DeserializationContext.instantiationException( ~[jackson-databind-2.6.4.jar:2.6.4]
at com.fasterxml.jackson.databind.deser.AbstractDeserializer.deserialize( ~[jackson-databind-2.6.4.jar:2.6.4]
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose( ~[jackson-databind-2.6.4.jar:2.6.4]
at com.fasterxml.jackson.databind.ObjectMapper.readValue( ~[jackson-databind-2.6.4.jar:2.6.4]
at org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.readJavaType( ~[spring-web-4.2.4.RELEASE.jar:4.2.4.RELEASE]
... 30 common frames omitted

Spencer Gibb
Jan 21 2016 04:28
It's an open issue that isn't supported yet.
Dave Syer
Jan 21 2016 10:17
@mbenson that looks like a bug in Spring to me (the hander is mapped, but cannot be executed at runtime)
Dave Syer
Jan 21 2016 11:08
But if you want a workaround I'd say you don't need proxies
You just need a custom HandlerMethodArgumentResolver
Matt Benson
Jan 21 2016 15:27
@dsyer: I will look into that. The proxy approach was a non starter, certainly