spring-cloud-aws

Spring Aws Kinesis Binder Acquiring and Releasing lock issues in Dynamo DB while consuming messages

蓝咒 提交于 2021-02-10 16:18:49
问题 Sometimes, when we are stopping the application abruptly exception occurs that unlocking has been failed. Then the same group will never gets the messages. Other groups are getting messages. I am using the aws kinesis binder snapshot version. This is the error, when application is stopped. 2018-07-19 22:21:21.371 ERROR 60981 --- [s-shard-locks-1] a.i.k.KinesisMessageDrivenChannelAdapter : Error during unlocking: DynamoDbLock [lockKey=aaaa:myStream:shardId-000000000000,lockedAt=2018-07-19@22

org.springframework.core.task.TaskRejectedException while listening for SQS queue?

妖精的绣舞 提交于 2021-02-07 19:40:22
问题 I create a basic workflow of consuming messages from SQS with @SqsListener . It works fine but I constantly get tons of similar messages: org.springframework.core.task.TaskRejectedException: Executor [java.util.concurrent.ThreadPoolExecutor@372b568[Running, pool size = 3, active threads = 3, queued tasks = 0, completed tasks = 0]] did not accept task: org.springframework.cloud.aws.messaging.listener.SimpleMessageListenerContainer$SignalExecutingRunnable@4c30c2f9 at org.springframework

Problem synchronizing 'bucket' to local directory with Spring Cloud DataFlow Streams

不打扰是莪最后的温柔 提交于 2021-01-29 09:28:41
问题 I'm following this Case Study, which is similar to mine where I want to receive thousand of files in a S3 bucket and launch the batch task which will consume them. But I'm getting: Problem occurred while synchronizing 'bucket' to local directory; nested exception is org.springframework.messaging.MessagingException: Failed to execute on session; nested exception is com.amazonaws.services.s3.model.AmazonS3Exception: Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied;

Spring Boot - Spring Cloud AWS : region not found

核能气质少年 提交于 2021-01-29 08:35:46
问题 I have a Spring Boot, Spring Cloud AWS service, written to receive messages from an AWS SQS queue. Everything has been working fine within my own personal AWS account services with region set to "us-east-1", but when switching over to AWS GovCloud region "us-gov-east-1", receiving error message "The region 'us-gov-east-1' is not a valid region". Tracked down the problem to be related to pulling a real old version of the aws-java-sdk-core-1.11.415 library that does not contain the new GovCloud

Error encountered after upgrading to Spring Cloud Hoxton.SR7 from Hoxton.SR4

五迷三道 提交于 2020-08-20 11:28:19
问题 Using Spring Cloud Hoxton.SR4 and Spring Boot 2.2.9.RELEASE libraries, my Spring Boot microservice starts up correctly and runs just fine when running against localstack in my local environment, but when I upgrade to Hoxton.SR7 , I get the stack trace below: com.amazonaws.SdkClientException: Failed to connect to service endpoint: at com.amazonaws.internal.EC2ResourceFetcher.doReadResource(EC2ResourceFetcher.java:100) at com.amazonaws.internal.InstanceMetadataServiceResourceFetcher.getToken

Listen message queue SQS with Spring Boot not works with standard config

喜你入骨 提交于 2020-04-17 07:29:09
问题 I'm unable to make works queue listener with Spring Boot and SQS (the message is sent and appear in SQS ui) The @MessageMapping or @SqsListener not works Java: 11 Spring Boot: 2.1.7 Dependencie: spring-cloud-aws-messaging This is my config @Configuration @EnableSqs public class SqsConfig { @Value("#{'${env.name:DEV}'}") private String envName; @Value("${cloud.aws.region.static}") private String region; @Value("${cloud.aws.credentials.access-key}") private String awsAccessKey; @Value("${cloud

Spring Cloud AWS Issue with setting manual acknowledge of SQS message

断了今生、忘了曾经 提交于 2020-04-10 11:54:08
问题 I'm trying to implement logic with manual deleting of AWS SQS message using spring-cloud-aws-messaging. This feature was implemented in scope of this ticket from the example in tests @SqsListener(value = "queueName", deletionPolicy = SqsMessageDeletionPolicy.NEVER) public void listen(SqsEventDTO message, Acknowledgment acknowledgment) { LOGGER.info("Received message {}", message.getFoo()); try { acknowledgment.acknowledge().get(); } catch (InterruptedException e) { LOGGER.error("Opps", e); }

SQSlistener not receiving messages

╄→尐↘猪︶ㄣ 提交于 2019-12-24 08:07:16
问题 I am able to send messages to SQS queue from my springboot but not able to receive using sqslistener annotation, can someone help? public void send(String message) { queueMessagingTemplate.convertAndSend("test-queue", MessageBuilder.withPayload(message).build()); } @SqsListener(value = "test-queue", deletionPolicy = SqsMessageDeletionPolicy.NEVER) public void receive(String message) { System.out.println("message: " + message); } I have verified send by goign to AWS console, i can see my

SQSlistener not receiving messages

雨燕双飞 提交于 2019-12-24 08:06:06
问题 I am able to send messages to SQS queue from my springboot but not able to receive using sqslistener annotation, can someone help? public void send(String message) { queueMessagingTemplate.convertAndSend("test-queue", MessageBuilder.withPayload(message).build()); } @SqsListener(value = "test-queue", deletionPolicy = SqsMessageDeletionPolicy.NEVER) public void receive(String message) { System.out.println("message: " + message); } I have verified send by goign to AWS console, i can see my

Disable Cloudformation in Spring Cloud AWS

一个人想着一个人 提交于 2019-12-19 13:02:47
问题 How can I disable the Cloudformation in a spring boot app that using spring cloud AWS? I keep getting this error when running my app on amazon: ... Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.aws.core.env.stack.config.StackResourceRegistryFactoryBean]: Factory method 'stackResourceRegistryFactoryBean' threw exception; nested exception is com.amazonaws.AmazonServiceException: Stack for i-b5ce9e32 does not exist (Service: