Re: Error while testing "JMS Point-to-Point"
Deepak Goel <[email protected]> Wed, 26 Mar 2025 12:25:42 +0530
| Newsgroups | gmane.comp.jakarta.jmeter.user |
|---|---|
| Message-ID | <CA+b7NVX2d13AJ5N74d_2gp-b1h6U17bSJ_6DZKMgOAYQNV2uWA@mail.gmail.com> |
--00000000000021386206313954b2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable The "JMS Point-to-Point" does not work, but I could get the "JMS Publisher" to work. Deepak "The greatness of a nation can be judged by the way its animals are treated - Mahatma Gandhi" +91 73500 12833 [email protected] LinkedIn: www.linkedin.com/in/deicool "Plant a Tree, Go Green" Make In India : http://www.makeinindia.com/home On Tue, Mar 25, 2025 at 10:57=E2=80=AFAM Deepak Goel <[email protected]> wr= ote: > The JMeter Log file shows the following error: > > javax.naming.NameNotFoundException: TEST.REQUEST.Q > at > org.apache.activemq.jndi.ReadOnlyContext.lookup(ReadOnlyContext.java:235) > ~[activemq-all-5.17.5.jar:5.17.5] > at java.naming/javax.naming.InitialContext.lookup(InitialContext.java:409= ) > ~[?:?] > at > org.apache.jmeter.protocol.jms.sampler.JMSSampler.threadStarted(JMSSample= r.java:650) > ~[ApacheJMeter_jms.jar:5.6.3] > at > org.apache.jmeter.threads.JMeterThread$ThreadListenerTraverser.addNode(JM= eterThread.java:802) > ~[ApacheJMeter_core.jar:5.6.3] > at > org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:1029) > ~[jorphan.jar:5.6.3] > at org.apache.jorphan.collections.HashTree.traverse(HashTree.java:1012) > ~[jorphan.jar:5.6.3] > at > org.apache.jmeter.threads.JMeterThread.threadStarted(JMeterThread.java:77= 0) > ~[ApacheJMeter_core.jar:5.6.3] > at org.apache.jmeter.threads.JMeterThread.initRun(JMeterThread.java:758) > ~[ApacheJMeter_core.jar:5.6.3] > at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:264) > ~[ApacheJMeter_core.jar:5.6.3] > at java.base/java.lang.Thread.run(Thread.java:1575) [?:?] > 2025-03-25 10:42:44,790 WARN o.a.j.p.j.s.JMSSampler: Session may not be > null while creating message > java.lang.IllegalStateException: Session may not be null while creating > message > at > org.apache.jmeter.protocol.jms.sampler.JMSSampler.createMessage(JMSSample= r.java:471) > ~[ApacheJMeter_jms.jar:5.6.3] > at > org.apache.jmeter.protocol.jms.sampler.JMSSampler.handleOneWay(JMSSampler= .java:247) > ~[ApacheJMeter_jms.jar:5.6.3] > at > org.apache.jmeter.protocol.jms.sampler.JMSSampler.sample(JMSSampler.java:= 205) > ~[ApacheJMeter_jms.jar:5.6.3] > at > org.apache.jmeter.threads.JMeterThread.doSampling(JMeterThread.java:651) > ~[ApacheJMeter_core.jar:5.6.3] > at > org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.= java:570) > ~[ApacheJMeter_core.jar:5.6.3] > at > org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:5= 01) > ~[ApacheJMeter_core.jar:5.6.3] > at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:268) > ~[ApacheJMeter_core.jar:5.6.3] > at java.base/java.lang.Thread.run(Thread.java:1575) [?:?] > 2025-03-25 10:42:44,791 INFO o.a.j.t.JMeterThread: Thread is done: Thread > Group 1-1 > 2025-03-25 10:42:44,791 INFO o.a.j.t.JMeterThread: Thread finished: Threa= d > Group 1-1 > 2025-03-25 10:42:44,791 INFO o.a.j.e.StandardJMeterEngine: Notifying test > listeners of end of test > 2025-03-25 10:42:44,791 INFO o.a.j.g.u.JMeterMenuBar: setRunning(false, > *local*) > > > Deepak > "The greatness of a nation can be judged by the way its animals are > treated - Mahatma Gandhi" > > +91 73500 12833 > [email protected] > > LinkedIn: www.linkedin.com/in/deicool > > "Plant a Tree, Go Green" > > Make In India : http://www.makeinindia.com/home > > > On Mon, Mar 24, 2025 at 1:16=E2=80=AFPM Deepak Goel <[email protected]> w= rote: > >> I replaced activemq (from version *apache-activemq-6.1.6-bin* to >> *apache-activemq-5.17.5-bin*), now getting the error: >> >> Thread Name:Thread Group 1-1 >> Sample Start:2025-03-24 13:13:59 IST >> Load time:1 >> Connect Time:0 >> Latency:0 >> Size in bytes:0 >> Sent bytes:0 >> Headers size in bytes:0 >> Body size in bytes:0 >> Sample Count:1 >> Error Count:1 >> Data type ("text"|"bin"|""):text >> Response code: >> Response message:javax.naming.NameNotFoundException: TEST.REQUEST.Q >> >> >> SampleResult fields: >> ContentType: >> DataEncoding: null >> >> >> Deepak >> "The greatness of a nation can be judged by the way its animals are >> treated - Mahatma Gandhi" >> >> +91 73500 12833 >> [email protected] >> >> LinkedIn: www.linkedin.com/in/deicool >> >> "Plant a Tree, Go Green" >> >> Make In India : http://www.makeinindia.com/home >> >> >> On Fri, Mar 21, 2025 at 11:28=E2=80=AFAM Deepak Goel <[email protected]>= wrote: >> >>> Hello >>> >>> *I have configured "JMS Point-to-Point" in JMeter as follows (have >>> placed the jar "activemq-all-6.1.6" in lib directory):* >>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >>> >>> - >>> >>> *QueueConnectionFactory*: ConnectionFactory >>> - >>> >>> *Request Queue*: TEST.REQUEST.Q (simulated request queue name) >>> - >>> >>> *Response Queue*: TEST.RESPONSE.Q (simulated response queue name) >>> - >>> >>> *Provider URL*: tcp://localhost:61616 (change to match your setup, >>> e.g., a locally running ActiveMQ broker) >>> - >>> >>> *Initial Context Factory*: >>> org.apache.activemq.jndi.ActiveMQInitialContextFactory (commonly >>> used for ActiveMQ) >>> >>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D >>> - >>> >>> >>> >>> >>> *I am running "apache-activemq-6.1.6" on my local PC, and have >>> configured the following queues: * >>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >>> - >>> - >>> >>> >>> - >>> Name <http://127.0.0.1:8161/admin/queues.jsp#> =E2=86=91Number Of Pe= nding >>> Messages <http://127.0.0.1:8161/admin/queues.jsp#> Number Of >>> Consumers <http://127.0.0.1:8161/admin/queues.jsp#> Messages >>> Enqueued <http://127.0.0.1:8161/admin/queues.jsp#> Messages Dequeue= d >>> <http://127.0.0.1:8161/admin/queues.jsp#> Views >>> <http://127.0.0.1:8161/admin/queues.jsp#> Operations >>> <http://127.0.0.1:8161/admin/queues.jsp#> >>> TEST.REQUEST.Q >>> <http://127.0.0.1:8161/admin/browse.jsp?JMSDestination=3DTEST.REQUES= T.Q> >>> 0 0 0 0 Browse >>> <http://127.0.0.1:8161/admin/browse.jsp?JMSDestination=3DTEST.REQUES= T.Q> >>> Active Consumers >>> <http://127.0.0.1:8161/admin/queueConsumers.jsp?JMSDestination=3DTES= T.REQUEST.Q> >>> Active Producers >>> <http://127.0.0.1:8161/admin/queueProducers.jsp?JMSDestination=3DTES= T.REQUEST.Q> >>> >>> <http://127.0.0.1:8161/admin/queueBrowse/TEST.REQUEST.Q?view=3Drss&f= eedType=3Datom_1.0> >>> >>> <http://127.0.0.1:8161/admin/queueBrowse/TEST.REQUEST.Q?view=3Drss&f= eedType=3Drss_2.0> Send >>> To >>> <http://127.0.0.1:8161/admin/send.jsp?JMSDestination=3DTEST.REQUEST.= Q&JMSDestinationType=3Dqueue> >>> Purge >>> <http://127.0.0.1:8161/admin/purgeDestination.action?JMSDestination= =3DTEST.REQUEST.Q&JMSDestinationType=3Dqueue&secret=3D654d6d53-76c2-480a-a8= 42-165ba5d432cd> >>> Delete >>> <http://127.0.0.1:8161/admin/deleteDestination.action?JMSDestination= =3DTEST.REQUEST.Q&JMSDestinationType=3Dqueue&secret=3D654d6d53-76c2-480a-a8= 42-165ba5d432cd> >>> Pause >>> <http://127.0.0.1:8161/admin/pauseDestination.action?JMSDestination= =3DTEST.REQUEST.Q&JMSDestinationType=3Dqueue&secret=3D654d6d53-76c2-480a-a8= 42-165ba5d432cd> >>> TEST.RESPONSE.Q >>> <http://127.0.0.1:8161/admin/browse.jsp?JMSDestination=3DTEST.RESPON= SE.Q> >>> 0 0 0 0 Browse >>> <http://127.0.0.1:8161/admin/browse.jsp?JMSDestination=3DTEST.RESPON= SE.Q> >>> Active Consumers >>> <http://127.0.0.1:8161/admin/queueConsumers.jsp?JMSDestination=3DTES= T.RESPONSE.Q> >>> Active Producers >>> <http://127.0.0.1:8161/admin/queueProducers.jsp?JMSDestination=3DTES= T.RESPONSE.Q> >>> >>> <http://127.0.0.1:8161/admin/queueBrowse/TEST.RESPONSE.Q?view=3Drss&= feedType=3Datom_1.0> >>> >>> <http://127.0.0.1:8161/admin/queueBrowse/TEST.RESPONSE.Q?view=3Drss&= feedType=3Drss_2.0> Send >>> To >>> <http://127.0.0.1:8161/admin/send.jsp?JMSDestination=3DTEST.RESPONSE= .Q&JMSDestinationType=3Dqueue> >>> Purge >>> <http://127.0.0.1:8161/admin/purgeDestination.action?JMSDestination= =3DTEST.RESPONSE.Q&JMSDestinationType=3Dqueue&secret=3D654d6d53-76c2-480a-a= 842-165ba5d432cd> >>> Delete >>> <http://127.0.0.1:8161/admin/deleteDestination.action?JMSDestination= =3DTEST.RESPONSE.Q&JMSDestinationType=3Dqueue&secret=3D654d6d53-76c2-480a-a= 842-165ba5d432cd> >>> Pause >>> <http://127.0.0.1:8161/admin/pauseDestination.action?JMSDestination= =3DTEST.RESPONSE.Q&JMSDestinationType=3Dqueue&secret=3D654d6d53-76c2-480a-a= 842-165ba5d432cd> >>> >>> >>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >>> >>> *I am getting the following error:* >>> >>> Thread Name:Thread Group 1-1 >>> Sample Start:2025-03-21 11:21:43 IST >>> Load time:0 >>> Connect Time:0 >>> Latency:0 >>> Size in bytes:0 >>> Sent bytes:0 >>> Headers size in bytes:0 >>> Body size in bytes:0 >>> Sample Count:1 >>> Error Count:1 >>> Data type ("text"|"bin"|""):text >>> Response code: >>> Response message:java.lang.IllegalStateException: QueueConnectionFactor= y >>> expected, but got org.apache.activemq.ActiveMQConnectionFactory >>> >>> >>> SampleResult fields: >>> ContentType: >>> DataEncoding: null >>> >>> *Can you please help?* >>> >>> Deepak >>> "The greatness of a nation can be judged by the way its animals are >>> treated - Mahatma Gandhi" >>> >>> +91 73500 12833 >>> [email protected] >>> >>> LinkedIn: www.linkedin.com/in/deicool >>> >>> "Plant a Tree, Go Green" >>> >>> Make In India : http://www.makeinindia.com/home >>> >> --00000000000021386206313954b2--