Jmeter - CookieManager Unable to load or invoke class HC4CookieHandler RRS feed

  • Question

  • I get the following error when I would like to run a load test - jmeter - but it fails

    JMeterExecution] - jmeter.protocol.http.control.CookieManager: Unable to load or invoke class: org.apache.jmeter.protocol.http.control.HC4CookieHandler org.apache.jorphan.util.JMeterException: java.lang.reflect.InvocationTargetException

     I searched for an answer but I found that I need to set a property in jmeter property file.


    But I don't know where can I set it in when I'm running the jmeter tests in VS Team Services. Can you help me in this?

    Thursday, November 3, 2016 9:02 AM


All replies

  • Hello,

    We are checking on the query and would get back to you soon on this.

    Apologize for the inconvenience and appreciate your time and patience in this matter.




    Friday, November 4, 2016 7:57 AM
  • Hello,

    Thank you for posting here!

    You can try to follow this document: https://www.redline13.com/blog/2016/01/jmeter-cookie-manager/ which might help you.


    Disclaimer: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

    If a post answers your question, please click Mark as Answer on that post and Vote as Helpful.

    Friday, November 4, 2016 10:57 AM
  • I solved the issue by specifying to use HC3CookieHandler.

    I suspect that the HC4 version requires JMeter 3 while VSTS currently supports only JMeter 2.

    Tuesday, December 13, 2016 2:54 PM
  • Hi,

    Glad to hear that you are able to solve the issue and thank you for responding with the solution which worked for you. It will help other forum users as well.




    Wednesday, December 14, 2016 7:07 AM
  • It seems this no longer working either - I'm getting this error

    jmeter.protocol.http.control.CookieManager: Unable to load or invoke class: org.apache.jmeter.protocol.http.control.HC3CookieHandler org.apache.jorphan.util.JMeterException: java.lang.reflect.InvocationTargetException
        at org.apache.jorphan.reflect.ClassTools.construct(ClassTools.java:112)

    Wednesday, June 7, 2017 8:38 PM
  • The query needs a further deeper dive technically. I would suggest you to create a support ticket here: https://www.visualstudio.com/team-services/support/

    Do click on "Mark as Answer" on the post that helps you, this can be beneficial to other community members.

    • Proposed as answer by Nayana A S Friday, June 9, 2017 10:24 AM
    Thursday, June 8, 2017 8:45 AM