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

Getting when I use SqsListener in the code #2

Open
mdfazuluddin opened this issue Mar 2, 2020 · 1 comment
Open

Getting when I use SqsListener in the code #2

mdfazuluddin opened this issue Mar 2, 2020 · 1 comment

Comments

@mdfazuluddin
Copy link

I am getting following error when I use SqsListener in the code.

2020-03-02 12:48:15.373 ERROR 16736 --- [ main] o.s.boot.SpringApplication : Application run failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'simpleMessageListenerContainer' defined in class path resource [org/springframework/cloud/aws/messaging/config/annotation/SqsConfiguration.class]: Invocation of init method failed; nested exception is com.amazonaws.SdkClientException: Unable to load AWS credentials from any provider in the chain: [com.amazonaws.auth.EC2ContainerCredentialsProviderWrapper@523d6bdb: Unable to load credentials from service endpoint, com.amazonaws.auth.profile.ProfileCredentialsProvider@58496c97: profile file cannot be null]

please suggest the fix.

@ashishrathee1712
Copy link

In config file, above this function

public AmazonSQSAsync amazonSQSAsync()

Add @primary
@bean annotations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants