apache / jmeter

Apache JMeter open-source load testing tool for analyzing and measuring the performance of a variety of services
https://jmeter.apache.org/
Apache License 2.0
8.23k stars 2.08k forks source link

Unable to Publish JMS Msg for Tibco EMS using Jmeter Publisher/Subscriber. #3432

Closed asfimport closed 9 years ago

asfimport commented 9 years ago

NGS (Bug 56972): When trying to generate script for testing TIBCO EMS middleware by publishing messages to the JMS queue using JMeter. The messages don't get published successfully to the queue. It say publish the msg sucessfully. Using Jmeter when we were pointing to TEST, publishing a message to the topic bound to the JNDI name “xxxTopic” (which is mapped to .TEST..xxxx.REQUEST), passing in JMSReplyTo=TEST.JMTR.xxx.RESPONSE.
Onthe WebSphere log file and confirmed that the xxx service received the JMSReplyTo property and its value was null. However the no response is received. When checked in the EMS server the messages do have null value for the "JMSReplyTo"string and hence not able to find the Response queue and timing out. Request you to please provide a possible solution for Tibco JMS testing. We had taken necessary Tibco Jar files for publishing the msg.

Severity: normal OS: All

Duplicated by:

asfimport commented 9 years ago

@pmouawad (migrated from Bugzilla): Hello, Could you show your test plan please ? And attach jmeter.log file ?

Thank you

asfimport commented 9 years ago

NGS (migrated from Bugzilla): Created attachment Ebank_Deposit.jmx: Jmeter Test Plan script

asfimport commented 9 years ago

NGS (migrated from Bugzilla): Here is the log file after the execution of the Test plan

Created attachment JmeterLogfile9122014.log: Jmeter Log file

