JMS sendmessage to SQS

129 views
Skip to first unread message

Karthik Nathan

unread,
Jul 19, 2021, 5:14:43 PM7/19/21
to Gatling User Group
Hello,

I have been following the below article for load testing with AWS SQS:

The example uses the textMessage method for sending a message. For my use case, I will need to send a nested map to SQS which will then be taken by an application. I tried using the mapMessage method but it seems to fail with:
17:08:19.253 [GatlingSystem-akka.actor.default-dispatcher-9][ERROR][Action.scala:71] i.g.j.a.Send - 'jmsSend-2' crashed with 'j.j.JMSException: Unsupported Method', forwarding to the next one

I even tried sending the following:
mapMessage("foo" -> "bar"). That failed as well. Any help would be highly appreciated!
gatling version: 3.0.3

Stéphane LANDELLE

unread,
Jul 19, 2021, 5:17:00 PM7/19/21
to gat...@googlegroups.com
First thing first, Gatling 3.0.3 is very old.
Please upgrade to a modern maintained version (latest is 3.6.1) so people can try to help you.

--

Stéphane Landelle

Chief Technical Officer

   

slan...@gatling.io
gatling.io
   
facebook twitter linkedin 


--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gatling/97bb5a10-7e5b-4b8e-84e4-0e0e4ef819edn%40googlegroups.com.

Karthik Nathan

unread,
Jul 19, 2021, 5:30:22 PM7/19/21
to Gatling User Group
Thanks for the quick reply. I checked the maven repo that was linked below:


Seems like the latest is 3.1.2. I did update to that but I still run into the issue.

Thanks,
Karthik

Karthik Nathan

unread,
Jul 19, 2021, 5:30:23 PM7/19/21
to Gatling User Group
Thanks for getting back to me! I did take a look at the maven repo and it seems 3.1.2 is the latest over there.
I did upgrade to that but I still run into this issue.

Thanks,
Karthik

On Monday, July 19, 2021 at 5:17:00 PM UTC-4 Stéphane Landelle wrote:

Stéphane LANDELLE

unread,
Jul 19, 2021, 5:31:27 PM7/19/21
to gat...@googlegroups.com
Versions of the maven plugin and of Gatling itself are not related.

--

Stéphane Landelle

Chief Technical Officer

   

slan...@gatling.io
gatling.io
   
facebook twitter linkedin 

Stéphane LANDELLE

unread,
Jul 19, 2021, 5:32:38 PM7/19/21
to gat...@googlegroups.com
Then, it simply seems the SQS JMS adapter doesn't support Map messages.

--

Stéphane Landelle

Chief Technical Officer

   

slan...@gatling.io
gatling.io
   
facebook twitter linkedin 

Karthik Nathan

unread,
Jul 20, 2021, 1:55:35 AM7/20/21
to Gatling User Group
Thanks for getting back to me Stephane! I do see that on the documentation for jms on gatling, it does mention that mapMessage is supported. 
Also, in the what's new section of 3.1, there is section that mentions added support for mapMessage.

So, just to clarify, does SQS JMS Adapter not support mapMessages then?

Thanks,
Karthik

Stéphane LANDELLE

unread,
Jul 20, 2021, 1:58:04 AM7/20/21
to gat...@googlegroups.com
https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/supported-implementations.html

Supported message types

  • ByteMessage

  • ObjectMessage

  • TextMessage

=> No MapMessage


--

Stéphane Landelle

Chief Technical Officer

   

slan...@gatling.io
gatling.io
   
facebook twitter linkedin 

Reply all
Reply to author
Forward
0 new messages