I am trying to open JMX which loads and runs fine in JMeter 2.11 but its failing with below errors when I am trying to open it in Jmeter 3.2
2017-04-14 14:39:39,515 ERROR o.a.j.t.g.TestBeanGUI: This should never happen!
java.lang.Error: null
at org.apache.jmeter.testbeans.gui.TestBeanGUI.<init>(TestBeanGUI.java:159) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.gui.GuiPackage.getGuiFromCache(GuiPackage.java:393) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.gui.GuiPackage.getGui(GuiPackage.java:245) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.gui.GuiPackage.getGui(GuiPackage.java:216) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.gui.tree.JMeterTreeModel.addComponent(JMeterTreeModel.java:145) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.gui.tree.JMeterTreeModel.addSubTree(JMeterTreeModel.java:121) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.gui.tree.JMeterTreeModel.addSubTree(JMeterTreeModel.java:121) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.gui.tree.JMeterTreeModel.addSubTree(JMeterTreeModel.java:121) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.gui.tree.JMeterTreeModel.addSubTree(JMeterTreeModel.java:113) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.gui.GuiPackage.addSubTree(GuiPackage.java:517) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.gui.action.Load.insertLoadedTree(Load.java:194) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:131) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:102) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.gui.action.LoadRecentProject.doActionAfterCheck(LoadRecentProject.java:67) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.gui.action.AbstractActionWithNoRunningTest.doAction(AbstractActionWithNoRunningTest.java:45) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:74) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:59) ~[ApacheJMeter_core.jar:3.2 r1790748]
at java.awt.event.InvocationEvent.dispatch(Unknown Source) [?:1.8.0_111]
at java.awt.EventQueue.dispatchEventImpl(Unknown Source) [?:1.8.0_111]
at java.awt.EventQueue.access$500(Unknown Source) [?:1.8.0_111]
at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_111]
at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_111]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_111]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) [?:1.8.0_111]
at java.awt.EventQueue.dispatchEvent(Unknown Source) [?:1.8.0_111]
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [?:1.8.0_111]
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [?:1.8.0_111]
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [?:1.8.0_111]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_111]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_111]
at java.awt.EventDispatchThread.run(Unknown Source) [?:1.8.0_111]
Check release notes to ensure you're not using removed elements.
Check you're not using incompatible plugin.
If issue persists, please open a bug here
jmeter.apache.org/issues.html
with your test plan attached.
Related
I'm testing http://lifecharger.org/make-the-rest-of-your-life-the-best-of-your-life/ through Jmeter and I'm getting below error.
my JMeter version is 5.1.1
2019-07-08 11:47:04,668 ERROR o.a.j.g.a.ActionRouter: Error processing org.apache.jmeter.gui.action.Start#12ab28e
java.lang.ArrayIndexOutOfBoundsException: 0
at org.apache.jmeter.gui.action.Start.startEngine(Start.java:188) ~[ApacheJMeter_core.jar:5.1.1 r1855137]
at org.apache.jmeter.gui.action.Start.doAction(Start.java:114) ~[ApacheJMeter_core.jar:5.1.1 r1855137]
at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:88) ~[ApacheJMeter_core.jar:5.1.1 r1855137]
at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:70) ~[ApacheJMeter_core.jar:5.1.1 r1855137]
at java.awt.event.InvocationEvent.dispatch(Unknown Source) [?:1.8.0_211]
at java.awt.EventQueue.dispatchEventImpl(Unknown Source) [?:1.8.0_211]
at java.awt.EventQueue.access$500(Unknown Source) [?:1.8.0_211]
at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_211]
at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_211]
at java.security.AccessController.doPrivileged(Native Method) [?:1.8.0_211]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) [?:1.8.0_211]
at java.awt.EventQueue.dispatchEvent(Unknown Source) [?:1.8.0_211]
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [?:1.8.0_211]
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [?:1.8.0_211]
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [?:1.8.0_211]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_211]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_211]
at java.awt.EventDispatchThread.run(Unknown Source) [?:1.8.0_211]
How to fix this issue?
I'm using jmeter automation testing resource to learn JMeter
Your Test Plan is disabled (gray) and that's causing the exception
You can enable it using Ctrl + T or Right Click on it and Enable
I am trying to connect Jmeter to Kibana using this manual:
https://blogs.sap.com/2016/04/06/load-testing-with-jmeter-test-results-visualization-using-kibana-dashboards/comment-page-1/#comment-398399
I am using JMeter 3.2, and downloaded elasticsearch-5.6.4.zip.
I extract the zip and put the folder elasticsearch-5.6.4 in C:\Jmeter\apache-jmeter-3.2\lib
I downloaded the jar JMeter_ElasticsearchListener.jar and put it in C:\Jmeter\apache-jmeter-3.2\lib\ext
I restart JMeter and pressed add -> listener -> backend listener and get these errors:
017-11-11 09:39:12,429 ERROR o.a.j.g.GuiPackage: Problem retrieving gui for org.apache.jmeter.visualizers.backend.BackendListenerGui
java.lang.NoClassDefFoundError: org/elasticsearch/client/RestClientBuilder$HttpClientConfigCallback
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_141]
at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_141]
at org.apache.jmeter.visualizers.backend.BackendListenerGui.actionPerformed(BackendListenerGui.java:166) ~[ApacheJMeter_components.jar:3.2 r1790748]
at javax.swing.JComboBox.fireActionEvent(Unknown Source) ~[?:1.8.0_141]
at javax.swing.JComboBox.setSelectedItem(Unknown Source) ~[?:1.8.0_141]
at javax.swing.JComboBox.setSelectedIndex(Unknown Source) ~[?:1.8.0_141]
at org.apache.jmeter.visualizers.backend.BackendListenerGui.clearGui(BackendListenerGui.java:281) ~[ApacheJMeter_components.jar:3.2 r1790748]
at org.apache.jmeter.gui.GuiPackage.createTestElement(GuiPackage.java:348) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.gui.action.AddToTree.doAction(AddToTree.java:68) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:74) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:59) ~[ApacheJMeter_core.jar:3.2 r1790748]
at java.awt.event.InvocationEvent.dispatch(Unknown Source) [?:1.8.0_141]
at java.awt.EventQueue.dispatchEventImpl(Unknown Source) [?:1.8.0_141]
at java.awt.EventQueue.access$500(Unknown Source) [?:1.8.0_141]
at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_141]
at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_141]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_141]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) [?:1.8.0_141]
at java.awt.EventQueue.dispatchEvent(Unknown Source) [?:1.8.0_141]
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [?:1.8.0_141]
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [?:1.8.0_141]
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [?:1.8.0_141]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_141]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_141]
at java.awt.EventDispatchThread.run(Unknown Source) [?:1.8.0_141]
Caused by: java.lang.ClassNotFoundException: org.elasticsearch.client.RestClientBuilder$HttpClientConfigCallback
at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_141]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_141]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_141]
... 25 more
2017-11-11 09:39:40,782 ERROR o.a.j.g.a.AddToTree: Exception while adding a component to tree.
java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/elasticsearch/client/RestClientBuilder$HttpClientConfigCallback
at org.apache.jmeter.gui.GuiPackage.createTestElement(GuiPackage.java:359) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.gui.action.AddToTree.doAction(AddToTree.java:68) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:74) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:59) ~[ApacheJMeter_core.jar:3.2 r1790748]
at java.awt.event.InvocationEvent.dispatch(Unknown Source) [?:1.8.0_141]
at java.awt.EventQueue.dispatchEventImpl(Unknown Source) [?:1.8.0_141]
at java.awt.EventQueue.access$500(Unknown Source) [?:1.8.0_141]
at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_141]
at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_141]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_141]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) [?:1.8.0_141]
at java.awt.EventQueue.dispatchEvent(Unknown Source) [?:1.8.0_141]
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [?:1.8.0_141]
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [?:1.8.0_141]
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [?:1.8.0_141]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_141]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_141]
at java.awt.EventDispatchThread.run(Unknown Source) [?:1.8.0_141]
Caused by: java.lang.NoClassDefFoundError: org/elasticsearch/client/RestClientBuilder$HttpClientConfigCallback
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_141]
at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_141]
at org.apache.jmeter.visualizers.backend.BackendListenerGui.actionPerformed(BackendListenerGui.java:166) ~[ApacheJMeter_components.jar:3.2 r1790748]
at javax.swing.JComboBox.fireActionEvent(Unknown Source) ~[?:1.8.0_141]
at javax.swing.JComboBox.setSelectedItem(Unknown Source) ~[?:1.8.0_141]
at javax.swing.JComboBox.setSelectedIndex(Unknown Source) ~[?:1.8.0_141]
at org.apache.jmeter.visualizers.backend.BackendListenerGui.clearGui(BackendListenerGui.java:281) ~[ApacheJMeter_components.jar:3.2 r1790748]
at org.apache.jmeter.gui.GuiPackage.createTestElement(GuiPackage.java:348) ~[ApacheJMeter_core.jar:3.2 r1790748]
... 17 more
Caused by: java.lang.ClassNotFoundException: org.elasticsearch.client.RestClientBuilder$HttpClientConfigCallback
at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_141]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_141]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_141]
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_141]
at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_141]
at org.apache.jmeter.visualizers.backend.BackendListenerGui.actionPerformed(BackendListenerGui.java:166) ~[ApacheJMeter_components.jar:3.2 r1790748]
at javax.swing.JComboBox.fireActionEvent(Unknown Source) ~[?:1.8.0_141]
at javax.swing.JComboBox.setSelectedItem(Unknown Source) ~[?:1.8.0_141]
at javax.swing.JComboBox.setSelectedIndex(Unknown Source) ~[?:1.8.0_141]
at org.apache.jmeter.visualizers.backend.BackendListenerGui.clearGui(BackendListenerGui.java:281) ~[ApacheJMeter_components.jar:3.2 r1790748]
at org.apache.jmeter.gui.GuiPackage.createTestElement(GuiPackage.java:348) ~[ApacheJMeter_core.jar:3.2 r1790748]
... 17 more
You are missing a jar, which is the REST client jar, just add the following jar to your lib folder (C:\Jmeter\apache-jmeter-3.2\lib)
elasticsearch-rest-client-5.6.4.jar
I don't think JMeter recursively searches any folders in its "lib" folder looking for any .jars it can add to its classpath, so I would recommend either moving all .jars from the elasticsearch-5.6.4 folder to JMeter's "lib" folder.
Alternatively you can add the next line to user.properties file (lives under "bin" folder of your JMeter installation)
user.classpath=C:\Jmeter\apache-jmeter-3.2\lib\elasticsearch-5.6.4`
In both cases JMeter restart will be required to pick the libraries up.
More information:
JMeter Classpath
Apache JMeter Properties Customization Guide
I use JMeter 3.3, I opened the Function Helper and tried the new function __RandomDate, Click Generate and got an error (other functions are working)
When calling in Test Plan ${__RandomDate(,2017-01-01,2018-01-01,,)} it works, but in Function Helper when you click Generate it ignores the input field and use the function without any values
2017-09-25 08:44:30,112 ERROR o.a.j.f.RandomDate: Failed to parse the date '' to shift with formatter 'Value(YearOfEra,4,19,EXCEEDS_PAD)'-'Value(MonthOfYear,2)'-'Value(DayOfMonth,2)java.time.format.DateTimeFormatterBuilder$DefaultValueParser#6426866cjava.time.format.DateTimeFormatterBuilder$DefaultValueParser#4b46653bjava.time.format.DateTimeFormatterBuilder$DefaultValueParser#108462fd'
java.time.format.DateTimeParseException: Text '' could not be parsed at index 0
at java.time.format.DateTimeFormatter.parseResolved0(Unknown Source) ~[?:1.8.0_144]
at java.time.format.DateTimeFormatter.parse(Unknown Source) ~[?:1.8.0_144]
at java.time.LocalDate.parse(Unknown Source) ~[?:1.8.0_144]
at org.apache.jmeter.functions.RandomDate.execute(RandomDate.java:189) [ApacheJMeter_functions.jar:3.3 r1808647]
at org.apache.jmeter.engine.util.CompoundVariable.execute(CompoundVariable.java:137) [ApacheJMeter_core.jar:3.3 r1808647]
at org.apache.jmeter.engine.util.CompoundVariable.execute(CompoundVariable.java:112) [ApacheJMeter_core.jar:3.3 r1808647]
at org.apache.jmeter.functions.gui.FunctionHelper.actionPerformed(FunctionHelper.java:181) [ApacheJMeter_core.jar:3.3 r1808647]
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) [?:1.8.0_144]
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) [?:1.8.0_144]
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) [?:1.8.0_144]
at javax.swing.DefaultButtonModel.setPressed(Unknown Source) [?:1.8.0_144]
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) [?:1.8.0_144]
at java.awt.Component.processMouseEvent(Unknown Source) [?:1.8.0_144]
at javax.swing.JComponent.processMouseEvent(Unknown Source) [?:1.8.0_144]
at java.awt.Component.processEvent(Unknown Source) [?:1.8.0_144]
at java.awt.Container.processEvent(Unknown Source) [?:1.8.0_144]
at java.awt.Component.dispatchEventImpl(Unknown Source) [?:1.8.0_144]
at java.awt.Container.dispatchEventImpl(Unknown Source) [?:1.8.0_144]
at java.awt.Component.dispatchEvent(Unknown Source) [?:1.8.0_144]
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) [?:1.8.0_144]
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) [?:1.8.0_144]
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) [?:1.8.0_144]
at java.awt.Container.dispatchEventImpl(Unknown Source) [?:1.8.0_144]
at java.awt.Window.dispatchEventImpl(Unknown Source) [?:1.8.0_144]
at java.awt.Component.dispatchEvent(Unknown Source) [?:1.8.0_144]
at java.awt.EventQueue.dispatchEventImpl(Unknown Source) [?:1.8.0_144]
at java.awt.EventQueue.access$500(Unknown Source) [?:1.8.0_144]
at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_144]
at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_144]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_144]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) [?:1.8.0_144]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) [?:1.8.0_144]
at java.awt.EventQueue$4.run(Unknown Source) [?:1.8.0_144]
at java.awt.EventQueue$4.run(Unknown Source) [?:1.8.0_144]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_144]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) [?:1.8.0_144]
at java.awt.EventQueue.dispatchEvent(Unknown Source) [?:1.8.0_144]
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [?:1.8.0_144]
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [?:1.8.0_144]
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [?:1.8.0_144]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_144]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_144]
at java.awt.EventDispatchThread.run(Unknown Source) [?:1.8.0_144]
2017-09-25 08:44:30,113 ERROR o.a.j.JMeter: Uncaught exception:
java.lang.IllegalArgumentException: bound must be greater than origin
at java.util.concurrent.ThreadLocalRandom.nextLong(Unknown Source) ~[?:1.8.0_144]
at org.apache.jmeter.functions.RandomDate.execute(RandomDate.java:196) ~[ApacheJMeter_functions.jar:3.3 r1808647]
at org.apache.jmeter.engine.util.CompoundVariable.execute(CompoundVariable.java:137) ~[ApacheJMeter_core.jar:3.3 r1808647]
at org.apache.jmeter.engine.util.CompoundVariable.execute(CompoundVariable.java:112) ~[ApacheJMeter_core.jar:3.3 r1808647]
at org.apache.jmeter.functions.gui.FunctionHelper.actionPerformed(FunctionHelper.java:181) ~[ApacheJMeter_core.jar:3.3 r1808647]
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) ~[?:1.8.0_144]
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) ~[?:1.8.0_144]
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) ~[?:1.8.0_144]
at javax.swing.DefaultButtonModel.setPressed(Unknown Source) ~[?:1.8.0_144]
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) ~[?:1.8.0_144]
at java.awt.Component.processMouseEvent(Unknown Source) ~[?:1.8.0_144]
at javax.swing.JComponent.processMouseEvent(Unknown Source) ~[?:1.8.0_144]
at java.awt.Component.processEvent(Unknown Source) ~[?:1.8.0_144]
at java.awt.Container.processEvent(Unknown Source) ~[?:1.8.0_144]
at java.awt.Component.dispatchEventImpl(Unknown Source) ~[?:1.8.0_144]
at java.awt.Container.dispatchEventImpl(Unknown Source) ~[?:1.8.0_144]
at java.awt.Component.dispatchEvent(Unknown Source) ~[?:1.8.0_144]
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) ~[?:1.8.0_144]
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) ~[?:1.8.0_144]
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) ~[?:1.8.0_144]
at java.awt.Container.dispatchEventImpl(Unknown Source) ~[?:1.8.0_144]
at java.awt.Window.dispatchEventImpl(Unknown Source) ~[?:1.8.0_144]
at java.awt.Component.dispatchEvent(Unknown Source) ~[?:1.8.0_144]
at java.awt.EventQueue.dispatchEventImpl(Unknown Source) ~[?:1.8.0_144]
at java.awt.EventQueue.access$500(Unknown Source) ~[?:1.8.0_144]
at java.awt.EventQueue$3.run(Unknown Source) ~[?:1.8.0_144]
at java.awt.EventQueue$3.run(Unknown Source) ~[?:1.8.0_144]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_144]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) ~[?:1.8.0_144]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) ~[?:1.8.0_144]
at java.awt.EventQueue$4.run(Unknown Source) ~[?:1.8.0_144]
at java.awt.EventQueue$4.run(Unknown Source) ~[?:1.8.0_144]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_144]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) ~[?:1.8.0_144]
at java.awt.EventQueue.dispatchEvent(Unknown Source) ~[?:1.8.0_144]
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [?:1.8.0_144]
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [?:1.8.0_144]
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [?:1.8.0_144]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_144]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_144]
at java.awt.EventDispatchThread.run(Unknown Source) [?:1.8.0_144]
EDIT
Opened a bug.
You're getting an error because "End date" is mandatory.
Since 3.3, Generate does an additional thing which is to show the result of function call.
But as you're not filling end date it fails with the error message you mention.
Fill in the required parameters and it works as documented:
http://jmeter.apache.org/usermanual/functions.html#__RandomDate
As you can see End date is required
I am upgrading to JMeter 3.2 from 3.0 and getting the below stackoverflow error. In addition to this is am not able to validate my script.
2017-09-13 16:17:30,804 INFO o.a.j.t.JMeterThread: Thread started: UI Navigation 1-1
2017-09-13 16:17:37,311 INFO o.a.j.t.JMeterThread: Thread started: UI Navigation 1-2
2017-09-13 16:17:38,904 INFO o.a.j.t.JMeterThread: Thread finished: UI Navigation 1-1
2017-09-13 16:17:38,904 ERROR o.a.j.JMeter: Uncaught exception:
java.lang.StackOverflowError: null
at java.lang.Class.getDeclaredFields0(Native Method) ~[?:1.8.0_144]
at java.lang.Class.privateGetDeclaredFields(Unknown Source) ~[?:1.8.0_144]
at java.lang.Class.getDeclaredField(Unknown Source) ~[?:1.8.0_144]
at jdk.nashorn.internal.runtime.Context$ContextCodeInstaller$1.run(Context.java:209) ~[nashorn.jar:?]
at jdk.nashorn.internal.runtime.Context$ContextCodeInstaller$1.run(Context.java:204) ~[nashorn.jar:?]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_144]
at jdk.nashorn.internal.runtime.Context$ContextCodeInstaller.initialize(Context.java:204) ~[nashorn.jar:?]
at jdk.nashorn.internal.codegen.CompilationPhase$InstallPhase.transform(CompilationPhase.java:508) ~[nashorn.jar:?]
at jdk.nashorn.internal.codegen.CompilationPhase.apply(CompilationPhase.java:624) ~[nashorn.jar:?]
at jdk.nashorn.internal.codegen.Compiler.compile(Compiler.java:655) ~[nashorn.jar:?]
at jdk.nashorn.internal.runtime.Context.compile(Context.java:1317) ~[nashorn.jar:?]
at jdk.nashorn.internal.runtime.Context.compileScript(Context.java:1251) ~[nashorn.jar:?]
at jdk.nashorn.internal.runtime.Context.compileScript(Context.java:627) ~[nashorn.jar:?]
at jdk.nashorn.api.scripting.NashornScriptEngine.compileImpl(NashornScriptEngine.java:535) ~[nashorn.jar:?]
at jdk.nashorn.api.scripting.NashornScriptEngine.compileImpl(NashornScriptEngine.java:524) ~[nashorn.jar:?]
at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:402) ~[nashorn.jar:?]
at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:155) ~[nashorn.jar:?]
at org.apache.jmeter.functions.JavaScript.executeWithNashorn(JavaScript.java:142) ~[ApacheJMeter_functions.jar:3.2 r1790748]
at org.apache.jmeter.functions.JavaScript.execute(JavaScript.java:103) ~[ApacheJMeter_functions.jar:3.2 r1790748]
at org.apache.jmeter.engine.util.CompoundVariable.execute(CompoundVariable.java:141) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.engine.util.CompoundVariable.execute(CompoundVariable.java:116) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.testelement.property.FunctionProperty.getStringValue(FunctionProperty.java:101) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.testelement.AbstractTestElement.getPropertyAsString(AbstractTestElement.java:281) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.control.SwitchController.getSelection(SwitchController.java:133) ~[ApacheJMeter_components.jar:3.2 r1790748]
at org.apache.jmeter.control.SwitchController.getSelectionAsInt(SwitchController.java:91) ~[ApacheJMeter_components.jar:3.2 r1790748]
at org.apache.jmeter.control.SwitchController.next(SwitchController.java:63) ~[ApacheJMeter_components.jar:3.2 r1790748]
at org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:219) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.control.GenericController.next(GenericController.java:173) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.control.LoopController.next(LoopController.java:123) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.control.LoopController.nextIsNull(LoopController.java:151) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.control.GenericController.next(GenericController.java:168) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.control.LoopController.next(LoopController.java:123) ~[ApacheJMeter_core.jar:3.2 r1790748]
--This goes on for 1000 lines
This affects only one of my scripts, all other run fine.
If you look closely at the stack trace it is complaining about SwitchController this is the clue i needed. I am using a switch controller in my script to run different transaction controllers. I am using the logic mentioned in the Using Switch Controller: Random Weighted Values page.
${__javaScript( var s="0112223333"; new Number(s.charAt( Math.floor(Math.random()*s.length) )) )}
It is this code that was causing the problem. It now returns a floating Number object instead of a whole number.
This was solved by my team mate using the below code.
${__javaScript( var s="0112223333"; s.charAt( Math.floor(Math.random()*s.length) ))}
This code returns a whole number and my switch was working again. This will affect anyone using this logic and upgrading to JMeter 3.2
I am using JMeter 3.2 and for one of the request I have JSON Exttractor with variable name as SenderId and JSON Path Expressions as $[0].selectedSender.id and when I run the tests am seeing below exception, can someone please help me to fix this issue?
2017-07-26 14:43:34,902 ERROR o.a.j.JMeter: Uncaught exception:
java.lang.NoClassDefFoundError: Could not initialize class org.apache.jmeter.extractor.json.jsonpath.JSONManager
at org.apache.jmeter.extractor.json.jsonpath.JSONPostProcessor$1.initialValue(JSONPostProcessor.java:60) ~[ApacheJMeter_components.jar:3.2 r1790748]
at org.apache.jmeter.extractor.json.jsonpath.JSONPostProcessor$1.initialValue(JSONPostProcessor.java:57) ~[ApacheJMeter_components.jar:3.2 r1790748]
at java.lang.ThreadLocal.setInitialValue(Unknown Source) ~[?:1.8.0_111]
at java.lang.ThreadLocal.get(Unknown Source) ~[?:1.8.0_111]
at org.apache.jmeter.extractor.json.jsonpath.JSONPostProcessor.threadFinished(JSONPostProcessor.java:242) ~[ApacheJMeter_components.jar:3.2 r1790748]
at org.apache.jmeter.threads.JMeterThread$ThreadListenerTraverser.addNode(JMeterThread.java:679) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:996) ~[jorphan.jar:3.2 r1790748]
at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:997) ~[jorphan.jar:3.2 r1790748]
at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:997) ~[jorphan.jar:3.2 r1790748]
at org.apache.jorphan.collections.HashTree.traverse(HashTree.java:978) ~[jorphan.jar:3.2 r1790748]
at org.apache.jmeter.threads.JMeterThread.threadFinished(JMeterThread.java:651) ~[ApacheJMeter_core.jar:3.2 r1790748]
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:310) ~[ApacheJMeter_core.jar:3.2 r1790748]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_111]
if you are using the jmeter version above 3.0 need to install plugin
https://jmeter-plugins.org/?search=jpgc-json