Skip to content

java.lang.NoClassDefFoundError software/amazon/awssdk/services/s3/crt/S3CrtSdkHttpExecutionAttribute #4702

@ivanmgb

Description

@ivanmgb

Describe the bug

I downloaded the S3 Transfer manager dependency on Maven repo
<dependency> <groupId>software.amazon.awssdk</groupId> <artifactId>s3-transfer-manager</artifactId> <version>2.21.22</version> </dependency>

Setup my configuration and run my app and I got this error.
Running mvn dependency:tree, I noticed that one of the transitive dependency is software.amazon.awssdk:s3:jar:2.20.63

image

Instead of pulling version 2.21.22 as described under the compille dependencies section: https://mvnrepository.com/artifact/software.amazon.awssdk/s3-transfer-manager/2.21.22

The class S3CrtSdkHttpExecutionAttribute was introduced in https://javadoc.io/static/software.amazon.awssdk/s3/2.21.22/software/amazon/awssdk/services/s3/crt/package-summary.html

and is not in version 2.20.63
https://javadoc.io/static/software.amazon.awssdk/s3/2.20.63/software/amazon/awssdk/services/s3/crt/package-summary.html

Expected Behavior

It should pull the correct version based on the dependencies reported by Maven

Current Behavior

The dependency s3-transfer-manager version 2.21.22 pulled software.amazon.awssdk:s3 version 2.20.63

Reproduction Steps

Added the following in the pom.xml

   <dependency>
        <groupId>software.amazon.awssdk</groupId>
        <artifactId>s3-transfer-manager</artifactId>
        <version>2.21.22</version>
    </dependency>

    <dependency>
        <groupId>software.amazon.awssdk.crt</groupId>
        <artifactId>aws-crt</artifactId>
        <version>0.28.0</version>
    </dependency>

Then run mvn dependency:tree

Possible Solution

No response

Additional Information/Context

No response

AWS Java SDK version used

V2

JDK version used

OpenJDK Runtime Environment Zulu17.44+53-CA (build 17.0.8.1+1-LTS)

Operating System and version

Mac Ventura 13.5.2

Metadata

Metadata

Assignees

Labels

guidanceQuestion that needs advice or information.response-requestedWaiting on additional info and feedback. Will move to "closing-soon" in 10 days.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions