Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Warning "'java.util.UUID' cannot be sent as message attribute ..." on any request sent to SQS channel #86

Closed
frederikheremans opened this issue Jul 1, 2015 · 3 comments
Assignees
Labels
type: bug A general bug
Milestone

Comments

@frederikheremans
Copy link

When sending a messages using the AWS QueueMessagingTemplate, a warning is logged every time:

WARN  o.s.c.a.m.core.QueueMessageChannel - Message header with name 'id' and type 'java.util.UUID' cannot be sent as message attribute because it is not supported by SQS.

Logged from:
org.springframework.cloud.aws.messaging.core.QueueMessageChannel#getMessageAttributes

The issue is that the MessageHeaders always includes an id header of type UUID. I can do some magic before the Message actually reaches this point of the code, but there is no way of creating MessageHeaders without an ID.

Changing log level works, and not having the generated ID as part of the SQS message attributes is fine - but it would make sense to ignore the ID header and not log.

@CyborgMaster
Copy link

I have this same problem. I seems like spring cloud aws should be responsible for making sure any headers generated should match what is sent to SQS without throwing warnings.

@aemruli aemruli added the type: bug A general bug label Aug 8, 2015
@aemruli aemruli added this to the 1.0.3 milestone Aug 8, 2015
@CyborgMaster
Copy link

Awesome thanks! Where should I look to monitor for an official release to maven central?

@apryce
Copy link

apryce commented Jul 28, 2016

--We are still seeing this in 1.0.4.RELEASE. Was there maybe a regression?--
My issue is coming out of a similar class: org.springframework.cloud.aws.messaging.core.TopicMessageChannel

maciejwalkowiak pushed a commit to maciejwalkowiak/spring-cloud-aws that referenced this issue Oct 15, 2020
maciejwalkowiak pushed a commit to maciejwalkowiak/spring-cloud-aws that referenced this issue Oct 15, 2020
maciejwalkowiak pushed a commit to maciejwalkowiak/spring-cloud-aws that referenced this issue Oct 15, 2020
juho9000 pushed a commit to juho9000/spring-cloud-aws that referenced this issue Apr 29, 2021
…SQS ID header to avoid a conversion warning
juho9000 pushed a commit to juho9000/spring-cloud-aws that referenced this issue Apr 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug A general bug
Development

No branches or pull requests

5 participants