-
Notifications
You must be signed in to change notification settings - Fork 866
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
Seeing java.lang.NoSuchMethodError while initiliazing AwsCredentialsProviderChain #4778
Comments
A fix is in the works, see #4777. |
@debora-ito when will the sdk release with this fix be available? |
@debora-ito I see the fix has been merged in master but it I guess it will be released tomorrow. How can we create the big bundle jar locally such that we can test if the fix works for us? can you please share the maven command? |
Sorry I missed the questions here. The fix in #4777 was released in version |
|
Thanks @debora-ito . Yes, we have upgraded to 2.21.46.
As per our debugging, we have identified that In 2.21.40 we only have software/amazon/awssdk/thirdparty
but 2.21.46 also have unshaded org/slf4j:
Do you think anything has changed after 2.20.40 which could cause this? Thanks |
Working on fixing this, you're right that those unshaded classes should not be present in the JAR. |
Will you be able to give a release with this fix today? |
@shwethags Our release has already finished for today unfortunately. You can track the change in #4797. |
The fix #4797 was released as part of version Will keep this issue open a little longer, let us know if there's any other issue with the bundle jar. |
Great. We'll post updates in the other issues. |
|
Describe the bug
Full stack trace.
Caused by: java.lang.NoSuchMethodError: software.amazon.awssdk.thirdparty.org.slf4j.impl.StaticLoggerBinder.getLoggerFactoryClassStr()Ljava/lang/String; at software.amazon.awssdk.thirdparty.org.slf4j.LoggerFactory.reportActualBinding(LoggerFactory.java:349) ~[bundle-2.21.41.jar:?] at software.amazon.awssdk.thirdparty.org.slf4j.LoggerFactory.bind(LoggerFactory.java:152) ~[bundle-2.21.41.jar:?] at software.amazon.awssdk.thirdparty.org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:124) ~[bundle-2.21.41.jar:?] at software.amazon.awssdk.thirdparty.org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:417) ~[bundle-2.21.41.jar:?] at software.amazon.awssdk.thirdparty.org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:362) ~[bundle-2.21.41.jar:?] at software.amazon.awssdk.thirdparty.org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:388) ~[bundle-2.21.41.jar:?] at software.amazon.awssdk.utils.Logger.loggerFor(Logger.java:221) ~[bundle-2.21.41.jar:?] at software.amazon.awssdk.auth.credentials.AwsCredentialsProviderChain.<clinit>(AwsCredentialsProviderChain.java:56) ~[bundle-2.21.41.jar:?]
Expected Behavior
Expected it to work.
Current Behavior
Not working. Getting above error.
Reproduction Steps
Unable to reproduce this locally. This is not working in one of our newly created clusters.
Possible Solution
https://github.com/aws/aws-sdk-java-v2/blob/2.21.41/bundle-logging-bridge/src/main[…]amazon/awssdk/thirdparty/org/slf4j/impl/StaticLoggerBinder.java We have this newly added class which doesn't contain this method
but it is present in the actual slf4j implementation.
https://github.com/qos-ch/slf4j/blob/v_1.7.30/slf4j-api/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
Additional Information/Context
No response
AWS Java SDK version used
2.21.41
JDK version used
OpenJDK Runtime Environment (build 1.8.0_392-b08)
Operating System and version
EC2 linux VM
The text was updated successfully, but these errors were encountered: