Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jmeter 5.5/5.6.3 did not recognize di-kafkameter-1.3.jar #30

Open
sweekarJ opened this issue Dec 4, 2024 · 3 comments
Open

Jmeter 5.5/5.6.3 did not recognize di-kafkameter-1.3.jar #30

sweekarJ opened this issue Dec 4, 2024 · 3 comments
Assignees

Comments

@sweekarJ
Copy link

sweekarJ commented Dec 4, 2024

Step 1: Jar preparation
I have cloned the project did
mvn clean install to generate
di-kafkameter-1.3.jar

Step 2: Jmeter Installation
I have installed Jmeter 5.5 (and also tried with 5.6.3)

Step 3: Added jar in \lib\ext
di-kafkameter-1.3.jar

Step 3: Restarted JMeter
Plugin is not recognized by Jmeter, I see below in jmeter log

2024-12-04 18:39:57,926 INFO o.a.j.u.JMeterUtils: Setting Locale to en_EN 2024-12-04 18:39:57,949 INFO o.a.j.JMeter: Loading user properties from: user.properties 2024-12-04 18:39:57,950 INFO o.a.j.JMeter: Loading system properties from: system.properties 2024-12-04 18:39:57,958 INFO o.a.j.JMeter: Copyright (c) 1998-2022 The Apache Software Foundation 2024-12-04 18:39:57,959 INFO o.a.j.JMeter: Version 5.5 2024-12-04 18:39:57,959 INFO o.a.j.JMeter: java.version=17.0.7 2024-12-04 18:39:57,959 INFO o.a.j.JMeter: java.vm.name=Java HotSpot(TM) 64-Bit Server VM 2024-12-04 18:39:57,959 INFO o.a.j.JMeter: os.name=Windows 11 2024-12-04 18:39:57,959 INFO o.a.j.JMeter: os.arch=amd64 2024-12-04 18:39:57,959 INFO o.a.j.JMeter: os.version=10.0 2024-12-04 18:39:57,959 INFO o.a.j.JMeter: file.encoding=Cp1252 2024-12-04 18:39:57,959 INFO o.a.j.JMeter: java.awt.headless=null 2024-12-04 18:39:57,959 INFO o.a.j.JMeter: Max memory =1073741824 2024-12-04 18:39:57,959 INFO o.a.j.JMeter: Available Processors =8 2024-12-04 18:39:57,969 INFO o.a.j.JMeter: Default Locale=English (EN) 2024-12-04 18:39:57,969 INFO o.a.j.JMeter: JMeter Locale=English (EN) 2024-12-04 18:39:57,969 INFO o.a.j.JMeter: JMeterHome=C:\*** \Downloads\apache-jmeter-5.5\apache-jmeter-5.5 2024-12-04 18:39:57,969 INFO o.a.j.JMeter: user.dir =C:\*** \Downloads\apache-jmeter-5.5\apache-jmeter-5.5\bin 2024-12-04 18:39:57,970 INFO o.a.j.JMeter: PWD =C:\*** \Downloads\apache-jmeter-5.5\apache-jmeter-5.5\bin 2024-12-04 18:39:58,001 INFO o.a.j.JMeter: IP: ***** Name: a FullName: ***** 2024-12-04 18:39:58,013 INFO o.a.j.JMeter: Loaded icon properties from org/apache/jmeter/images/icon.properties 2024-12-04 18:39:58,274 INFO o.a.j.JMeterGuiLauncher: Setting LAF to: com.github.weisj.darklaf.DarkLaf:com.github.weisj.darklaf.theme.DarculaTheme 2024-12-04 18:40:00,110 WARN o.a.j.g.u.MenuFactory: Configuration error, probably corrupt or missing third party library(jar)? Could not create class: com.di.jmeter.kafka.config.KafkaConsumerConfig. java.lang.NoClassDefFoundError: org/apache/kafka/clients/consumer/KafkaConsumer at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:?] at java.lang.Class.privateGetDeclaredMethods(Class.java:3402) ~[?:?] at java.lang.Class.privateGetPublicMethods(Class.java:3427) ~[?:?] at java.lang.Class.getMethods(Class.java:2019) ~[?:?] at com.sun.beans.introspect.MethodInfo.get(MethodInfo.java:70) ~[?:?] at com.sun.beans.introspect.ClassInfo.getMethods(ClassInfo.java:80) ~[?:?] at java.beans.Introspector.getTargetMethodInfo(Introspector.java:1029) ~[?:?] at java.beans.Introspector.getBeanInfo(Introspector.java:446) ~[?:?] at java.beans.Introspector.getBeanInfo(Introspector.java:283) ~[?:?] at java.beans.Introspector.getBeanInfo(Introspector.java:225) ~[?:?] at org.apache.jmeter.testbeans.BeanInfoSupport.<init>(BeanInfoSupport.java:116) ~[ApacheJMeter_core.jar:5.5] at com.di.jmeter.kafka.config.KafkaConsumerConfigBeanInfo.<init>(KafkaConsumerConfigBeanInfo.java:52) ~[di-kafkameter-1.3.jar:?] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) ~[?:?] at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?] at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) ~[?:?] at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) ~[?:?] at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) ~[?:?] at java.lang.Class.newInstance(Class.java:645) ~[?:?] at com.sun.beans.finder.InstanceFinder.instantiate(InstanceFinder.java:98) ~[?:?] at com.sun.beans.finder.InstanceFinder.find(InstanceFinder.java:66) ~[?:?] at com.sun.beans.finder.BeanInfoFinder.find(BeanInfoFinder.java:41) ~[?:?] at java.beans.Introspector.findExplicitBeanInfo(Introspector.java:468) ~[?:?] at java.beans.Introspector.<init>(Introspector.java:418) ~[?:?] at java.beans.Introspector.getBeanInfo(Introspector.java:195) ~[?:?] at org.apache.jmeter.testbeans.gui.TestBeanGUI.<init>(TestBeanGUI.java:162) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.gui.util.MenuFactory.getGUIComponent(MenuFactory.java:202) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.gui.util.MenuFactory.initializeMenus(MenuFactory.java:151) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.gui.util.MenuFactory.<clinit>(MenuFactory.java:107) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.control.gui.TestPlanGui.createPopupMenu(TestPlanGui.java:94) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.gui.tree.JMeterTreeNode.createPopupMenu(JMeterTreeNode.java:184) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.gui.action.EditCommand.doAction(EditCommand.java:46) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:87) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:69) ~[ApacheJMeter_core.jar:5.5] at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318) ~[?:?] at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:771) ~[?:?] at java.awt.EventQueue$4.run(EventQueue.java:722) ~[?:?] at java.awt.EventQueue$4.run(EventQueue.java:716) ~[?:?] at java.security.AccessController.doPrivileged(AccessController.java:399) ~[?:?] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) ~[?:?] at java.awt.EventQueue.dispatchEvent(EventQueue.java:741) ~[?:?] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) ~[?:?] at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) ~[?:?] at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:117) ~[?:?] at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:191) ~[?:?] at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:236) ~[?:?] at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:234) ~[?:?] at java.security.AccessController.doPrivileged(AccessController.java:318) ~[?:?] at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:234) ~[?:?] at java.awt.Dialog.show(Dialog.java:1080) ~[?:?] at java.awt.Component.show(Component.java:1728) ~[?:?] at java.awt.Component.setVisible(Component.java:1675) ~[?:?] at java.awt.Window.setVisible(Window.java:1036) ~[?:?] at java.awt.Dialog.setVisible(Dialog.java:1016) ~[?:?] at org.apache.jmeter.SplashScreen.lambda$showScreen$0(SplashScreen.java:95) ~[ApacheJMeter_core.jar:5.5] at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318) ~[?:?] at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:771) ~[?:?] at java.awt.EventQueue$4.run(EventQueue.java:722) ~[?:?] at java.awt.EventQueue$4.run(EventQueue.java:716) ~[?:?] at java.security.AccessController.doPrivileged(AccessController.java:399) ~[?:?] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) ~[?:?] at java.awt.EventQueue.dispatchEvent(EventQueue.java:741) ~[?:?] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) ~[?:?] at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) ~[?:?] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) ~[?:?] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) ~[?:?] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) ~[?:?] at java.awt.EventDispatchThread.run(EventDispatchThread.java:90) ~[?:?] Caused by: java.lang.ClassNotFoundException: org.apache.kafka.clients.consumer.KafkaConsumer at java.net.URLClassLoader.findClass(URLClassLoader.java:445) ~[?:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:587) ~[?:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?] ... 68 more 2024-12-04 18:40:00,124 WARN o.a.j.g.u.MenuFactory: Configuration error, probably corrupt or missing third party library(jar)? Could not create class: com.di.jmeter.kafka.config.KafkaProducerConfig. java.lang.NoClassDefFoundError: org/apache/kafka/clients/producer/KafkaProducer at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:?] at java.lang.Class.privateGetDeclaredMethods(Class.java:3402) ~[?:?] at java.lang.Class.privateGetPublicMethods(Class.java:3427) ~[?:?] at java.lang.Class.getMethods(Class.java:2019) ~[?:?] at com.sun.beans.introspect.MethodInfo.get(MethodInfo.java:70) ~[?:?] at com.sun.beans.introspect.ClassInfo.getMethods(ClassInfo.java:80) ~[?:?] at java.beans.Introspector.getTargetMethodInfo(Introspector.java:1029) ~[?:?] at java.beans.Introspector.getBeanInfo(Introspector.java:446) ~[?:?] at java.beans.Introspector.getBeanInfo(Introspector.java:283) ~[?:?] at java.beans.Introspector.getBeanInfo(Introspector.java:225) ~[?:?] at org.apache.jmeter.testbeans.BeanInfoSupport.<init>(BeanInfoSupport.java:116) ~[ApacheJMeter_core.jar:5.5] at com.di.jmeter.kafka.config.KafkaProducerConfigBeanInfo.<init>(KafkaProducerConfigBeanInfo.java:52) ~[di-kafkameter-1.3.jar:?] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) ~[?:?] at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?] at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) ~[?:?] at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) ~[?:?] at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) ~[?:?] at java.lang.Class.newInstance(Class.java:645) ~[?:?] at com.sun.beans.finder.InstanceFinder.instantiate(InstanceFinder.java:98) ~[?:?] at com.sun.beans.finder.InstanceFinder.find(InstanceFinder.java:66) ~[?:?] at com.sun.beans.finder.BeanInfoFinder.find(BeanInfoFinder.java:41) ~[?:?] at java.beans.Introspector.findExplicitBeanInfo(Introspector.java:468) ~[?:?] at java.beans.Introspector.<init>(Introspector.java:418) ~[?:?] at java.beans.Introspector.getBeanInfo(Introspector.java:195) ~[?:?] at org.apache.jmeter.testbeans.gui.TestBeanGUI.<init>(TestBeanGUI.java:162) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.gui.util.MenuFactory.getGUIComponent(MenuFactory.java:202) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.gui.util.MenuFactory.initializeMenus(MenuFactory.java:151) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.gui.util.MenuFactory.<clinit>(MenuFactory.java:107) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.control.gui.TestPlanGui.createPopupMenu(TestPlanGui.java:94) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.gui.tree.JMeterTreeNode.createPopupMenu(JMeterTreeNode.java:184) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.gui.action.EditCommand.doAction(EditCommand.java:46) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:87) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:69) ~[ApacheJMeter_core.jar:5.5] at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318) ~[?:?] at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:771) ~[?:?] at java.awt.EventQueue$4.run(EventQueue.java:722) ~[?:?] at java.awt.EventQueue$4.run(EventQueue.java:716) ~[?:?] at java.security.AccessController.doPrivileged(AccessController.java:399) ~[?:?] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) ~[?:?] at java.awt.EventQueue.dispatchEvent(EventQueue.java:741) ~[?:?] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) ~[?:?] at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) ~[?:?] at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:117) ~[?:?] at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:191) ~[?:?] at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:236) ~[?:?] at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:234) ~[?:?] at java.security.AccessController.doPrivileged(AccessController.java:318) ~[?:?] at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:234) ~[?:?] at java.awt.Dialog.show(Dialog.java:1080) ~[?:?] at java.awt.Component.show(Component.java:1728) ~[?:?] at java.awt.Component.setVisible(Component.java:1675) ~[?:?] at java.awt.Window.setVisible(Window.java:1036) ~[?:?] at java.awt.Dialog.setVisible(Dialog.java:1016) ~[?:?] at org.apache.jmeter.SplashScreen.lambda$showScreen$0(SplashScreen.java:95) ~[ApacheJMeter_core.jar:5.5] at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318) ~[?:?] at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:771) ~[?:?] at java.awt.EventQueue$4.run(EventQueue.java:722) ~[?:?] at java.awt.EventQueue$4.run(EventQueue.java:716) ~[?:?] at java.security.AccessController.doPrivileged(AccessController.java:399) ~[?:?] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) ~[?:?] at java.awt.EventQueue.dispatchEvent(EventQueue.java:741) ~[?:?] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) ~[?:?] at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) ~[?:?] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) ~[?:?] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) ~[?:?] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) ~[?:?] at java.awt.EventDispatchThread.run(EventDispatchThread.java:90) ~[?:?] Caused by: java.lang.ClassNotFoundException: org.apache.kafka.clients.producer.KafkaProducer at java.net.URLClassLoader.findClass(URLClassLoader.java:445) ~[?:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:587) ~[?:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?] ... 68 more 2024-12-04 18:40:00,129 WARN o.a.j.g.u.MenuFactory: Configuration error, probably corrupt or missing third party library(jar)? Could not create class: com.di.jmeter.kafka.sampler.KafkaConsumerSampler. java.lang.NoClassDefFoundError: org/apache/kafka/clients/consumer/KafkaConsumer at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:?] at java.lang.Class.privateGetDeclaredMethods(Class.java:3402) ~[?:?] at java.lang.Class.privateGetPublicMethods(Class.java:3427) ~[?:?] at java.lang.Class.getMethods(Class.java:2019) ~[?:?] at com.sun.beans.introspect.MethodInfo.get(MethodInfo.java:70) ~[?:?] at com.sun.beans.introspect.ClassInfo.getMethods(ClassInfo.java:80) ~[?:?] at java.beans.Introspector.getTargetMethodInfo(Introspector.java:1029) ~[?:?] at java.beans.Introspector.getBeanInfo(Introspector.java:446) ~[?:?] at java.beans.Introspector.getBeanInfo(Introspector.java:283) ~[?:?] at java.beans.Introspector.getBeanInfo(Introspector.java:225) ~[?:?] at org.apache.jmeter.testbeans.BeanInfoSupport.<init>(BeanInfoSupport.java:116) ~[ApacheJMeter_core.jar:5.5] at com.di.jmeter.kafka.sampler.KafkaConsumerSamplerBeanInfo.<init>(KafkaConsumerSamplerBeanInfo.java:27) ~[di-kafkameter-1.3.jar:?] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) ~[?:?] at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?] at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) ~[?:?] at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) ~[?:?] at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) ~[?:?] at java.lang.Class.newInstance(Class.java:645) ~[?:?] at com.sun.beans.finder.InstanceFinder.instantiate(InstanceFinder.java:98) ~[?:?] at com.sun.beans.finder.InstanceFinder.find(InstanceFinder.java:66) ~[?:?] at com.sun.beans.finder.BeanInfoFinder.find(BeanInfoFinder.java:41) ~[?:?] at java.beans.Introspector.findExplicitBeanInfo(Introspector.java:468) ~[?:?] at java.beans.Introspector.<init>(Introspector.java:418) ~[?:?] at java.beans.Introspector.getBeanInfo(Introspector.java:195) ~[?:?] at org.apache.jmeter.testbeans.gui.TestBeanGUI.<init>(TestBeanGUI.java:162) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.gui.util.MenuFactory.getGUIComponent(MenuFactory.java:202) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.gui.util.MenuFactory.initializeMenus(MenuFactory.java:151) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.gui.util.MenuFactory.<clinit>(MenuFactory.java:107) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.control.gui.TestPlanGui.createPopupMenu(TestPlanGui.java:94) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.gui.tree.JMeterTreeNode.createPopupMenu(JMeterTreeNode.java:184) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.gui.action.EditCommand.doAction(EditCommand.java:46) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:87) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:69) ~[ApacheJMeter_core.jar:5.5] at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318) ~[?:?] at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:771) ~[?:?] at java.awt.EventQueue$4.run(EventQueue.java:722) ~[?:?] at java.awt.EventQueue$4.run(EventQueue.java:716) ~[?:?] at java.security.AccessController.doPrivileged(AccessController.java:399) ~[?:?] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) ~[?:?] at java.awt.EventQueue.dispatchEvent(EventQueue.java:741) ~[?:?] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) ~[?:?] at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) ~[?:?] at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:117) ~[?:?] at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:191) ~[?:?] at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:236) ~[?:?] at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:234) ~[?:?] at java.security.AccessController.doPrivileged(AccessController.java:318) ~[?:?] at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:234) ~[?:?] at java.awt.Dialog.show(Dialog.java:1080) ~[?:?] at java.awt.Component.show(Component.java:1728) ~[?:?] at java.awt.Component.setVisible(Component.java:1675) ~[?:?] at java.awt.Window.setVisible(Window.java:1036) ~[?:?] at java.awt.Dialog.setVisible(Dialog.java:1016) ~[?:?] at org.apache.jmeter.SplashScreen.lambda$showScreen$0(SplashScreen.java:95) ~[ApacheJMeter_core.jar:5.5] at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318) ~[?:?] at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:771) ~[?:?] at java.awt.EventQueue$4.run(EventQueue.java:722) ~[?:?] at java.awt.EventQueue$4.run(EventQueue.java:716) ~[?:?] at java.security.AccessController.doPrivileged(AccessController.java:399) ~[?:?] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) ~[?:?] at java.awt.EventQueue.dispatchEvent(EventQueue.java:741) ~[?:?] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) ~[?:?] at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) ~[?:?] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) ~[?:?] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) ~[?:?] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) ~[?:?] at java.awt.EventDispatchThread.run(EventDispatchThread.java:90) ~[?:?] Caused by: java.lang.ClassNotFoundException: org.apache.kafka.clients.consumer.KafkaConsumer at java.net.URLClassLoader.findClass(URLClassLoader.java:445) ~[?:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:587) ~[?:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?] ... 68 more 2024-12-04 18:40:00,133 WARN o.a.j.g.u.MenuFactory: Configuration error, probably corrupt or missing third party library(jar)? Could not create class: com.di.jmeter.kafka.sampler.KafkaProducerSampler. java.lang.NoClassDefFoundError: org/apache/kafka/common/header/Header at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:?] at java.lang.Class.privateGetDeclaredMethods(Class.java:3402) ~[?:?] at java.lang.Class.privateGetPublicMethods(Class.java:3427) ~[?:?] at java.lang.Class.getMethods(Class.java:2019) ~[?:?] at com.sun.beans.introspect.MethodInfo.get(MethodInfo.java:70) ~[?:?] at com.sun.beans.introspect.ClassInfo.getMethods(ClassInfo.java:80) ~[?:?] at java.beans.Introspector.getTargetMethodInfo(Introspector.java:1029) ~[?:?] at java.beans.Introspector.getBeanInfo(Introspector.java:446) ~[?:?] at java.beans.Introspector.getBeanInfo(Introspector.java:283) ~[?:?] at java.beans.Introspector.getBeanInfo(Introspector.java:225) ~[?:?] at org.apache.jmeter.testbeans.BeanInfoSupport.<init>(BeanInfoSupport.java:116) ~[ApacheJMeter_core.jar:5.5] at com.di.jmeter.kafka.sampler.KafkaProducerSamplerBeanInfo.<init>(KafkaProducerSamplerBeanInfo.java:31) ~[di-kafkameter-1.3.jar:?] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) ~[?:?] at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?] at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) ~[?:?] at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) ~[?:?] at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) ~[?:?] at java.lang.Class.newInstance(Class.java:645) ~[?:?] at com.sun.beans.finder.InstanceFinder.instantiate(InstanceFinder.java:98) ~[?:?] at com.sun.beans.finder.InstanceFinder.find(InstanceFinder.java:66) ~[?:?] at com.sun.beans.finder.BeanInfoFinder.find(BeanInfoFinder.java:41) ~[?:?] at java.beans.Introspector.findExplicitBeanInfo(Introspector.java:468) ~[?:?] at java.beans.Introspector.<init>(Introspector.java:418) ~[?:?] at java.beans.Introspector.getBeanInfo(Introspector.java:195) ~[?:?] at org.apache.jmeter.testbeans.gui.TestBeanGUI.<init>(TestBeanGUI.java:162) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.gui.util.MenuFactory.getGUIComponent(MenuFactory.java:202) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.gui.util.MenuFactory.initializeMenus(MenuFactory.java:151) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.gui.util.MenuFactory.<clinit>(MenuFactory.java:107) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.control.gui.TestPlanGui.createPopupMenu(TestPlanGui.java:94) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.gui.tree.JMeterTreeNode.createPopupMenu(JMeterTreeNode.java:184) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.gui.action.EditCommand.doAction(EditCommand.java:46) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:87) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:69) ~[ApacheJMeter_core.jar:5.5] at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318) ~[?:?] at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:771) ~[?:?] at java.awt.EventQueue$4.run(EventQueue.java:722) ~[?:?] at java.awt.EventQueue$4.run(EventQueue.java:716) ~[?:?] at java.security.AccessController.doPrivileged(AccessController.java:399) ~[?:?] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) ~[?:?] at java.awt.EventQueue.dispatchEvent(EventQueue.java:741) ~[?:?] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) ~[?:?] at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) ~[?:?] at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:117) ~[?:?] at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:191) ~[?:?] at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:236) ~[?:?] at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:234) ~[?:?] at java.security.AccessController.doPrivileged(AccessController.java:318) ~[?:?] at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:234) ~[?:?] at java.awt.Dialog.show(Dialog.java:1080) ~[?:?] at java.awt.Component.show(Component.java:1728) ~[?:?] at java.awt.Component.setVisible(Component.java:1675) ~[?:?] at java.awt.Window.setVisible(Window.java:1036) ~[?:?] at java.awt.Dialog.setVisible(Dialog.java:1016) ~[?:?] at org.apache.jmeter.SplashScreen.lambda$showScreen$0(SplashScreen.java:95) ~[ApacheJMeter_core.jar:5.5] at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318) ~[?:?] at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:771) ~[?:?] at java.awt.EventQueue$4.run(EventQueue.java:722) ~[?:?] at java.awt.EventQueue$4.run(EventQueue.java:716) ~[?:?] at java.security.AccessController.doPrivileged(AccessController.java:399) ~[?:?] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) ~[?:?] at java.awt.EventQueue.dispatchEvent(EventQueue.java:741) ~[?:?] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) ~[?:?] at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) ~[?:?] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) ~[?:?] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) ~[?:?] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) ~[?:?] at java.awt.EventDispatchThread.run(EventDispatchThread.java:90) ~[?:?] Caused by: java.lang.ClassNotFoundException: org.apache.kafka.common.header.Header at java.net.URLClassLoader.findClass(URLClassLoader.java:445) ~[?:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:587) ~[?:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?] ... 68 more

@rollno748
Copy link
Owner

Hello @sweekarJ

May I ask you why you are compiling the source code, as it is already available in the Jmeter plugins manager.

Secondly, if you want to compile and use it. You need to copy the required dependent libraries in the lib directory.

Your error says, it is missing the required libs

@sweekarJ
Copy link
Author

sweekarJ commented Dec 4, 2024

Thank you for the explanation I will add dependent jars and try,
Not sure if I misread the readme, or can we please update the readme

Installation Instructions
Download the source code from the GitHub.
Just do a mvn clean install (M2 is required)
Jar will be generated under the target directory (di-kafkameter-1.1.jar).
Copy the Jar to /lib/ext/
May be add one line -> copy the jar dependencies as listed above in /lib folder

@rollno748
Copy link
Owner

Sure,

I will update the readme
Thanks for your support and hit a star if you like the plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants