Bug 61878

Summary: BackendListener : NPE if BackendListenerClient#getDefaultParameters returns null
Product: JMeter - Now in Github Reporter: Philippe Mouawad <p.mouawad>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: normal CC: p.mouawad
Priority: P2    
Version: 3.3   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Philippe Mouawad 2017-12-08 21:23:08 UTC
Got this exception with 3rd party plugin:
2017-12-08 22:17:54,898 ERROR o.a.j.v.b.BackendListenerGui: Error getting argument list for kg.apc.jmeter.reporters.LoadosophiaClient
java.lang.NullPointerException: null
	at org.apache.jmeter.visualizers.backend.BackendListenerGui.actionPerformed(BackendListenerGui.java:185) ~[ApacheJMeter_components.jar:4.0-SNAPSHOT.20171208]
	at javax.swing.JComboBox.fireActionEvent(JComboBox.java:1258) ~[?:1.8.0_121]
	at javax.swing.JComboBox.setSelectedItem(JComboBox.java:586) ~[?:1.8.0_121]
	at javax.swing.JComboBox.setSelectedIndex(JComboBox.java:622) ~[?:1.8.0_121]
	at org.apache.jmeter.visualizers.backend.BackendListenerGui.clearGui(BackendListenerGui.java:291) ~[ApacheJMeter_components.jar:4.0-SNAPSHOT.20171208]
	at org.apache.jmeter.gui.tree.JMeterTreeModel.addComponent(JMeterTreeModel.java:158) ~[ApacheJMeter_core.jar:4.0-SNAPSHOT.20171208]
	at org.apache.jmeter.gui.tree.JMeterTreeModel.addSubTree(JMeterTreeModel.java:133) ~[ApacheJMeter_core.jar:4.0-SNAPSHOT.20171208]
	at org.apache.jmeter.gui.tree.JMeterTreeModel.addSubTree(JMeterTreeModel.java:125) ~[ApacheJMeter_core.jar:4.0-SNAPSHOT.20171208]
	at org.apache.jmeter.gui.GuiPackage.addSubTree(GuiPackage.java:519) ~[ApacheJMeter_core.jar:4.0-SNAPSHOT.20171208]
	at org.apache.jmeter.gui.action.Load.insertLoadedTree(Load.java:193) ~[ApacheJMeter_core.jar:4.0-SNAPSHOT.20171208]
	at org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:130) ~[ApacheJMeter_core.jar:4.0-SNAPSHOT.20171208]
	at org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:101) ~[ApacheJMeter_core.jar:4.0-SNAPSHOT.20171208]
	at org.apache.jmeter.gui.action.LoadRecentProject.doActionAfterCheck(LoadRecentProject.java:67) ~[ApacheJMeter_core.jar:4.0-SNAPSHOT.20171208]
	at org.apache.jmeter.gui.action.AbstractActionWithNoRunningTest.doAction(AbstractActionWithNoRunningTest.java:45) ~[ApacheJMeter_core.jar:4.0-SNAPSHOT.20171208]
	at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:88) ~[ApacheJMeter_core.jar:4.0-SNAPSHOT.20171208]
	at org.apache.jmeter.gui.action.ActionRouter.lambda$0(ActionRouter.java:70) ~[ApacheJMeter_core.jar:4.0-SNAPSHOT.20171208]
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) [?:1.8.0_121]
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) [?:1.8.0_121]
	at java.awt.EventQueue.access$500(EventQueue.java:97) [?:1.8.0_121]
	at java.awt.EventQueue$3.run(EventQueue.java:709) [?:1.8.0_121]
	at java.awt.EventQueue$3.run(EventQueue.java:703) [?:1.8.0_121]
	at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_121]
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80) [?:1.8.0_121]
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:726) [?:1.8.0_121]
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) [?:1.8.0_121]
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) [?:1.8.0_121]
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) [?:1.8.0_121]
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) [?:1.8.0_121]
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) [?:1.8.0_121]
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) [?:1.8.0_121]
Comment 1 Philippe Mouawad 2017-12-08 21:33:19 UTC
Author: pmouawad
Date: Fri Dec  8 21:32:24 2017
New Revision: 1817575

URL: http://svn.apache.org/viewvc?rev=1817575&view=rev
Log:
Bug 61878 - BackendListener : NPE if BackendListenerClient#getDefaultParameters returns null
Bugzilla Id: 61878

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/BackendListenerGui.java
    jmeter/trunk/xdocs/changes.xml
Comment 2 The ASF infrastructure team 2022-09-24 20:38:11 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/4637