JmeterLogfile9122014.log ```` log_file=jmeter.log java.io.FileNotFoundException: jmeter.log (Access is denied) [log_file-> System.out] 2014/09/12 14:36:58 INFO - jmeter.util.JMeterUtils: Setting Locale to en_US 2014/09/12 14:36:58 INFO - jmeter.JMeter: Loading user properties from: D:\JMeter\apache-jmeter-2.11\bin\user.properties 2014/09/12 14:36:58 INFO - jmeter.JMeter: Loading system properties from: D:\JMeter\apache-jmeter-2.11\bin\system.properties 2014/09/12 14:36:58 INFO - jmeter.JMeter: Copyright (c) 1998-2014 The Apache Software Foundation 2014/09/12 14:36:58 INFO - jmeter.JMeter: Version 2.11 r1554548 2014/09/12 14:36:58 INFO - jmeter.JMeter: java.version=1.7.0 2014/09/12 14:36:58 INFO - jmeter.JMeter: java.vm.name=Java HotSpot(TM) 64-Bit Server VM 2014/09/12 14:36:58 INFO - jmeter.JMeter: os.name=Windows Server 2008 R2 2014/09/12 14:36:58 INFO - jmeter.JMeter: os.arch=amd64 2014/09/12 14:36:58 INFO - jmeter.JMeter: os.version=6.1 2014/09/12 14:36:58 INFO - jmeter.JMeter: file.encoding=Cp1252 2014/09/12 14:36:58 INFO - jmeter.JMeter: Default Locale=English (United States) 2014/09/12 14:36:58 INFO - jmeter.JMeter: JMeter Locale=English (United States) 2014/09/12 14:36:58 INFO - jmeter.JMeter: JMeterHome=D:\JMeter\apache-jmeter-2.11 2014/09/12 14:36:58 INFO - jmeter.JMeter: user.dir =D:\JMeter\apache-jmeter-2.11\bin 2014/09/12 14:36:58 INFO - jmeter.JMeter: PWD =D:\JMeter\apache-jmeter-2.11\bin 2014/09/12 14:36:58 INFO - jmeter.JMeter: IP: 10.3.10.200 Name: entwlisawork2 FullName: entwlisawork2.harrahs.org 2014/09/12 14:36:58 INFO - jmeter.JMeter: Loaded icon properties from org/apache/jmeter/images/icon.properties 2014/09/12 14:36:59 INFO - jmeter.engine.util.CompoundVariable: Note: Function class names must contain the string: '.functions.' 2014/09/12 14:36:59 INFO - jmeter.engine.util.CompoundVariable: Note: Function class names must not contain the string: '.gui.' 2014/09/12 14:37:00 INFO - jmeter.gui.action.LookAndFeelCommand: Using look and feel: javax.swing.plaf.metal.MetalLookAndFeel [Metal, CrossPlatform] 2014/09/12 14:37:01 INFO - jmeter.gui.util.MenuFactory: Skipping kg.apc.jmeter.config.VariablesFromCSVFile 2014/09/12 14:37:01 WARN - jmeter.gui.util.MenuFactory: Missing jar? Could not create kg.apc.jmeter.config.redis.RedisDataSet. java.lang.NoClassDefFoundError: org/apache/commons/pool/impl/Generi cObjectPool$Config 2014/09/12 14:37:02 INFO - jmeter.util.BSFTestElement: Registering JMeter version of JavaScript engine as work-round for BSF-22 2014/09/12 14:37:02 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Cannot find .className property for htmlParser, using default 2014/09/12 14:37:02 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/html is 2014/09/12 14:37:02 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xhtml+xml is 2014/09/12 14:37:02 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xml is 2014/09/12 14:37:02 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/xml is 2014/09/12 14:37:02 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/vnd.wap.wml is org.apache.jmeter.protocol.http.parser.RegexpHTMLParser 2014/09/12 14:37:02 INFO - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.protocol.http.control.gui.WebServiceSamplerGui 2014/09/12 14:37:02 INFO - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.protocol.http.modifier.gui.ParamModifierGui 2014/09/12 14:37:02 INFO - jorphan.exec.KeyToolUtils: keytool found at 'C:\Program Files\Java\jre7\bin\keytool' 2014/09/12 14:37:02 INFO - jmeter.protocol.http.proxy.ProxyControl: HTTP(S) Test Script Recorder SSL Proxy will use keys that support embedded 3rd party resources in file D:\JMeter\apache-jmeter -2.11\bin\proxyserver.jks 2014/09/12 14:37:04 INFO - jmeter.samplers.SampleResult: Note: Sample TimeStamps are START times 2014/09/12 14:37:04 INFO - jmeter.samplers.SampleResult: sampleresult.default.encoding is set to ISO-8859-1 2014/09/12 14:37:04 INFO - jmeter.samplers.SampleResult: sampleresult.useNanoTime=true 2014/09/12 14:37:04 INFO - jmeter.samplers.SampleResult: sampleresult.nanoThreadSleep=5000 2014/09/12 14:37:08 INFO - jmeter.services.FileServer: Default base='D:\JMeter\apache-jmeter-2.11\bin' 2014/09/12 14:37:08 INFO - jmeter.gui.action.Load: Loading file: D:\JMeter\apache-jmeter-2.11\Test\Ebank-Scripts\Ebank_Deposit.jmx 2014/09/12 14:37:08 INFO - jmeter.services.FileServer: Set new base='D:\JMeter\apache-jmeter-2.11\Test\Ebank-Scripts' 2014/09/12 14:37:08 INFO - jmeter.save.SaveService: Testplan (JMX) version: 2.2. Testlog (JTL) version: 2.2 2014/09/12 14:37:08 INFO - jmeter.save.SaveService: Using SaveService properties file encoding UTF-8 2014/09/12 14:37:08 INFO - jmeter.save.SaveService: Using SaveService properties version 2.6 2014/09/12 14:37:08 INFO - jmeter.save.SaveService: Using SaveService properties file version 1554411 2014/09/12 14:37:08 INFO - jmeter.save.SaveService: All converter versions present and correct 2014/09/12 14:37:09 INFO - jmeter.services.FileServer: Set new base='D:\JMeter\apache-jmeter-2.11\Test\Ebank-Scripts' 2014/09/12 14:37:11 INFO - jmeter.engine.StandardJMeterEngine: Listeners will be started after enabling running version 2014/09/12 14:37:11 INFO - jmeter.engine.StandardJMeterEngine: To revert to the earlier behaviour, define jmeterengine.startlistenerslater=false 2014/09/12 14:37:11 INFO - jmeter.engine.StandardJMeterEngine: Running the test! 2014/09/12 14:37:11 INFO - jmeter.samplers.SampleEvent: List of sample_variables: [] 2014/09/12 14:37:11 INFO - jmeter.samplers.SampleEvent: List of sample_variables: [] 2014/09/12 14:37:11 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(true,*local*) 2014/09/12 14:37:11 INFO - jmeter.engine.StandardJMeterEngine: Starting ThreadGroup: 1 : Thread Group 2014/09/12 14:37:11 INFO - jmeter.engine.StandardJMeterEngine: Starting 1 threads for group Thread Group. 2014/09/12 14:37:11 INFO - jmeter.engine.StandardJMeterEngine: Thread will continue on error 2014/09/12 14:37:11 INFO - jmeter.threads.ThreadGroup: Starting thread group number 1 threads 1 ramp-up 1 perThread 1000.0 delayedStart=false 2014/09/12 14:37:11 INFO - jmeter.threads.JMeterThread: jmeterthread.startearlier=true (see jmeter.properties) 2014/09/12 14:37:11 INFO - jmeter.threads.JMeterThread: Running PostProcessors in forward order 2014/09/12 14:37:11 INFO - jmeter.threads.ThreadGroup: Started thread group number 1 2014/09/12 14:37:11 INFO - jmeter.engine.StandardJMeterEngine: All thread groups have been started 2014/09/12 14:37:11 INFO - jmeter.threads.JMeterThread: Thread started: Thread Group 1-1 2014/09/12 14:37:11 INFO - jmeter.protocol.jms.client.InitialContextFactory: authentication properties set 2014/09/12 14:37:17 ERROR - jmeter.threads.JMeterThread: Test failed! java.lang.Error: java.lang.reflect.InvocationTargetException at org.apache.jmeter.util.JMeterUtils.runSafe(JMeterUtils.java:1300) at org.apache.jmeter.visualizers.TableVisualizer.add(TableVisualizer.java:163) at org.apache.jmeter.reporters.ResultCollector.sendToVisualizer(ResultCollector.java:553) at org.apache.jmeter.reporters.ResultCollector.sampleOccurred(ResultCollector.java:529) at org.apache.jmeter.threads.ListenerNotifier.notifyListeners(ListenerNotifier.java:84) at org.apache.jmeter.threads.JMeterThread.notifyListeners(JMeterThread.java:783) at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:443) at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:257) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.reflect.InvocationTargetException at java.awt.EventQueue.invokeAndWait(Unknown Source) at javax.swing.SwingUtilities.invokeAndWait(Unknown Source) at org.apache.jmeter.util.JMeterUtils.runSafe(JMeterUtils.java:1296) ... 8 more Caused by: java.lang.ArithmeticException: / by zero at org.apache.jmeter.visualizers.TableSample.(TableSample.java:65) at org.apache.jmeter.visualizers.TableVisualizer$1.run(TableVisualizer.java:178) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$000(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) 2014/09/12 14:37:17 INFO - jmeter.threads.JMeterThread: Thread finished: Thread Group 1-1 2014/09/12 14:37:17 INFO - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test 2014/09/12 14:37:17 INFO - jmeter.protocol.jms.client.InitialContextFactory: InitialContextFactory.close() called and Context instances cleaned up 2014/09/12 14:37:17 INFO - jmeter.protocol.jms.client.InitialContextFactory: InitialContextFactory.close() called and Context instances cleaned up 2014/09/12 14:37:17 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(false,*local*) ````
asfimport commented 9 years ago

