JMS Publisher and Subscriber are failing when running from Taurus container

55 views
Skip to first unread message

Ioan Lichi

unread,
Apr 24, 2024, 1:43:30 PM4/24/24
to codename-taurus
Hi,

I have built a  JMeter  test that uses JMS Publisher and JMS Subscriber, and they work fine when running locally from JMeter.

Now I try to run the same test with Taurus docker image but it fails with the error: javax.naming.NameNotFoundException: ConnectionFactory  
More specifically:
2024-04-24 14:40:31,918 ERROR o.a.j.p.j.s.SubscriberSampler: Could not initialise client
javax.naming.NameNotFoundException: ConnectionFactory
at org.apache.qpid.jms.jndi.ReadOnlyContext.lookup(ReadOnlyContext.java:229) ~[qpid-jms-client-1.11.0.jar:?]
at javax.naming.InitialContext.lookup(InitialContext.java:409) ~[?:?]
at org.apache.jmeter.protocol.jms.Utils.getConnection(Utils.java:200) ~[ApacheJMeter_jms.jar:5.6.2]
at org.apache.jmeter.protocol.jms.client.ReceiveSubscriber.<init>(ReceiveSubscriber.java:232) ~[ApacheJMeter_jms.jar:5.6.2]
at org.apache.jmeter.protocol.jms.client.ReceiveSubscriber.<init>(ReceiveSubscriber.java:114) ~[ApacheJMeter_jms.jar:5.6.2]
at org.apache.jmeter.protocol.jms.sampler.SubscriberSampler.initReceiveClient(SubscriberSampler.java:131) ~[ApacheJMeter_jms.jar:5.6.2]
at org.apache.jmeter.protocol.jms.sampler.SubscriberSampler.initClient(SubscriberSampler.java:345) [ApacheJMeter_jms.jar:5.6.2]
at org.apache.jmeter.protocol.jms.sampler.SubscriberSampler.threadStarted(SubscriberSampler.java:337) [ApacheJMeter_jms.jar:5.6.2]
at org.apache.jmeter.protocol.jms.sampler.SubscriberSampler.threadStarted(SubscriberSampler.java:366) [ApacheJMeter_jms.jar:5.6.2]
at org.apache.jmeter.protocol.jms.sampler.SubscriberSampler.sample(SubscriberSampler.java:146) [ApacheJMeter_jms.jar:5.6.2]
at org.apache.jmeter.protocol.jms.sampler.BaseJMSSampler.sample(BaseJMSSampler.java:98) [ApacheJMeter_jms.jar:5.6.2]
at org.apache.jmeter.threads.JMeterThread.doSampling(JMeterThread.java:651) [ApacheJMeter_core.jar:5.6.2]
at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:570) [ApacheJMeter_core.jar:5.6.2]
at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:501) [ApacheJMeter_core.jar:5.6.2]
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:268) [ApacheJMeter_core.jar:5.6.2]
at java.lang.Thread.run(Thread.java:829) [?:?]

In Taurus yml file I am pointing to the same JMeter instance as the one used locally since it sits in a share accessible from both places.

My Subscriber looks like in the attached picture and it is very similar with the Publisher, and both use qpid client.

Can anyone have a look, and hel me debug/fix this?

Thank youJMS Subscriber Config.png






DT

unread,
Apr 25, 2024, 2:04:44 AM4/25/24
to codename-taurus
In its current form your question cannot be comprehensively answered, most probably you're not using the JMeter instance containing necessary .jar files


JMeter includes the JMS API jar, but does not include a JMS client implementation. If you want to run JMS tests, you will need to download the appropriate jars from the JMS provider.

So make sure to:

  1. Mount your JMeter installation containing JMS .jars to the container
  2. Inform Taurus to use the mounted JMeter instead of downloading a brand new one
You can also mount Taurus artifacts dir and pass "-v" command line argument to the end of your docker run command, this way you will see what's going on in bzt.log file.

Example command:

docker run -it --rm -v /path/to/folder/with/your/scenarios:/bzt-configs -v /path/to/Taurus/logs:/tmp/artifacts blazemeter/taurus -v /path/to/your/jmeter:/tmp/jmeter your-scenario-name.yml -v

and make sure that your Taurus YAML contains the following stanza:

modules:
  jmeter:
    path: /tmp/jmeter

More information: The Complete Taurus Course

Ioan Lichi

unread,
Apr 26, 2024, 5:14:22 AM4/26/24
to codename-taurus
Hi,

Thank you very much for your reply.

The docker command I am using is:

docker run --rm -v /path/to/folder/with/your/scenarios  :/bzt-configs -v /path/to/Taurus/logs:/tmp/artifacts -v /path/to/share:/tmp blazemeter/taurus:1.16.30 /bzt-configs/jmeter_jms_test.yml

And in jmeter_jms_test.yml I have:
modules:
  jmeter:
    path: /tmp/tools/eup-apache-jmeter-5.6.2/bin/jmeter.sh


As I said, I am using the same jmeter to run tests both locally on my windows workstation and remote on a linux server.

Best Regards,
Ioan

DT

unread,
Apr 26, 2024, 10:20:12 AM4/26/24
to codename-taurus
  1. Change path to /tmp/tools/eup-apache-jmeter-5.6.2
  2. It's recommended to use the latest version of JMeter so consider upgrading to 5.6.3
  3. If you would read my recommendation on enabling verbose output for Taurus you could detect this issue yourself

globalpsyche...@gmail.com

unread,
May 4, 2024, 7:42:37 PM5/4/24
to codename-taurus
Email: globalpsyche...@gmail.com

Hello fam make you choice and get best ever.


https://globalpsychedelicsonline.com/product/cap-up-magic-mushroom-chocolate-bars-4g/
https://globalpsychedelicsonline.com/product/psilonauts-psilocybin-chocolate-bar/
https://globalpsychedelicsonline.com/product/joe-rogan-mushroom-gummies/
https://globalpsychedelicsonline.com/product/cap-up-magic-mushroom-chocolate-bars-4g/
https://globalpsychedelicsonline.com/product/buy-mastermind-funghi-bar-3000mg/
https://globalpsychedelicsonline.com/product/thc-lean-1000mg-syrup/
https://globalpsychedelicsonline.com/product/buy-pe6-mushrooms/
https://globalpsychedelicsonline.com/product/buy-golden-teacher-mushrooms/
https://globalpsychedelicsonline.com/product/buy-psilocybin-pills-online/
https://globalpsychedelicsonline.com/product/buy-b-magic-mushrooms/
https://globalpsychedelicsonline.com/product/cbd-and-delta-8-mix-gummies/
https://globalpsychedelicsonline.com/product/shrooms-delta-8-thc-gummies/
https://globalpsychedelicsonline.com/product/300mg-shroom-microdose/
https://globalpsychedelicsonline.com/product/4-aco-dmt/
https://globalpsychedelicsonline.com/product/jet-fuel-sativa/
https://globalpsychedelicsonline.com/product/buy-proscaline-microdose/
https://globalpsychedelicsonline.com/product/buy-pure-dimethyltryptamine/
https://globalpsychedelicsonline.com/product/cbd-shroom-microdose/
https://globalpsychedelicsonline.com/product/yum-yum-gummies-full-spectrum/
https://globalpsychedelicsonline.com/product/albino-penis-envy-mushrooms/
https://globalpsychedelicsonline.com/product/zen-anxiety-pills/
https://globalpsychedelicsonline.com/product/buy-thc-vape-cartridge/
https://globalpsychedelicsonline.com/product/buy-dmt-1ml-purecybin/
https://globalpsychedelicsonline.com/product/1p-lsd/
https://globalpsychedelicsonline.com/product/4-aco-dmt/
https://globalpsychedelicsonline.com/product/100ug-sour-mint-gummy/
https://globalpsychedelicsonline.com/product/dmt-cartridge-1ml/
https://globalpsychedelicsonline.com/product/buy-5-meo-dmt-cartridge/
https://globalpsychedelicsonline.com/product/buy-lsd-fuzzy-peach/
https://globalpsychedelicsonline.com/product/sunset-sherbet-vape-cartridge/
https://globalpsychedelicsonline.com/product/energy-focus-shroom-microdose/
https://globalpsychedelicsonline.com/product/buy-psilocybin-gummies/
https://globalpsychedelicsonline.com/product/delta-8-shroom-gummies/
https://globalpsychedelicsonline.com/product/buy-dried-mushrooms-online/
https://globalpsychedelicsonline.com/product/buy-albino-goldies-mushrooms/
https://globalpsychedelicsonline.com/product/5-meo-dmt-for-sale/
https://globalpsychedelicsonline.com/product/buy-psilocybin-gummies/
https://globalpsychedelicsonline.com/product/yum-yum-gummies-full-spectrum/
https://globalpsychedelicsonline.com/product/buy-pure-dimethyltryptamine/
https://globalpsychedelicsonline.com/product/shroomies-cookies-and-cream/
https://globalpsychedelicsonline.com/product/delta-8-shroom-gummies/
https://globalpsychedelicsonline.com/product/buy-delta-8-vape-cartridge/
https://globalpsychedelicsonline.com/product/shrooms-delta-8-thc-gummies/
https://globalpsychedelicsonline.com/product/cbd-and-delta-8-mix-gummies/
https://globalpsychedelicsonline.com/product/buy-pure-dimethyltryptamine/
https://globalpsychedelicsonline.com/product/buy-nn-dmt-vape-cart-5x1ml/
https://globalpsychedelicsonline.com/product/buy-mushroom-chocolate-bar/
https://globalpsychedelicsonline.com/product/buy-ehrlich-spot-test-kit/
https://globalpsychedelicsonline.com/product/buy-mdma-crystals-84/
https://globalpsychedelicsonline.com/product/buy-penis-envy-mushroom/
https://globalpsychedelicsonline.com/product/buy-2cb-pills-online/
https://globalpsychedelicsonline.com/product/penis-envy-mushrooms-for-sale/
https://globalpsychedelicsonline.com/product/buy-pure-dimethyltryptamine/
https://globalpsychedelicsonline.com/product/sour-rainbow-belt/
https://globalpsychedelicsonline.com/product/buy-mushrooms-chocolate-bar/
https://globalpsychedelicsonline.com/product/4-aco-dmt-microdosing/
https://globalpsychedelicsonline.com/product/gummy-bear/
https://globalpsychedelicsonline.com/product/sour-blue-raspberry/
https://globalpsychedelicsonline.com/product/buy-1p-lsd/
https://globalpsychedelicsonline.com/product/trippy-treats/

