jackson-databind: Removal of PASCAL_CASE_TO_CAMEL_CASE creates compatibility problems
Describe the bug
The removal of com.fasterxml.jackson.databind.PropertyNamingStrategy#PASCAL_CASE_TO_CAMEL_CASE creates problems within AWS environments. The field is referenced by com.amazonaws.util.EC2MetadataUtils (transitive reference in com.amazonaws:aws-java-sdk-core:jar:1.11.883) and raise a NoSuchFieldError if overwriting the Jackson environment of AWS com.amazonaws:aws-java-sdk-core (which is Jackson 2.6.7).
Version information 2.12.0-rc1
To Reproduce
Call com.amazonaws.services.sqs.AmazonSQSClientBuilder#defaultClient() (of package com.amazonaws:aws-java-sdk-sqs:jar:1.11.883) with com.fasterxml.jackson.core:jackson-databind:jar:2.12.0-rc1.
Expected behavior There is no NoSuchFieldError in combination of com.amazonaws:aws-java-sdk-core and Jackson.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 2
- Comments: 19 (8 by maintainers)
Commits related to this issue
- Bump Scanamo This is required because v1.0.0-M15 depends on software.amazon.awssdk:dynamodb:2.15.78 which depends on jackson-databind:2.10.5.1, which is binary incompatible with jackson-databind:2.16... — committed to guardian/facia-tool by davidfurey 3 years ago
- Bump Scanamo This is required because v1.0.0-M15 depends on software.amazon.awssdk:dynamodb:2.15.78 which depends on jackson-databind:2.10.5.1, which is binary incompatible with jackson-databind:2.16... — committed to guardian/facia-tool by davidfurey 3 years ago
- Bump Scanamo This is required because v1.0.0-M15 depends on software.amazon.awssdk:dynamodb:2.15.78 which depends on jackson-databind:2.10.5.1, which is binary incompatible with jackson-databind:2.16... — committed to guardian/facia-tool by davidfurey 3 years ago
- Bump Scanamo This is required because v1.0.0-M15 depends on software.amazon.awssdk:dynamodb:2.15.78 which depends on jackson-databind:2.10.5.1, which is binary incompatible with jackson-databind:2.16... — committed to guardian/facia-tool by davidfurey 3 years ago
I updated the software version of software.amazon.awssdk.sqs to 2.30.32, but it’s not working with LocalStack. I’ve tried the following LocalStack versions: localstack/localstack:2.3.0-arm64, localstack/localstack:1.2.0-arm64, localstack/localstack:3.0.2-arm64, and localstack/localstack:latest-arm64, but none of them work with this updated SDK version. However, everything works fine when I use localstack/localstack:1.2.0-arm64 and awsSdkVersion = ‘2.13.13’ which has the above mentioned issue.
Locally, it’s failing, but it works perfectly on Jenkins when I use awsSdkVersion = ‘2.30.32’ and localstack/localstack:3.5.0. Can someone help me figure out why this is happening? cc: @hohwille @cowtowncoder
https://mvnrepository.com/artifact/software.amazon.awssdk/s3/2.25.17 - I see that they made 2.25.18 the same day. I’ll try that too. Thanks
I am having the same issue with jackson v 2.17.0 and aws sdk 2.25.17 (latest as today)
The reason I can’t update AWS SDK versions is because I am using the Camel AWS integration and cannot upgrade that at the moment.
Better for Jackson to preserve the API for minor library upgrades, as per Semantic Versioning conventions. When Jackson moves to 3.x, a major version change, then these kinds of breaking changes can be expected.
https://semver.org