not able to add http2 sampler

16 views
Skip to first unread message

Deepshikha Balliyan

unread,
Oct 3, 2022, 2:37:13 PM10/3/22
to jmeter-plugins
Hi All, 

I am not able to add http2 sampler to the jmeter thread group and getting below exception, can anyone please help me on this :

ava.lang.NoSuchMethodError: com.blazemeter.jmeter.http2.sampler.HTTP2Sampler.setProxyHost(Ljava/lang/String;)V
    at com.blazemeter.jmeter.http2.sampler.gui.HTTP2SamplerGui.modifyTestElement(HTTP2SamplerGui.java:75) ~[jmeter-bzm-http2-2.0.jar:?]
    at org.apache.jmeter.gui.tree.JMeterTreeModel.addComponent(JMeterTreeModel.java:160) ~[ApacheJMeter_core.jar:5.1 r1853635]
    at org.apache.jmeter.gui.action.AddToTree.doAction(AddToTree.java:70) ~[ApacheJMeter_core.jar:5.1 r1853635]
    at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:88) ~[ApacheJMeter_core.jar:5.1 r1853635]
    at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:70) ~[ApacheJMeter_core.jar:5.1 r1853635]
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) ~[?:1.8.0_341]
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) ~[?:1.8.0_341]
    at java.awt.EventQueue.access$500(EventQueue.java:97) ~[?:1.8.0_341]
    at java.awt.EventQueue$3.run(EventQueue.java:709) ~[?:1.8.0_341]
    at java.awt.EventQueue$3.run(EventQueue.java:703) ~[?:1.8.0_341]
    at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_341]
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) ~[?:1.8.0_341]
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:728) ~[?:1.8.0_341]
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205) [?:1.8.0_341]
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) [?:1.8.0_341]
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) [?:1.8.0_341]
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) [?:1.8.0_341]
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) [?:1.8.0_341]
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) [?:1.8.0_341]

Ricardo Poleo

unread,
Oct 3, 2022, 2:47:33 PM10/3/22
to jmeter-plugins
Hello Deepshikha Balliyan,

It appears you are missing some logic there.

Could you share with us the following information about your environment?

1. What version of JMeter you are using?
2. What version of Java are you using?
3. Which version of the plugin are you using? (I'm assuming you are using v2.0 by the trace)
4. Did you install the Plugin from the JMeter Plugins, or did it manually from the GitHub repository?

Also, any other relevant information that you consider it's important to mention from your environment, would allow us to help you with that issue.

Deepshikha Balliyan

unread,
Oct 3, 2022, 3:10:28 PM10/3/22
to jmeter-...@googlegroups.com
Hey Ricardo,

Thanks for your reply. Here are the details of my env :

1. What version of JMeter are you using?
       jmeter 5.1
2. What version of Java are you using?
      jdk 18
3. Which version of the plugin are you using? (I'm assuming you are using v2.0 by the trace)
     yes I am using blazemeter http2 sampler plugin
4. Did you install the Plugin from the JMeter Plugins, or did it manually from the GitHub repository
     I tried both and getting the same issue with both


--
You received this message because you are subscribed to a topic in the Google Groups "jmeter-plugins" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jmeter-plugins/PU13zErW2Kw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jmeter-plugin...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jmeter-plugins/50136217-8361-4f02-928a-1fdd1dfa3f51n%40googlegroups.com.

Ricardo Poleo

unread,
Oct 3, 2022, 4:49:12 PM10/3/22
to jmeter-plugins
Well, I have some theories about where the issue can be.

1st: Could be that there is another error that we are not seeing that is reflected in another part of the jmeter.log (could you check this?)
2nd: Do you have another version of this plugin in the JMETER/lib/ext folder? They might be colliding (there is another version of the http2 plugin that is considered legacy, maybe the issue is there. Could you also check this?)
3rd: Last but, not least, the plugin is using JMeter 5.4.3, it is very unlikely that this is the issue but, I would recommend you to use, at least, JMeter 5.4.3 to see it the issue is solved with that. I would highly recommend using a clean version (to avoid any dependency's collision with other plugins). This is like "the last test", in case everything else fails.

Please let me know if any of these points fixes your problem or 

Deepshikha Balliyan

unread,
Oct 3, 2022, 5:35:39 PM10/3/22
to jmeter-...@googlegroups.com
Hey Ricardo,

After upgrading to jmeter 5.4.3 I am able to add the http2 sampler in the script. Looks like there is some issue with jmeter 5.1 version (I downloaded the new copy of 5.1 and still getting the same issue with the same).

Deepshikha Balliyan

unread,
Oct 3, 2022, 5:46:06 PM10/3/22
to jmeter-...@googlegroups.com
Hey Ricardo,

I tried again with the new version of jmeter 5.1 and its working fine. I am able to add http2 sampler without any problem. Thanks a lot for helping me out !!

Help appreciated !!

Ricardo Poleo

unread,
Oct 3, 2022, 5:58:37 PM10/3/22
to jmeter-plugins
That's awesome to hear Deepshikha.

I'm happy to help, don't hesitate to ask again.

Have a great week :D


DT

unread,
Oct 4, 2022, 1:15:45 AM10/4/22
to jmeter-plugins
  1. According to JMeter Best Practices you should always be using the latest version of JMeter and looking into your 5.1 r1853635  log part I believe that you're at JMeter 5.1. Consider upgrading to JMeter 5.5 (or whatever is the latest stable version available at JMeter Downloads page)
  2. According to HTTP2 plugin description "Major release using as baseline Java 11 and Jetty 11" and looking into your 1.8.0_341 it seems that you're using Java 8 so consider upgrading to JDK11
Untitled.png
Reply all
Reply to author
Forward
0 new messages