Closed Bing-ok closed 3 years ago
Hey, thanks for reaching out and reporting this. We recently upgraded our dependency on Jackson's libraries to 2.10.4 to address security concerns with the older 2.9.x branch. This seems to have an unforeseen side effect of breaking compatibility with methods the AWS SDK (v1) is using since that is still directly depending on Jackson 2.6.
Downgrading our dependency is out of the question due to the aforementioned security concerns. I think the best long term solution here is to bump our dependency on the AWS SDK for Java to the newer v2 branch which was released to GA last year. This depends on the current version of Jackson which should address the inherent incompatibilities. However I am a bit concerned about rolling that change directly to the existing SDK dependency tree since I am sure some folks transitively depend on the AWS SDK through us. I'll have to do some digging into a good strategy for rolling this out non intrusively.
Closing this issue after 27 days of inactivity.
I am sorry, I didnt see the action item that @breedloj had mentioned. Reopening.
Thanks for your support! I‘m also considering a better solution @breedloj @sattpat
The PR I opened last week (referenced above) is designed to address this issue by upgrading our AWS SDK dependency to the 2.x branch which depends on the same version of Jackson (2.10.x) as us. Would love to get your thoughts!
I think this is a good solution. com.fasterxml.jackson.core:jackson-core:2.6.7 won't be transitively introduced after upgrading AWS SDK dependency to the 2.x.
Hi, there are multiple versions of com.fasterxml.jackson.core:jackson-core in alexa-skills-kit-sdk-for-java-2.30.1(aws-sdk module). As shown in the following dependency tree, according to Maven's “nearest wins” strategy, only com.fasterxml.jackson.core:jackson-core:2.10.4 can be loaded, and com.fasterxml.jackson.core:jackson-core:2.6.7 will be shadowed.
As com.fasterxml.jackson.core:jackson-core:2.6.7 has not been loaded during the building process, several methods are missing. However, the missing methods: 1. com.fasterxml.jackson.core.base.GeneratorBase: com.fasterxml.jackson.core.json.JsonWriteContext getOutputContext()
Check for details of invocation
The above missing methods are actually referenced by alexa-skills-kit-sdk-for-java-2.30.1(aws-sdk module), which will cause “NoSuchMethodErrors” at runtime.
Suggested fixing solutions:
Please let me know which solution do you prefer? I can submit a PR to fix it.
Thank you very much for your attention. Best regards,
Dependency tree----
click for details