Skip to content
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

AWS SDK for Java 1.x deprecation warning loading AmazonS3OAuthStateService #1413

Closed
1 of 6 tasks
bruceadowns opened this issue Jan 8, 2025 · 2 comments
Closed
1 of 6 tasks
Labels
dependencies Pull requests that update a dependency file duplicate project:bolt
Milestone

Comments

@bruceadowns
Copy link

A deprecation warning is logged at startup when loading AmazonS3OAuthStateService. All AWS SDK for Java 1.x usage should be migrated to AWS SDK for Java 2.x.

Announcement:

The AWS SDK for Java 1.x entered maintenance mode starting July 31, 2024 and will reach end of support on December 31, 2025. For more information, see https://aws.amazon.com/blogs/developer/the-aws-sdk-for-java-1-x-is-in-maintenance-mode-effective-july-31-2024/.

Stack trace:

2025-01-07T21:37:18,288 WARN  [main] com.amazonaws.util.VersionInfoUtils.printDeprecationAnnouncement(VersionInfoUtils.java:85): The AWS SDK for Java 1.x entered maintenance mode starting July 31, 2024 and will reach end of support on December 31, 2025. For more information, see https://aws.amazon.com/blogs/developer/the-aws-sdk-for-java-1-x-is-in-maintenance-mode-effective-july-31-2024/
You can print where on the file system the AWS SDK for Java 1.x core runtime is located by setting the AWS_JAVA_V1_PRINT_LOCATION environment variable or aws.java.v1.printLocation system property to 'true'.
This message can be disabled by setting the AWS_JAVA_V1_DISABLE_DEPRECATION_ANNOUNCEMENT environment variable or aws.java.v1.disableDeprecationAnnouncement system property to 'true'.
The AWS SDK for Java 1.x is being used here:
at java.base/java.lang.Thread.getStackTrace(Thread.java:2451)
at com.amazonaws.util.VersionInfoUtils.printDeprecationAnnouncement(VersionInfoUtils.java:81)
at com.amazonaws.util.VersionInfoUtils.<clinit>(VersionInfoUtils.java:59)
at com.amazonaws.internal.EC2ResourceFetcher.<clinit>(EC2ResourceFetcher.java:44)
at com.amazonaws.auth.InstanceMetadataServiceCredentialsFetcher.<init>(InstanceMetadataServiceCredentialsFetcher.java:38)
at com.amazonaws.auth.InstanceProfileCredentialsProvider.<init>(InstanceProfileCredentialsProvider.java:111)
at com.amazonaws.auth.InstanceProfileCredentialsProvider.<init>(InstanceProfileCredentialsProvider.java:91)
at com.amazonaws.auth.InstanceProfileCredentialsProvider.<init>(InstanceProfileCredentialsProvider.java:75)
at com.amazonaws.auth.InstanceProfileCredentialsProvider.<clinit>(InstanceProfileCredentialsProvider.java:58)
at com.amazonaws.auth.EC2ContainerCredentialsProviderWrapper.initializeProvider(EC2ContainerCredentialsProviderWrapper.java:66)
at com.amazonaws.auth.EC2ContainerCredentialsProviderWrapper.<init>(EC2ContainerCredentialsProviderWrapper.java:55)
at com.amazonaws.auth.DefaultAWSCredentialsProviderChain.<init>(DefaultAWSCredentialsProviderChain.java:60)
at com.amazonaws.auth.DefaultAWSCredentialsProviderChain.<clinit>(DefaultAWSCredentialsProviderChain.java:54)
at com.slack.api.bolt.service.builtin.AmazonS3OAuthStateService.getCredentials(AmazonS3OAuthStateService.java:87)
at com.slack.api.bolt.service.builtin.AmazonS3OAuthStateService.lambda$initializer$0(AmazonS3OAuthStateService.java:36)
at com.slack.api.bolt.App.initialize(App.java:546)
at com.slack.api.bolt.App.start(App.java:559)
at com.slack.api.bolt.socket_mode.SocketModeApp.run(SocketModeApp.java:185)
at com.slack.api.bolt.socket_mode.SocketModeApp.startAsync(SocketModeApp.java:181)
...

Category (place an x in each of the [ ])

  • bolt (Bolt for Java)
  • bolt-{sub modules} (Bolt for Java - optional modules)
  • slack-api-client (Slack API Clients)
  • slack-api-model (Slack API Data Models)
  • slack-api-*-kotlin-extension (Kotlin Extensions for Slack API Clients)
  • slack-app-backend (The primitive layer of Bolt for Java)

Requirements

Please make sure if this topic is specific to this SDK. For general questions/issues about Slack API platform or its server-side, could you submit questions at https://my.slack.com/help/requests/new instead. 🙇

Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you agree to those rules.

@seratch seratch added project:bolt dependencies Pull requests that update a dependency file duplicate and removed untriaged labels Jan 8, 2025
@seratch seratch added this to the 1.45.0 milestone Jan 8, 2025
@seratch
Copy link
Member

seratch commented Jan 8, 2025

Hi @bruceadowns, thanks for writing in! We've migrated to v2 by this PR #1403 and the changes will be released soon. Once the new version is released (by the end of this week at latest), all you need to do is just to upgrade to the latest version.

@seratch seratch closed this as completed Jan 8, 2025
@bruceadowns
Copy link
Author

Hi @bruceadowns, thanks for writing in! We've migrated to v2 by this PR #1403 and the changes will be released soon.

Whoot! Great timing, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file duplicate project:bolt
Projects
None yet
Development

No branches or pull requests

2 participants