https://issues.apache.org/bugzilla/show_bug.cgi?id=52036

             Bug #: 52036
           Summary: Durable Subscription fails with ActiveMQ
           Product: JMeter
           Version: 2.5.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified


Created attachment 27787
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=27787
Test Plan to reproduce issue

Durable subscription fails with this exception with ActiveMQ:
2011/10/15 14:10:53 ERROR - jmeter.protocol.jms.sampler.SubscriberSampler:
Could not initialise client javax.jms.JMSException: You cannot create a durable
subscriber without specifying a unique clientID on a Connection
    at
org.apache.activemq.ActiveMQConnection.checkClientIDWasManuallySpecified(ActiveMQConnection.java:1245)
    at
org.apache.activemq.ActiveMQSession.createDurableSubscriber(ActiveMQSession.java:1272)
    at
org.apache.activemq.ActiveMQSession.createDurableSubscriber(ActiveMQSession.java:1221)
    at
org.apache.jmeter.protocol.jms.client.ReceiveSubscriber.createSubscriber(ReceiveSubscriber.java:169)
    at
org.apache.jmeter.protocol.jms.client.ReceiveSubscriber.<init>(ReceiveSubscriber.java:94)
    at
org.apache.jmeter.protocol.jms.sampler.SubscriberSampler.initReceiveClient(SubscriberSampler.java:114)
    at
org.apache.jmeter.protocol.jms.sampler.SubscriberSampler.threadStarted(SubscriberSampler.java:264)
    at
org.apache.jmeter.protocol.jms.sampler.SubscriberSampler.threadStarted(SubscriberSampler.java:295)
    at
org.apache.jmeter.protocol.jms.sampler.SubscriberSampler.sample(SubscriberSampler.java:129)
    at
org.apache.jmeter.protocol.jms.sampler.BaseJMSSampler.sample(BaseJMSSampler.java:79)
    at
org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:413)
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:297)
    at java.lang.Thread.run(Thread.java:680)



This seems right according to JMS specifications where clientId must be set:
http://download.oracle.com/javaee/1.3/jms/tutorial/1_3_1-fcs/doc/advanced.html#1024758

So I think we should add a field to specify clientId .

Note that it works with OpenJMS.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to