@pmouawad (migrated from Bugzilla): Date: Wed Oct 1 18:57:25 2014 New Revision: 1628809

URL: http://svn.apache.org/r1628809 Log: https://github.com/apache/jmeter/issues/3432 - Unable to Publish JMS Msg for Tibco EMS using Jmeter Publisher/Subscriber. Fix java.lang.ArithmeticException: / by zero https://github.com/apache/jmeter/issues/3432

Modified: jmeter/trunk/src/core/org/apache/jmeter/visualizers/TableSample.java

asfimport commented 9 years ago

@pmouawad (migrated from Bugzilla): Hello, I analysed your issue and found another issue fixed now in nightly build: https://github.com/apache/jmeter/issues/3445

Once this issue is fixed, I am not able to reproduce your issue as my tests on ActiveMQ don't show any problem.

I read this: https://docs.tibco.com/pub/businessevents/5.1.2/doc/html/tib_be_developers_guide/wwhelp/wwhimpl/common/html/wwhelp.htm#href=channels.05.17.htm&single=true

And it seems setting property JMSReplyTo should be fine as per this: If an event has a string type property named JMSReplyTo (case sensitive), TIBCO BusinessEvents reads this event property value as a JMS queue or topic name, according to the event's default destination type. TIBCO BusinessEvents looks up the javax.jms.Destination on the connected JMS server using this queue or topic name. If TIBCO BusinessEvents cannot find one, it creates a new javax.jms.Destination using the given queue or topic name. TIBCO BusinessEvents then sets the JMSReplyTo header property of the outgoing JMS message using this destination

Can you try again with nightly build and see it it's working ? See http://jmeter.apache.org/nightly.html

Installing JMeter runtime Download the _bin and _lib files Unpack the archives into the same directory structure The other archives are not needed to run JMeter.

Thanks

asfimport commented 9 years ago

@pmouawad (migrated from Bugzilla): Closing as we got no feedback after the fix of https://github.com/apache/jmeter/issues/3445 and cannot reproduce after the fix.

This bug has been marked as a duplicate of https://github.com/apache/jmeter/issues/3445