question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.util.BeanUtil.okNameForSetter since 2.6.0

See original GitHub issue

Since 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:closed
  • Created 8 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
aschemancommented, Aug 18, 2015

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!

0reactions
yunuskazan81commented, Oct 11, 2019

@ascheman Thanks man, you saved me from headache.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found