Jackson 2.9.5, 2.9.6 incompatible with snakeyaml 1.20, 1.21
See original GitHub issueA 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:
- Created 5 years ago
- Reactions:1
- Comments:12 (1 by maintainers)
Top 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 >
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
FYI, snakeyaml 1.23 is released since 2018-08-27, cf.
https://search.maven.org/artifact/org.yaml/snakeyaml
or
https://repo1.maven.org/maven2/org/yaml/snakeyaml/1.23/
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!