java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.util.BeanUtil.okNameForSetter since 2.6.0
See original GitHub issueSince release 2.6.0 of jackson-jaxrs-json-provider we see the following error when accessing a REST API:
org.eclipse.jetty.servlet.ServletHandler -
javax.servlet.ServletException: org.glassfish.jersey.server.ContainerException: java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.util.BeanUtil.okNameForSetter(Lcom/fasterxml/jackson/databind/introspect/AnnotatedMethod;Z)Ljava/lang/String;
at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:397) ~[jersey-container-servlet-core-2.14.jar:na]
...
The error occurs in https://github.com/dukecon/dukecon_server (a very simple Spring-Boot RESTful service):
- Just clone the latest version (or even this commit: 0e5a31a76e910f09ce5cc951100b3172e83e179c)
- Change the property
<fasterxml.version>
in api/pom.xml to 2.6.0 or 2.6.1 - Build the parent project: mvn clean install
- Run the spring-boot application: cd impl && mvn spring-boot:run
- Get the /rest/talks resource: curl http://localhost:8080/rest/talks
- Check out the error in the log output or logfile: less logs/dukecon.log
Issue Analytics
- State:
- Created 8 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
com.fasterxml.jackson.databind.util.BeanUtil.okNameForGetter
I am getting this error while using the newest version of jackson core and databind: java.lang.NoSuchMethodError: ...
Read more >Exception in thread "main" java.lang.NoSuchMethodError
I was getting the exactly same issue. I was using Maven for dependency management and had added dependency for jackson-databind module only ...
Read more >java.lang.NoSuchMethodError: com.fasterxml.jackson ...
ServletException: org.glassfish.jersey.server.ContainerException: java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.AnnotationIntrospector.
Read more >BeanUtil (jackson-databind 2.9.5 API) - javadoc.io
public class BeanUtil extends Object. Helper class that contains functionality needed by both serialization and deserialization side.
Read more >Deprecated List (jackson-databind 2.6.0 API) - FasterXML
Since 2.6 use the main-level implementation, base class of this class ... com.fasterxml.jackson.databind.util. ... constructParametrizedType(java.lang.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Seems you are right spring-boot:1.2.5.Release (current as of today) depends on jackson core 2.4.6 which is also a dependency of jackson-jaxrs-json-provider 2.5.4 … Thx!
@ascheman Thanks man, you saved me from headache.