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 you
