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.

Jackson 2.9.5, 2.9.6 incompatible with snakeyaml 1.20, 1.21

See original GitHub issue

A backwards-incompatible (with jackson 2.9.5) change was introduced in snakeyaml 1.20, so anyone trying to use the latest released versions of jackson and snakeyaml would run into a problem:

java.lang.NoSuchMethodError: org.yaml.snakeyaml.events.MappingStartEvent.<init>(Ljava/lang/String;Ljava/lang/String;ZLorg/yaml/snakeyaml/error/Mark;Lorg/yaml/snakeyaml/error/Mark;Ljava/lang/Boolean;)V

    at com.fasterxml.jackson.dataformat.yaml.YAMLGenerator.writeStartObject(YAMLGenerator.java:489)
    at com.fasterxml.jackson.core.base.GeneratorBase.writeStartObject(GeneratorBase.java:286)
    at com.fasterxml.jackson.databind.ser.std.MapSerializer.serialize(MapSerializer.java:626)
    at com.fasterxml.jackson.databind.ser.std.MapSerializer.serialize(MapSerializer.java:33)
    at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider._serialize(DefaultSerializerProvider.java:480)
    at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:319)
    at com.fasterxml.jackson.databind.ObjectMapper._configAndWriteValue(ObjectMapper.java:3893)
    at com.fasterxml.jackson.databind.ObjectMapper.writeValueAsString(ObjectMapper.java:3207)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
cthiebaudcommented, Aug 30, 2018
1reaction
ahgittincommented, Aug 15, 2018

I have opened https://bitbucket.org/asomov/snakeyaml/issues/412/restore-the-boolean-constructors-for to try to facilitate this. I’ve seen this error in other projects too. No fun!

Read more comments on GitHub >

github_iconTop Results From Across the Web

YAMLException (Jackson-dataformat-YAML 2.9.6 API)
Replacement for formerly shaded exception type from SnakeYAML; included in 2.8 solely for backwards compatibility: new code that relies on Jackson 2.8 and ......
Read more >
Apache Commons Configuration Release Notes
Bump optional dependency snakeyaml from 1.20 to 1.21. Fixes CONFIGURATION-706. ggregory. Update, Bump Jackson from 2.9.5 to 2.9.6. Fixes CONFIGURATION-705 ...
Read more >
How to resolve snakeyaml NoSuchMethodError: getStyle()
You need to update to SnakeYml 1.23, they fixed the incompatible API change introduced in 1.20. ... You can either roll back to...
Read more >
Open Source Used In ND-NODE v2.2.0.70-iso - Cisco
1.20 python-setuptools 47.1.0 ... 1.139 docker 17.12.0-ce-rc1.0.20201020191947-73dc6a680cdd+incompatible ... 1.599 go-restful 2.9.5+incompatible.
Read more >
Compare Packages Between Distributions - DistroWatch.com
xorg-server (21.1.5), 21.1.4, 1.20.11 ... ccolamd 2.9.6 ccollect 0.8 ccrypt 1.11 ... jackson-module-jakarta-xmlbind 2.13.4 jacksum 3.4.0 jacl 1.4.1
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