Closed grigorigoldman closed 9 years ago
Are you setting any non-String attributes on the message? (I suspect that might happen in queueMessagingTemplate.convertAndSend
) Currently only String-typed attributes are supported
Hi Adam, I am passing JSON message and facing the same issue. Is there any plan in near future to provide support for JSON type ?
I had the same issue. Spring Cloud uses spring-messaging which automatically adds UUID (string) and timestamp(long) to a message's headers. And those headers will be transformed into SQS message attributes. Timestamp causes this issue. As a workaround you can override doSend method in QueueMessagingTemplate and remove timestamp header from the message.
I think adding support for all message attribute types shouldn't be too hard, if somebody would like to attempt a PR :)
It wasn't ) I am currently working on it. Just need to write some more tests for SQSStrict mode to check that number attribute's value is inside -10^128 .. 10^126. So expect PR really soon )
Awesome! :)
Merged & released 0.8.10 - thanks!
I'm trying to use an embedded elasticmq in my Spring Boot/Spring Cloud application but getting exceptions when sending a message:
I originally thought that it was Spring incorrectly creating the message, which elasticMq was then failing to process, however, when running the same code against a real SQS service, both sending and receiving messages works.
My project code looks like this: