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
Got exception when run test and run application when provide S3EncryptionClient with kms
Caused by: java.lang.NoClassDefFoundError: software/amazon/awssdk/services/kms/KmsClient
at software.amazon.encryption.s3.S3EncryptionClient$Builder.build(S3EncryptionClient.java:1142)
The root cause of the problem is that kmsClient class comes from different dependencies, while other type of security key is in the same package of the SDK.
How to reproduce:
Add the dependency implementation("software.amazon.encryption.s3:amazon-s3-encryption-client-java:3.3.0")
hieuwu
changed the title
Got java.lang.NoClassDefFoundError: KmsClient at Run Time when set up S3EncryptionClient
Got java.lang.NoClassDefFoundError: KmsClient when set up S3EncryptionClient
Oct 31, 2024
Security issue notifications
N/A
Problem:
Got exception when run test and run application when provide S3EncryptionClient with kms
Caused by: java.lang.NoClassDefFoundError: software/amazon/awssdk/services/kms/KmsClient at software.amazon.encryption.s3.S3EncryptionClient$Builder.build(S3EncryptionClient.java:1142)
The root cause of the problem is that kmsClient class comes from different dependencies, while other type of security key is in the same package of the SDK.
How to reproduce:
implementation("software.amazon.encryption.s3:amazon-s3-encryption-client-java:3.3.0")
./gradlew startBootRun
or./gradlew runTest
The exception is throw when the application actually runs.
Solution:
KmsClient
class when kmsKeyId is set. This would help developer easier to troubleshoot the problem & take proper actionOut of scope:
Is there anything the solution will intentionally NOT address?
The text was updated successfully, but these errors were encountered: