JMeter crashes while trying to load a .JMX script giving error "Empty TestPlan - see log file". I did my research around and found that the possible solutions/issues can be:
1) Moving up/down Java versions on your machine.
2) Some JAR is missing in the lib/ext folder of JMeter.
The issue seems to be the latter, as I can see the following line in the JMX script:
<uk.co.logtailer.jmeter.protocol.mq.sampler.MQSampler guiclass="uk.co.logtailer.jmeter.protocol.mq.control.gui.MQSamplerGui" testclass="uk.co.logtailer.jmeter.protocol.mq.sampler.MQSampler" testname="MQSampler" enabled="false">
I am not able to find the JAR which can support this MQ Sampler. I have tried a few from ActiveMQ but they didn't work.
I will appreciate if someone can help me with the JAR or point out if my understanding of the issue is wrong.
Log shows:
2014/09/04 10:36:12 ERROR - jmeter.save.SaveService: Conversion error com.thoughtworks.xstream.converters.ConversionException: uk.co.logtailer.jmeter.protocol.mq.sampler.MQSampler : uk.co.logtailer.jmeter.protocol.mq.sampler.MQSampler
---- Debugging information ----
message : uk.co.logtailer.jmeter.protocol.mq.sampler.MQSampler
cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message : uk.co.logtailer.jmeter.protocol.mq.sampler.MQSampler
class : org.apache.jorphan.collections.ListedHashTree
required-type : org.apache.jorphan.collections.ListedHashTree
converter-type : org.apache.jmeter.save.converters.HashTreeConverter
path : /jmeterTestPlan/hashTree/hashTree/hashTree[4]/uk.co.logtailer.jmeter.protocol.mq.sampler.MQSampler
line number : 65
------------------------------- : uk.co.logtailer.jmeter.protocol.mq.sampler.MQSampler : uk.co.logtailer.jmeter.protocol.mq.sampler.MQSampler
The problem is that you don't have the jar, containing uk.co.logtailer.jmeter.protocol.mq.sampler.MQSampler and uk.co.logtailer.jmeter.protocol.mq.control.gui.MQSamplerGui classes in your JMeter's classpath. You need to find it somewhere and drop it to lib/ext folder of your JMeter installation.
However looking into enabled="false" stanza, if all these custom samplers are disabled you can safely (and carefully) remove them from .jmx file via any text editor, preferably having XML syntax highlighting and XML validation capabilities.
A couple of guides on JMS/MQ testing with JMeter:
Building a JMS Topic Test Plan
Building a JMS Testing Plan - Apache JMeter
Related
I am trying to generate html report using robotframework but getting below error
JMeterLibException: 'No samples were found in a log file.'
Command used :
Run Jmeter ${jmeter} ${jmxPath} ${logPath} -JudvData=${excelData} -Jport=${port} -Jurl=${url} -JSMS.group=1
Analyse Jtl Convert To Html ${logPath}
jtl file is getting generated successfully but facing issue will converting jtl to HTML
Below is the log details ,
If there are no results it means that JMeter script execution has failed somewhere somehow, in this case you can check:
Robot Framework log file
JMeter log file
If you cannot figure out what's wrong from the JMeter log file it is possible to increase logging verbosity either for individual components or for the overall application via log4j2.xml file (lives in "bin" folder of your JMeter installation), see How to Configure JMeter Logging article for more details.
The most common reasons are:
The number of threads (virtual users) or loops (iterations) in Thread Group is 0
Missing data file referenced in CSV Data Set Config
Missing JMeter Plugin
When I run a command mvn clean test -Dspring.profiles.active=GITLAB-CI-TEST in the GitLab CI CD it not loading properties file application-gitlab-ci-test.properties. It is loading only application.properties.
As file application-gitlab-ci-test.properties contains the different value for spring.datasource.url the pipeline is failing in the remote runners with error
The last packet sent successfully to the server was 0 milliseconds ago.
The driver has not received any packets from the server.
Of course, this error is expected as properties file application.properties refers to the localhost database.
Code which loading application-gitlab-ci-test.properties:
#Profile("GITLAB-CI-TEST")
#PropertySource("classpath:application-gitlab-ci-test.properties")
#Configuration
public class GitLabCiTestProfile {
}
When I try to run the same command locally it's working as expected and in logs, I see the following records:
2020-03-30 19:23:00.609 DEBUG 604 --- [ main]
o.s.b.c.c.ConfigFileApplicationListener : Loaded config file
'file:/G:/****/****/****/****/target/classes/application.properties'
(classpath:/application.properties)
2020-03-30 19:23:00.609 DEBUG 604 --- [ main]
o.s.b.c.c.ConfigFileApplicationListener : Loaded config file
'file:/G:/****/****/****/****/target/classes/application-GITLAB-CI-TEST.properties' (classpath:/application-GITLAB-CI-TEST.properties) for profile
GITLAB-CI-TEST
I noticed that remote runners missing the second line. This one which loading application-GITLAB-CI-TEST.properties.
I also tried mvn clean test --batch-mode -PGITLAB-CI-TEST and this one too failing in the remote host but in local run working as expected.
I found the workaround for this issue by using the command
mvn clean test --batch-mode -Dspring.datasource.url=jdbc:mysql://mysql-db:3306/*******?useSSL=false&allowPublicKeyRetrieval=true
Can you please help me to solve this issue as this workaround is not satisfying me?
I found the solution to this issue.
I changed the name of the profile from the upper case (GITLAB-CI-TEST) to lower case (gitlab-ci-test), to match the lower case of profile name in properties file - application-gitlab-ci-test.properties.
Now in the remote runner, I'm using the following command:
mvn clean test -Dspring.profiles.active=gitlab-ci-test
Spring doc - link
I'm having problem with the error that jp#gc plugin in jmeter didn't show the result csv and image. Can you help me to solve the problem ?
Ther configuration of jp#gc graphs generator:
meter-plugibn
The error is :
java.lang.IllegalArgumentException: Cannot find specified JTL file: C:\Users\ryard\Downloads\apache-jmeter-5.2.1\bin\hasil\out\result.csv
at kg.apc.jmeter.PluginsCMDWorker.checkParams(PluginsCMDWorker.java:90) ~[jmeter-plugins-cmd-2.2.jar:?]
at kg.apc.jmeter.PluginsCMDWorker.doJob(PluginsCMDWorker.java:104) ~[jmeter-plugins-cmd-2.2.jar:?]
at kg.apc.jmeter.listener.GraphsGeneratorListener.testEnded(GraphsGeneratorListener.java:222) ~[jmeter-plugins-graphs-ggl-2.0.jar:?]
at kg.apc.jmeter.listener.GraphsGeneratorListener.testEnded(GraphsGeneratorListener.java:137) ~[jmeter-plugins-graphs-ggl-2.0.jar:?]
at org.apache.jmeter.engine.StandardJMeterEngine.notifyTestListenersOfEnd(StandardJMeterEngine.java:218) [ApacheJMeter_core.jar:5.2.1]
at org.apache.jmeter.engine.StandardJMeterEngine.run(StandardJMeterEngine.java:492) [ApacheJMeter_core.jar:5.2.1]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_221]
2020-02-10 15:02:17,808 INFO o.a.j.g.u.JMeterMenuBar: setRunning(false, *local*)
The error is about C:\Users\ryard\Downloads\apache-jmeter-5.2.1\bin\hasil\out\result.csv file missing, this is so called JTL Result File from which the charts are generated.
Make sure to run JMeter test in command-line non-GUI mode like:
jmeter -n -t /path/to/your/testplan.jmx -l C:\Users\ryard\Downloads\apache-jmeter-5.2.1\bin\hasil\out\result.csv
^^^^^^^^this is needed for generating result file
and Graphs Generator Listener should start working as expected.
Also be aware that starting from JMeter 3.0 there is HTML Reporting Dashboard with interactive zoomable charts, you might want to consider using it for reporting instead.
I am trying to rum jmeter from a shell script but its giving me error:
Error in NonGUIDriver java.lang.IllegalArgumentException: Problem loading XML from:'/dynamicJmeter.jmx', missing class com.thoughtworks.xstream.converters.ConversionException:
---- Debugging information ----
cause-exception : com.thoughtworks.xstream.converters.ConversionException
cause-message :
first-jmeter-class : org.apache.jmeter.save.converters.HashTreeConverter.unmarshal(HashTreeConverter.java:67)
class : org.apache.jmeter.save.ScriptWrapper
required-type : org.apache.jorphan.collections.ListedHashTree
converter-type : org.apache.jmeter.save.ScriptWrapperConverter
path : /jmeterTestPlan/hashTree/hashTree/hashTree[8]/com.blazemeter.jmeter.RandomCSVDataSetConfig
line number : 1309
version : 4.0 r1823414
-------------------------------
I have installed the plugin manager and udp support plugin in jmeter but still the command doesn't work.
You're missing Random CSV Data Set Config plugin which is referenced in your .jmx test script and not installed on the JMeter instance where you're trying to open this file.
So make sure to install the plugin using JMeter Plugins Manager
and restart JMeter afterwards to pick up the plugin.
Just in case check out Introducing the Random CSV Data Set Config Plugin on JMeter article for comprehensive plugin installation and usage instructions
I am trying to deploy a web application using WSAdmin tool. But it is throwing an error.
JACl script that I am using is :
$AdminApp install /opt/www/temp/SampleApp.war {-nopreCompileJSPs -nodeployejb -server delivery -cell delivery_cell -node delivery_node -appname SampleApp -contextroot SampleApp -MapWebModToVH {{"SampleApp" SampleApp.war,WEB-INF/web.xml default_host}}}
Error I am getting is:
com.ibm.ws.scripting.ScriptingException: WASX7109E: Insufficient data for install task "MapResRefToEJB
ADMA0007E: A validation error occurred in task Mapping resource references to resources. The Java Naming and Directory Interface (JNDI) name is not specified for resource reference jdbc/app_DB in module SampleApp with EJB name.
From the error above I understand that I need to configure my JNDI with -MapResRefToEJB. I tried to understand this option but getting too confused.
Can anyone help me to resolve this issue?
These errors appear to be caused by the MapResRefToEJB option in
the wsadmin command not being set correctly, or the resource it is pointing to
not existing correctly in the web.xml file.
Additional information on MapResRefToEJB
Options for the AdminApp object install, installInteractive, edit,
editInteractive, update, and updateInteractive commands
http://pic.dhe.ibm.com/infocenter/wasinfo/v7r0/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/rxml_taskoptions.html
Thank you
Note : Opinions are my own.