You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, there are multiple versions of com.fasterxml.jackson.core:jackson-core in bistoury-ui:v2.0.7. As shown in the following dependency tree, according to Maven "nearest wins" strategy, only com.fasterxml.jackson.core:jackson-core:2.9.2 can be loaded, com.fasterxml.jackson.core:jackson-core:2.5.3 will be shadowed.
However, several methods defined in shadowed version com.fasterxml.jackson.core:jackson-core:2.5.3 are referenced by client project via qunar.tc.bistoury:bistoury-metrics-prometheus:2.0.7, qunar.tc.bistoury:bistoury-ui-service-impl:2.0.7 and com.fasterxml.jackson.core:jackson-databind:2.9.2 but missing in the actually loaded version com.fasterxml.jackson.core:jackson-core:2.9.2.
For instance, the following missing method(defined in com.fasterxml.jackson.core:jackson-core:2.5.3) are actually referenced by bistoury-ui, which will introduce a runtime error(i.e., "NoSuchMethodError") into bistoury-ui.
com.fasterxml.jackson.core.type.TypeReference: void init () is invoked by bistoury-ui:v2.0.7 via the following path:
com.codahale.metrics.MetricRegistry: com.codahale.metrics.Timer timer(java.lang.String,com.codahale.metrics.MetricRegistry$MetricSupplier) is invoked by bistoury-ui:v2.0.7 via the following path:
Change direct dependency com.fasterxml.jackson.core:jackson-core from 2.9.2 to 2.5.3. Because version 2.5.3 includes the above missing methods and is compatible with other versions of com.fasterxml.jackson.core:jackson-core in the project.
Please let me know if the solution is useful? I can submit a PR to fix it.
Thank you very much for your attention.
Best regards,
Dependency tree --
[INFO] | | +- io.netty:netty-all:jar:4.1.41.Final:compile
[INFO] | | \- (org.slf4j:slf4j-api:jar:1.7.5:compile - version managed from 1.7.25; omitted for duplicate)
[INFO] | +- qunar.tc.bistoury:bistoury-common:jar:2.0.7:compile
[INFO] | | +- (com.google.guava:guava:jar:20.0:compile - version managed from 16.0.1; omitted for duplicate)
[INFO] | | +- joda-time:joda-time:jar:2.9:compile
[INFO] | | +- (com.fasterxml.jackson.core:jackson-core:jar:2.9.2:compile - version managed from 2.5.3; omitted for duplicate)
[INFO] | | +- (com.fasterxml.jackson.core:jackson-databind:jar:2.9.2:compile - version managed from 2.5.3; omitted for duplicate)
[INFO] | | +- (com.fasterxml.jackson.core:jackson-annotations:jar:2.9.2:compile - version managed from 2.9.0; omitted for duplicate)
[INFO] | | +- com.ning:async-http-client:jar:1.9.39:compile
[INFO] | | | +- (io.netty:netty:jar:3.10.5.Final:compile - version managed from 3.7.0.Final; omitted for duplicate)
[INFO] | | | \- (org.slf4j:slf4j-api:jar:1.7.5:compile - version managed from 1.7.12; omitted for duplicate)
The text was updated successfully, but these errors were encountered:
Bing-ok
changed the title
“NoSuchMethodErrors” due to multiple versions of io.dropwizard.metrics:metrics-core:jar
“NoSuchMethodErrors” due to multiple versions of com.fasterxml.jackson.core:jackson-databind:jar
Nov 14, 2023
Bing-ok
changed the title
“NoSuchMethodErrors” due to multiple versions of com.fasterxml.jackson.core:jackson-databind:jar
“NoSuchMethodErrors” due to multiple versions of com.fasterxml.jackson.core:jackson-core:jar
Nov 15, 2023
Issue description
Hi, there are multiple versions of com.fasterxml.jackson.core:jackson-core in bistoury-ui:v2.0.7. As shown in the following dependency tree, according to Maven "nearest wins" strategy, only com.fasterxml.jackson.core:jackson-core:2.9.2 can be loaded, com.fasterxml.jackson.core:jackson-core:2.5.3 will be shadowed.
However, several methods defined in shadowed version com.fasterxml.jackson.core:jackson-core:2.5.3 are referenced by client project via qunar.tc.bistoury:bistoury-metrics-prometheus:2.0.7, qunar.tc.bistoury:bistoury-ui-service-impl:2.0.7 and com.fasterxml.jackson.core:jackson-databind:2.9.2 but missing in the actually loaded version com.fasterxml.jackson.core:jackson-core:2.9.2.
For instance, the following missing method(defined in com.fasterxml.jackson.core:jackson-core:2.5.3) are actually referenced by bistoury-ui, which will introduce a runtime error(i.e., "NoSuchMethodError") into bistoury-ui.
Suggested fixing solutions:
Please let me know if the solution is useful? I can submit a PR to fix it.
Thank you very much for your attention.
Best regards,
Dependency tree --
The text was updated successfully, but these errors were encountered: