Getting error with JMeter 3.2 CookieHandler: Unable to add the cookie error

2k views Asked by At

I have currently Jmeter 3.2 installed on my Mac (macOS Sierra). Now I want to install 3.1 because of the jmeter ERROR o.a.j.p.h.c.HC4 CookieHandler: Unable to add the cookie error.

How can I install an older version via home brew. I did brew install jmeter -3.1 but that doesn't work.

1

There are 1 answers

0
Dmitri T On BEST ANSWER

You can try working this around by adding the next line to user.properties file

CookieManager.check.cookies=false

JMeter restart will be required to pick the property up. Also you can try playing with different Cookie Policy values:

Cookie Policy Values JMeter Cookie Manager

See Using the HTTP Cookie Manager in JMeter for more details.


If you still want to run JMeter 3.1 (or any other version available in JMeter Archives) you don't need to "install" it, JMeter is a Java-based application so it will be quite enough to download, unpack and run it. Given you use brew I believe you're using MacOSX, steps in "Terminal" application would look like:

  1. wget http://apache.claz.org//jmeter/binaries/apache-jmeter-3.1.tgz
  2. tar xf apache-jmeter-3.1.tgz
  3. cd apache-jmeter-3.1/bin/
  4. ./jmeter.sh