Forum Discussion

mailkr's avatar
mailkr
New Contributor
12 years ago

SoapUI - HermesJMS - InvalidClientIDException

We are trying to use SoapUI load test with HermesJMS to submit multiple jms requests through multiple threads.
With multiple threads, we are getting InvalidClientIDException exception from ActiveMQ.
With single thread, it works fine, i'm not sure how to mimic unique clientID for each thread, any expert advise?


-----------------------------------------------------------------------------------------------------------------------------------
Fri Aug 09 17:47:54 EDT 2013:ERROR:javax.jms.InvalidClientIDException: Broker: amq - Client: activeMQSession-UserEvents already connected from tcp://172.30.20.10:51830
javax.jms.InvalidClientIDException: Broker: amq - Client: activeMQSession-UserEvents already connected from tcp://172.30.20.10:51830
at org.apache.activemq.broker.region.RegionBroker.addConnection(RegionBroker.java:216)
at org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.java:85)
at org.apache.activemq.advisory.AdvisoryBroker.addConnection(AdvisoryBroker.java:79)
at org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.java:85)
at org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.java:85)
at org.apache.activemq.broker.MutableBrokerFilter.addConnection(MutableBrokerFilter.java:91)
at org.apache.activemq.broker.TransportConnection.processAddConnection(TransportConnection.java:766)
at org.apache.activemq.broker.jmx.ManagedTransportConnection.processAddConnection(ManagedTransportConnection.java:79)
at org.apache.activemq.command.ConnectionInfo.visit(ConnectionInfo.java:139)
at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:329)
at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:184)
at org.apache.activemq.transport.MutexTransport.onCommand(MutexTransport.java:50)
at org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:113)
at org.apache.activemq.transport.AbstractInactivityMonitor.onCommand(AbstractInactivityMonitor.java:288)
at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:83)
at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:214)
at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:196)
at java.lang.Thread.run(Thread.java:662)
  • nmrao's avatar
    nmrao
    Champion Level 3
    Saw below thread
    http://activemq.2283324.n4.nabble.com/c ... 58174.html

    You may try below by setting CorrelationID, ClientID in Jms Headers of your test request

    a. introduce a groovy script before TestRequest Step with the following code
    testRunner.testCase.setPropertyValue('CLIENTID',java.util.UUID.randomUUID() as String)

    b. add ${#TestCase#CLIENTID} for CorrelationID, ClientID

    And see if that helps.
  • mailkr's avatar
    mailkr
    New Contributor
    Thanks for your reply.
    Where do i need to do add "${#TestCase#CLIENTID}" for CorrelationID and ClientID?
  • nmrao's avatar
    nmrao
    Champion Level 3
    As mentioned in the earlier reply - Jms Headers of Test Request