/Tag: spring

Spring AWS SQS Queue Problem QueueDoesNotExistException

I have been working building a Spring Boot application running at AWS. Today I was working on setting it up to receive SQS messages. Like many things in Spring Boot, it is remarkably simple. Just create a method with the @SQSListener annotation like this:

public void queueListener(String message, @Header(“SenderId”) String senderId) {
// Do stuff…

In all the documentation I read, the “queue-name” was a short name, like the Name of the Queue. However, when I used my Queue’s name I got the following error:

Ignoring queue with name ‘AGEventQueue’: The queue does not exist.; nested exception is com.amazonaws.services.sqs.model.QueueDoesNotExistException: The specified queue does not exist for this wsdl version. (Service: AmazonSQS; Status Code: 400; Error Code: AWS.SimpleQueueService.NonExistentQueue; Request ID:XXXXXX

The fix is to use the Queue’s URL instead of the name. None of the documentation I was reading pointed that out, so I’m writing it here!

Spring is Upon Us

I took my motorcycle for the first ride of the season today.  Took a little coaxing to get her started, but then it was just great.  Nice day for a ride, the bike was running well, traffic was smooth, I couldn’t ask for more.  I just did a short ride, to the library and back, as I like to ease into the season.  The most dangerous ride is always the first of the season.  You’re rusty, your bike may have something loose, or low tires, or who knows what.