Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request to update jackson-databind library to the latest 2.9.x #5775

Closed
deepakmohanakrishnan07 opened this issue Mar 15, 2019 · 3 comments
Closed

Comments

@deepakmohanakrishnan07
Copy link

Request to update jackson-databind library to the latest 2.9.x

Expected Behavior

I am trying to build a plugin which requires 2.9.x version of jackson-databind. The plugin tests works independently. But when I install it into graylog 3.x, it fails with the follwing error message:

Caused by: com.fasterxml.jackson.databind.JsonMappingException: Scala module 2.9.6 requires Jackson Databind version >= 2.9.0 and < 2.10.0
graylog_1        | 	at com.fasterxml.jackson.module.scala.JacksonModule$class.setupModule(JacksonModule.scala:61)
graylog_1        | 	at com.fasterxml.jackson.module.scala.DefaultScalaModule.setupModule(DefaultScalaModule.scala:18)

Possible Solution

Upgrade jackson-databind to 2.9.x

Context

The plugin I am building depends on jackson-databind 2.9.x version transitively. But graylog still uses the older version of it: 2.8.11.3. This version mismatch causing a runtime error when the plugin is being loaded.

Your Environment

  • Graylog Version: 3.0.0
  • Elasticsearch Version: 6.5.1
  • MongoDB Version: 3.x
  • Operating System: Centos
  • Browser version: Chrome/Safari
@kroepke
Copy link
Member

kroepke commented Mar 18, 2019

I vaguely remember that there were issues with the update, but I can't recall the details anymore.
At the moment I can't promise a target date for updating this dependency.

Can you maybe shade your dependency in the plugin to allow making progress?

@deepakmohanakrishnan07
Copy link
Author

I tried using the 2.9.x in the plugin. But when installed into Graylog, somehow the class loaders choosing the class from older libraries. I think there are some setting to choose a dedicated class loader for plugin. Should I try go in that direction?

@bernd
Copy link
Member

bernd commented Nov 15, 2020

We updated to Jackson 2.9.10 in the meantime.

@bernd bernd closed this as completed Nov 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants