Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ivanmgb opened this issue Nov 15, 2023 · 1 comment
Assignees
Labels
guidance Question that needs advice or information. response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 10 days.

Comments

@ivanmgb
Copy link

ivanmgb commented Nov 15, 2023

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

@ivanmgb ivanmgb added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Nov 15, 2023
@debora-ito
Copy link
Member

debora-ito commented Nov 16, 2023

@ivanmgb can you share your full pom.xml?
My guess is that some other dependency in your pom is pulling in s3 2.20.63

I'll move this to Github Discussion, since it's a guidance question.

@debora-ito debora-ito added response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 10 days. guidance Question that needs advice or information. and removed needs-triage This issue or PR still needs to be triaged. bug This issue is a bug. labels Nov 16, 2023
@debora-ito debora-ito self-assigned this Nov 16, 2023
@aws aws locked and limited conversation to collaborators Nov 16, 2023
@debora-ito debora-ito converted this issue into discussion #4704 Nov 16, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
guidance Question that needs advice or information. response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 10 days.
Projects
None yet
Development

No branches or pull requests

2 participants