Email: globalpsyche...@gmail.com

Ioan Lichi

unread,
May 13, 2024, 8:06:23 AM5/13/24
to codename-taurus
I did all that you suggested, but the error is still here.

Regarding the path, I don't think it matters, as, jmeter clearly indicates in logs (from my first post) the library  qpid-jms-client-1.11.0.jar which is the one I am trying to use and is put in lib folder.

Other suggestions? 

Thank you

rupa...@gmail.com

unread,
Sep 19, 2024, 12:11:29 PM9/19/24
to codename-taurus
Hi Ioan, 
Were you able to solve this issue? I'm trying to locally install jmeter and associated plugins instead of relying on the 3rd party artifactory as they seems very unreliable. 
I tried installing to the default path /root/.bzt/jmeter-taurus but there is no effect.
I also added ~/.bzt-rc file and mentioned 
modules:
  jmeter:
    path: ~/.bzt/jmeter-taurus/bin/jmeter
but no effect.


rupa...@gmail.com

unread,
Sep 19, 2024, 12:17:25 PM9/19/24
to codename-taurus
This is what I'm doing while installing, am I making any mistake here?

# Copy the apache-jmeter-5.5.tgz file from the host into the image
COPY apache-jmeter-5.5.tgz /tmp/
# /root/.bzt/jmeter-taurus/5.5/bin/jmeter
# Extract the .tgz file, strip the top-level directory, and install to /root/.bzt/jmeter-taurus/$JMETER_VERSION
RUN mkdir -p /root/.bzt/jmeter-taurus/$JMETER_VERSION && \
tar -xzvf /tmp/apache-jmeter-5.5.tgz --strip-components=1 -C /root/.bzt/jmeter-taurus/$JMETER_VERSION && \
ln -s /root/.bzt/jmeter-taurus/$JMETER_VERSION /root/.bzt/jmeter-taurus/$JMETER_VERSION/apache-jmeter


Psychedelics Heven

unread,
Sep 20, 2024, 2:47:53 AM9/20/24
to codename-taurus
Reply all
Reply to author
Forward
0 new messages