apache / jmeter

Apache JMeter open-source load testing tool for analyzing and measuring the performance of a variety of services
https://jmeter.apache.org/
Apache License 2.0
8.35k stars 2.1k forks source link

commons-math3 dependency is missing in the jmeter lib package (nightly build) #3490

Closed asfimport closed 9 years ago

asfimport commented 9 years ago

Chaitanya Bhatt (Bug 57303): After downloading apache-jmeter-r1642603 bin and lib package, I tried to start a project with backendlistener and noticed no class def found error message: 2014/12/02 21:56:22 WARN - jmeter.gui.action.Load: Missing jar file java.lang.NoClassDefFoundError: org/apache/commons/math3/stat/descriptive/DescriptiveStatistics at org.apache.jmeter.visualizers.backend.UserMetric.<init>(UserMetric.java:33) at org.apache.jmeter.visualizers.backend.AbstractBackendListenerClient.<init>(AbstractBackendListenerClient.java:56) at org.apache.jmeter.visualizers.backend.graphite.GraphiteBackendListenerClient.<init>(GraphiteBackendListenerClient.java:83) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:408) at java.lang.Class.newInstance(Class.java:438) at org.apache.jmeter.visualizers.backend.BackendListenerGui.actionPerformed(BackendListenerGui.java:165) at javax.swing.JComboBox.fireActionEvent(JComboBox.java:1258) at javax.swing.JComboBox.setSelectedItem(JComboBox.java:586) at org.apache.jmeter.visualizers.backend.BackendListenerGui.configure(BackendListenerGui.java:230) at org.apache.jmeter.gui.tree.JMeterTreeModel.addComponent(JMeterTreeModel.java:154) at org.apache.jmeter.gui.tree.JMeterTreeModel.addSubTree(JMeterTreeModel.java:129) at org.apache.jmeter.gui.tree.JMeterTreeModel.addSubTree(JMeterTreeModel.java:129) at org.apache.jmeter.gui.tree.JMeterTreeModel.addSubTree(JMeterTreeModel.java:121) at org.apache.jmeter.gui.GuiPackage.addSubTree(GuiPackage.java:495) at org.apache.jmeter.gui.action.Load.insertLoadedTree(Load.java:199) at org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:136) at org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:105) at org.apache.jmeter.gui.action.LoadRecentProject.doAction(LoadRecentProject.java:68) at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:81) at org.apache.jmeter.gui.action.ActionRouter.access$000(ActionRouter.java:40) at org.apache.jmeter.gui.action.ActionRouter$1.run(ActionRouter.java:63) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744) at java.awt.EventQueue.access$400(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:697) at java.awt.EventQueue$3.run(EventQueue.java:691) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75) at java.awt.EventQueue.dispatchEvent(EventQueue.java:714) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) Caused by: java.lang.ClassNotFoundException: org.apache.commons.math3.stat.descriptive.DescriptiveStatistics at java.net.URLClassLoader$1.run(URLClassLoader.java:372) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:360) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 38 more

Version: Nightly Severity: major OS: All

asfimport commented 9 years ago

Sebb (migrated from Bugzilla): Thanks - there's a typo in the section of the build file that creates the lib jar:

--- build.xml (revision 1642200) +++ build.xml (working copy) @@ -365,7 +365,7 @@ <include name="${lib.dir}/${commons-jexl2.jar}"/> <include name="${lib.dir}/${commons-lang3.jar}"/> <include name="${lib.dir}/${commons-logging.jar}"/>

We'll fix that shortly

asfimport commented 9 years ago

@pmouawad (migrated from Bugzilla): Date: Fri Dec 5 12:07:52 2014 New Revision: 1643251

URL: http://svn.apache.org/viewvc?rev=1643251&view=rev Log: https://github.com/apache/jmeter/issues/3490 - commons-math3 dependency is missing in the jmeter lib package (nightly build) https://github.com/apache/jmeter/issues/3490

Modified: jmeter/trunk/build.xml jmeter/trunk/xdocs/changes.xml