You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by "Bing-ok (via GitHub)" <gi...@apache.org> on 2023/11/15 06:27:18 UTC
[I] “NoSuchMethodErrors” due to multiple versions of com.fasterxml.jackson.core:jackson-databind (druid)
Bing-ok opened a new issue, #15378:
URL: https://github.com/apache/druid/issues/15378
Hi, there are multiple versions of **_com.fasterxml.jackson.core:jackson-databind_** in **_druid-server_**. As shown in the following dependency tree, according to Maven "nearest wins" strategy, only **_com.fasterxml.jackson.core:jackson-databind:2.10.5.1_** can be loaded, **_com.fasterxml.jackson.core:jackson-databind:2.9.9_** and **_com.fasterxml.jackson.core:jackson-databind:2.10.5_** will be shadowed.
However, several methods defined in shadowed version **_com.fasterxml.jackson.core:jackson-databind:2.9.9_** are referenced by client project via **_org.apache.druid:druid-processing:26.0.0_** but missing in the actually loaded version **_com.fasterxml.jackson.core:jackson-databind:2.10.5.1_**.
For instance, the following missing method(defined in **_com.fasterxml.jackson.core:jackson-databind:2.9.9_** and **_com.fasterxml.jackson.core:jackson-databind:2.10.5_**) are actually referenced by **_druid-server_**, which will introduce a runtime error(i.e., "NoSuchMethodError") into druid-server.
1. **_<com.fasterxml.jackson.databind.ser.std.ToStringSerializer: void serialize(java.lang.Object,com.fasterxml.jackson.core.JsonGenerator,com.fasterxml.jackson.databind.SerializerProvider)>_**
```
paths--
<org.apache.druid.jackson.DruidServiceSerializer: void serialize(org.apache.druid.discovery.DruidService,com.fasterxml.jackson.core.JsonGenerator,com.fasterxml.jackson.databind.SerializerProvider)> org.apache.druid:druid-server:26.0.0;
<com.fasterxml.jackson.databind.ser.std.ToStringSerializer: void serialize(java.lang.Object,com.fasterxml.jackson.core.JsonGenerator,com.fasterxml.jackson.databind.SerializerProvider)>
```
Suggested fixing solutions:
Change direct dependency com.fasterxml.jackson.core:jackson-databind from **_2.10.5.1_** to **_2.9.9_**. Because version **_2.9.9_** includes the above missing methods and is compatible with other versions of com.fasterxml.jackson.core:jackson-databind in the project.
Please let me know if you agree to this solution? I can submit a PR to fix it.
Thank you very much for your attention.
Best regards,
# Dependency tree --
```
[INFO] | | | \- commons-collections:commons-collections:jar:3.2.2:compile
[INFO] | | \- (org.apache.commons:commons-collections4:jar:4.2:compile - omitted for duplicate)
[INFO] | +- net.thisptr:jackson-jq:jar:0.0.10:compile
[INFO] | | +- org.jruby.joni:joni:jar:2.1.27:compile
[INFO] | | | \- org.jruby.jcodings:jcodings:jar:1.0.43:compile
[INFO] | | \- **(com.fasterxml.jackson.core:jackson-databind:jar:2.10.5.1:compile - version managed from 2.9.9; omitted for duplicate)**
[INFO] | +- com.jayway.jsonpath:json-path:jar:2.3.0:compile
[INFO] | | +- net.minidev:json-smart:jar:2.3:compile
[INFO] | | | \- net.minidev:accessors-smart:jar:1.2:compile
[INFO] | | | \- (org.ow2.asm:asm:jar:9.3:compile - version managed from 5.0.4; omitted for duplicate)
[INFO] | | \- (org.slf4j:slf4j-api:jar:1.7.36:compile - version managed from 1.7.25; omitted for duplicate)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
Re: [I] “NoSuchMethodErrors” due to multiple versions of com.fasterxml.jackson.core:jackson-databind (druid)
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #15378:
URL: https://github.com/apache/druid/issues/15378#issuecomment-2362468718
This issue has been closed due to lack of activity. If you think that
is incorrect, or the issue requires additional review, you can revive the issue at
any time.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
Re: [I] “NoSuchMethodErrors” due to multiple versions of com.fasterxml.jackson.core:jackson-databind (druid)
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #15378: “NoSuchMethodErrors” due to multiple versions of com.fasterxml.jackson.core:jackson-databind
URL: https://github.com/apache/druid/issues/15378
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
Re: [I] “NoSuchMethodErrors” due to multiple versions of com.fasterxml.jackson.core:jackson-databind (druid)
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #15378:
URL: https://github.com/apache/druid/issues/15378#issuecomment-2305953356
This issue has been marked as stale due to 280 days of inactivity.
It will be closed in 4 weeks if no further activity occurs. If this issue is still
relevant, please simply write any comment. Even if closed, you can still revive the
issue at any time or discuss it on the dev@druid.apache.org list.
Thank you for your contributions.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org