io.vertx.core.json.DecodeException: Mapping java.util.Map is not available without Jackson Databind on the classpath

2,316 views
Skip to first unread message

manjun...@gmail.com

unread,
Apr 2, 2021, 6:08:03 AM4/2/21
to vert.x
Hi,

After migrating to vertx 4.0.3 I am getting the below error even after adding the jackson-databind dependency entry in pom.xml. Please help

io.vertx.core.json.DecodeException: Mapping java.util.Map  is not available without Jackson Databind on the classpath
at io.vertx.core.json.jackson.JacksonCodec.fromValue(JacksonCodec.java:83)
at io.vertx.core.json.JsonObject.mapFrom(JsonObject.java:107)
at com.fe.entity.BaseDataEntity.toJson(BaseDataEntity.java:16)

Thanks,
Manjunath

JEREMY FLORTE

unread,
Apr 2, 2021, 6:54:06 AM4/2/21
to vert.x
Hi,

Same issue when using when using  jackson dependencies versionned 2.12.X. I did not investigate further but it works fine with versions 2.11.4 (jacskon core and databind) and vertx 4+.
'hope it helps.

Regards,

Jérémy

hantsy bai

unread,
Apr 2, 2021, 7:01:03 AM4/2/21
to ve...@googlegroups.com
I think there are some breaking changes introduced in Jackson 2.12, lots of framework/deps will be problematic when upgrading to  2.12.

Hantsy Bai

Self-employed consultant, fullstack developer, agile coach

GitHub: https://github.com/hantsy

Twitter: https://twitter.com/@hantsy

Medium: https://medium.com/@hantsy


--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/ee94686b-d650-4496-824d-922ec22f2835n%40googlegroups.com.

manjun...@gmail.com

unread,
Apr 2, 2021, 8:33:43 AM4/2/21
to vert.x
Hi Jeremy/Hantsy,

Thanks for your response. I just got it working with jackson-databind 2.12.2. 

I just changed the order of my dependency in pom.xml. I moved  jackson-databind before vertx-core and everything went perfect. This does not seems right.
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.12.2</version>
</dependency>
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-core</artifactId>
<version>4.0.3</version>
</dependency>

Reply all
Reply to author
Forward
0 new messages