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.

NoSuchMethodError: com.fasterxml.jackson.core.JsonStreamContext

See original GitHub issue

I’m trying to bump the jackson version number from 2.8.6 to 2.9.8 and it is just not working the way it is supposed to work.

It’s giving this error:

java.lang.NoSuchMethodError: com.fasterxml.jackson.core.JsonStreamContext.<init>(II)V

    at com.fasterxml.jackson.databind.util.TokenBufferReadContext.<init>(
    at com.fasterxml.jackson.databind.util.TokenBufferReadContext.createRootContext(
    at com.fasterxml.jackson.databind.util.TokenBuffer$Parser.<init>(
    at com.fasterxml.jackson.databind.util.TokenBuffer.asParser(
    at com.fasterxml.jackson.databind.util.TokenBuffer.asParser(
    at com.fasterxml.jackson.databind.ObjectMapper.valueToTree(
    at com.example.FooTest.testFilter(
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(
    at org.junit.internal.runners.statements.RunBefores.evaluate(
    at org.junit.runners.ParentRunner.runLeaf(
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(
    at org.junit.runners.ParentRunner$
    at org.junit.runners.ParentRunner$1.schedule(
    at org.junit.runners.ParentRunner.runChildren(
    at org.junit.runners.ParentRunner.access$000(
    at org.junit.runners.ParentRunner$2.evaluate(
    at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(
    at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(
    at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(
    at com.intellij.rt.execution.junit.JUnitStarter.main(

Don’t know why com.fasterxml.jackson.databind.ObjectMapper.valueToTree( is throwing the error. Did the implementation change?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

cowtowncodercommented, Mar 1, 2019

@raj206 You seem to be running different (incompatible) versions of jackson-core and jackson-databind. Ideally minor versions should be the same, but minor version of jackson-core MUST be at least that of jackson-databind.

So: make sure jackson-core also has version 2.9.8 (as well as jackson-annotations). Otherwise method that jackson-databind 2.9 has been complied against is not present in implementation.

cowtowncodercommented, Sep 12, 2019

@mihingo No that is definitely an error with incompatible versions of components. Sometimes that is due to simply wrong set of jars, sometimes more than one instance of specific component (with different versions).

But looking at pom.xml is not enough; with Maven, try mvn dependency:tree to see actually versions being used. Or when building a deployment packge, what jars are actually included in uber-jar, war or tar.

Read more comments on GitHub >

github_iconTop Results From Across the Web

com.fasterxml.jackson.core.JsonStreamContext - java
8 and it is just not working the way it is supposed to work. It's giving this error: java.lang.NoSuchMethodError: com.fasterxml.jackson.core.
Read more >
JsonStreamContext (Jackson-core 2.9.0 API) - FasterXML
Method that returns true if this context is an Array context; that is, content is being read from or written to a Json...
Read more >
Users are unable to publish changes through the Provisioning ...
NoSuchMethodError : com.fasterxml.jackson.core.JsonStreamContext.<init>(Lcom/fasterxml/jackson/core/JsonStreamContext;)V.
Read more >
ERROR: When trying open an SSH Session to vagrant
java.lang.NoSuchMethodError: com.fasterxml.jackson.core.JsonStreamContext.<init>(Lcom/fasterxml/jackson/core/JsonStreamContext;)V
Read more >
java.lang.NoSuchMethodError: com.fasterxml.jackson.core.JsonStreamContext.<init>(II)V. 위 오류는 jackson-core 버전과 jackson-bind 버전이 ...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found