I am using jackson-databind depedency of version 2.14.2 but getting an error getType() not found. #4213
Replies: 4 comments 16 replies
-
|
Beta Was this translation helpful? Give feedback.
-
99% certainly incompatibility between Jackson (jackson-databind) version that is deployed (in classpath), vs. what code calling This method came from https://www.javadoc.io/doc/com.fasterxml.jackson.core/jackson-databind/2.7.9/index.html
So something was compiled against Jackson 2.7 or earlier and for some reason used this method. Method hasn't been part of jackson-databind since maybe 2.8. Note that this deprecation is unusual, Jackson project does not typically deprecate and remove methods of public API within minor releases. But if I remember correctly there was something special why this particular method could no longer be supported, when type resolution problems were fixed. |
Beta Was this translation helpful? Give feedback.
-
@aayushRedHat were you able to resolve the error as I am facing same problem when integrating swagger |
Beta Was this translation helpful? Give feedback.
-
There is Stackoverflow question about this too. It has a stacktrace suggesting that that user was using an old swagger jar that was created to work with an old version of jackson. Upgrading the swagger jars should help. |
Beta Was this translation helpful? Give feedback.
-
I am getting the following error after executing Spring-Camel Application:
Caused by: java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.introspect.AnnotatedMember.getType(Lcom/fasterxml/jackson/databind/type/TypeBindings;)Lcom/fasterxml/jackson/databind/JavaType;
I checked the AnnotatedMember Class but there is not method for getType(). Can anyone suggest the appropriate version of the dependency containing the getType() method?
Beta Was this translation helpful? Give feedback.
All reactions