I tried pushing object message in solace queue using JMeter JMS Publisher. But I am getting below error.
Kindly help on this
Configuration:
enter image description here
Error:
com.thoughtworks.xstream.io.StreamException
Caused by: org.xmlpull.v1.XmlPullParserException: only whitespace content allowed before start tag and not + (position: START_DOCUMENT seen +... #1:2)
Most probably there is an issue with your data file as it cannot be converted into well-formed XML, consider double-checking the way you're generating it or contact the person who provided it to you.
You can also increase JMeter log verbosity level to get more details regarding what's going on by adding the following line to log4j2.xml file (lives in "bin" folder of your JMeter installation)
<Logger name="org.apache.jmeter.protocol.jms" level="debug" />
JMeter restart will be required to pick up the change.
Also be aware that according to JMeter Best Practices you should always be using the latest version of JMeter so consider upgrading to JMeter 4.0 (or whatever version is available on the JMeter Downloads page)
Related
while generating html report through jmeter getting following error message.
note[using jmeter version 5.4.1]
Generating report
An error occurred: Data exporter "html" is unable to export data.
The Data exporter "html" is unable to export data message unfortunately doesn't contain either root cause of the issue or at least a clue.
You need to take a look at jmeter.log file, it should contain way more information regarding the failure.
The most common reasons are:
Lack of JVM Heap space
Impossibility to write to the destination folder (lack of permissions, disk full, etc.)
Issues with .jtl results file (i.e. you ran your test on another JMeter instance having different Results File Configuration)
Also be informed that according to JMeter Best Practices you should always be using the latest version of JMeter so consider upgrading to JMeter 5.5 (or whatever is the latest version available at JMeter Downloads page) on next available opportunity.
Image reference
The jmeter console does not show any logs or print output.I am using jmeter 5.2.3.
I cannot reproduce your issue:
so my expectation is that your JMeter logging configuration is not default, i.e. you turned logging of by accident.
I believe if you:
Take log4j2.xml file from JMeter Github page and copy it to "bin" folder of your JMeter installation
Restart JMeter to pick up the original logging configuration file
You should get the same behaviour as I do
I am just wondering how I can control the number of requests in Taurus / Jmeter?
Let's say I have to use an external file where there are prepared data for the test. I have to know how many data I should make for data (i.e. how many requests will be fired by Taurus / JMeter).
I found this article which says that the throughput setting can be used for that. However I got the following exception when I added this single setting (throughput: 2) to my yaml file:
2018-05-31 13:08:11,743 ERROR o.a.j.JMeter: Error in NonGUIDriver
java.lang.IllegalArgumentException: Problem loading XML from:'/home/vikhor/projects/temp/taurus/test_SOAP/2018-05-31_13-07-54.930576/modified_requests.jmx', missing class com.thoughtworks.xstream.converters.ConversionException
...
Caused by: com.thoughtworks.xstream.mapper.CannotResolveClassException: kg.apc.jmeter.timers.VariableThroughputTimer
I haven't installed JMeter, let Taurus installed it.
Any idea how to fix this issue (found this link but didn't help) or how to control the number of the requests?
Please check if you have JPGC# Throughput Shaping Timer plugin installed with the jmeter.
Please check the below image:-
If you didnt find it then it may be the cause. Then, you can install it by any of the two methods:-
1- Use Jmeter plugin manager
2. Direct download the plugin
Prefer plugin manager as it will be helpful in future to install other plugins.
Hope it helps.
I'm using jmeter 3.2, I want run a SMTP Sampler in Jmeter where I have done the necessary configuration by adding the javamail file in the lib folder of Jmeter and adding necessary credentials in the mail setting, though when executed I am getting an error of IOException.
Am I missing any step?
There was a change in SMTP Sampler in jmeter 3.2 which created several bugs.
You open a bug to jmeter with a sample if it's a different scenario.
If you can downgrade to Jmeter 3.1 if it can work.
EDIT
You can download a fix to the issue in jmeter-3.3
If you are trying to send a file as an attachment you have 2 options:
If you are using relative path (just filename) make sure you put the file into JMeter's "bin" folder. So JMeter could find it. Check out jmeter.log file to know where JMeter is expecting the file to be.
Use full path (like c:\somefolder\someotherfolder\somefile.eml)
In case if you still experience the problem update your question with your email server configuration and jmeter.log file contents. In the meantime check out Load Testing Your Email Server: How to Send and Receive E-mails with JMeter article
I have a prepared a jmx file using jmeter & ran that test case on blazemeter to test load on my server. After the test is done, I can see that one of my services are failing. Though not all the time, but some times. And in the error tab on blazemeter, i can see that is is giving
Non HTTP response message: The target server failed to respond
I am not sure, that is my server failing to handle the load, or is it something else. In My settings, thread is 50. Can any one please help me that, is this because of server is failing to handle to load. Thanks in advance.
It looks like that you're facing the problem described in Connection Reset since JMeter 2.10 ? Wiki article.
If you upgraded recently to JMeter 2.10 or 2.11, you may have noticed increased errors of this type:
Socket closed
Non HTTP response code: org.apache.http.NoHttpResponseException (the target server failed to respond)
So
Change "Implementation" of your HTTP Requests to HTTPClient4
Add the next 2 lines to user.properties file (usually lives under /bin folder of your JMeter installation)
httpclient4.retrycount=1
hc.parameters.file=hc.parameters
In hc.parameters file (also lives under JMeter's /bin folder) uncomment the following line:
http.connection.stalecheck$Boolean=true
For more information on different JMeter properties and ways of setting and altering them refer to Apache JMeter Properties Customization Guide
Encountered the same issue and fixed it by unchecking the "Use KeepAlive" option for HTTP requests. Please refer to the screenshot. I guess, the root cause was related to the connection being closed and the JMeter client trying to use the same connection.
Had similar problem for jmeter 2.13 DmitriT solution got me pointed in right direction, but in my case the java or HttpClient3.1 worked, 4.0 did not.
I have done everything.
ange "Implementation" of your HTTP Requests to HTTPClient4
Add the next 2 lines to user.properties file (usually lives under /bin folder of your JMeter installation)
httpclient4.retrycount=1
hc.parameters.file=hc.parameters
In hc.parameters file (also lives under JMeter's /bin folder) uncomment the following line:
http.connection.stalecheck$Boolean=true
BUT STILL FACING THIS ISSUE in apache jmeter 5.1
In my case it was the header for the call I was doing that was causing the issue.
It was:
Content-Type:application/json;charset=UTF-8
Set it to:
Content-Type:application/json