Bug 52279

Summary: Switching to another language loses icons in Tree and logs error Can't obtain GUI class from ...
Product: JMeter Reporter: Philippe Mouawad <p.mouawad>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: normal CC: p.mouawad
Priority: P2    
Version: Nightly (Please specify date)   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: Test plan to reproduce issue

Description Philippe Mouawad 2011-12-03 15:25:30 UTC
Created attachment 28020 [details]
Test plan to reproduce issue

Scenario:
- Start in French language with attached test plan
- Switch to english

I lose icons at left of each Tree node and I get in jmeter.log:
2011/12/03 16:21:39 INFO  - jmeter.util.JMeterUtils: Setting Locale to en 
2011/12/03 16:21:39 WARN  - jmeter.gui.tree.JMeterTreeNode: getIcon(): Can't obtain GUI class from org.apache.jmeter.protocol.jdbc.sampler.JDBCSampler 
2011/12/03 16:21:39 WARN  - jmeter.util.JMeterUtils: ERROR! Resource string not found: [org.apache.jmeter.control.gui.switchcontrollergui] java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key org.apache.jmeter.control.gui.switchcontrollergui
	at java.util.ResourceBundle.getObject(ResourceBundle.java:374)
	at java.util.ResourceBundle.getString(ResourceBundle.java:334)
	at org.apache.jmeter.util.JMeterUtils.getResStringDefault(JMeterUtils.java:466)
	at org.apache.jmeter.util.JMeterUtils.getResString(JMeterUtils.java:428)
	at org.apache.jmeter.gui.util.JMeterMenuBar.updateMenuElement(JMeterMenuBar.java:616)
	at org.apache.jmeter.gui.util.JMeterMenuBar.updateMenuElement(JMeterMenuBar.java:626)
	at org.apache.jmeter.gui.util.JMeterMenuBar.updateMenuElement(JMeterMenuBar.java:626)
	at org.apache.jmeter.gui.util.JMeterMenuBar.updateMenuElement(JMeterMenuBar.java:626)
	at org.apache.jmeter.gui.util.JMeterMenuBar.updateMenuElement(JMeterMenuBar.java:626)
	at org.apache.jmeter.gui.util.JMeterMenuBar.updateMenuElement(JMeterMenuBar.java:626)
	at org.apache.jmeter.gui.util.JMeterMenuBar.updateMenuElement(JMeterMenuBar.java:626)
	at org.apache.jmeter.gui.util.JMeterMenuBar.localeChanged(JMeterMenuBar.java:574)
	at org.apache.jmeter.util.JMeterUtils.notifyLocaleChangeListeners(JMeterUtils.java:413)
	at org.apache.jmeter.util.JMeterUtils.setLocale(JMeterUtils.java:377)
	at org.apache.jmeter.gui.action.ChangeLanguage.doAction(ChangeLanguage.java:59)
	at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:80)
	at org.apache.jmeter.gui.action.ActionRouter.access$0(ActionRouter.java:68)
	at org.apache.jmeter.gui.action.ActionRouter$1.run(ActionRouter.java:62)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:677)
	at java.awt.EventQueue.access$000(EventQueue.java:85)
	at java.awt.EventQueue$1.run(EventQueue.java:638)
	at java.awt.EventQueue$1.run(EventQueue.java:636)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:647)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

....
Comment 1 Philippe Mouawad 2011-12-03 15:29:26 UTC
Affects r1209914
Comment 2 Philippe Mouawad 2011-12-03 15:42:45 UTC
Also exists in 2.5.1
Comment 3 Philippe Mouawad 2011-12-03 17:21:53 UTC
Date: Sat Dec  3 17:20:49 2011
New Revision: 1209955

URL: http://svn.apache.org/viewvc?rev=1209955&view=rev
Log:
Bug 52279 - Switching to another language loses icons in Tree and logs error Can't obtain GUI class from ...

Modified:
   jmeter/trunk/src/core/org/apache/jmeter/gui/GuiPackage.java
   jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/TestBeanGUI.java
   jmeter/trunk/xdocs/changes.xml
Comment 4 Philippe Mouawad 2011-12-04 21:34:16 UTC
Date: Sun Dec  4 18:25:46 2011
New Revision: 1210167

URL: http://svn.apache.org/viewvc?rev=1210167&view=rev
Log:
Bug 52280 - The menu item Options / Choose Language does not change all the displayed text to the new language
Resources now useless after last commit

Removed:
   jmeter/trunk/src/components/org/apache/jmeter/assertions/BSFAssertionResources_en.properties
   jmeter/trunk/src/components/org/apache/jmeter/assertions/CompareAssertionResources_en.properties
   jmeter/trunk/src/components/org/apache/jmeter/assertions/JSR223AssertionResources_en.properties
   jmeter/trunk/src/components/org/apache/jmeter/config/CSVDataSetResources_en.properties
   jmeter/trunk/src/components/org/apache/jmeter/config/KeystoreConfigResources_en.properties
   jmeter/trunk/src/components/org/apache/jmeter/config/RandomVariableConfigResources_en.properties
   jmeter/trunk/src/components/org/apache/jmeter/extractor/BSFPostProcessorResources_en.properties
   jmeter/trunk/src/components/org/apache/jmeter/extractor/BeanShellPostProcessorResources_en.properties
   jmeter/trunk/src/components/org/apache/jmeter/extractor/DebugPostProcessorResources_en.properties
   jmeter/trunk/src/components/org/apache/jmeter/extractor/JSR223PostProcessorResources_en.properties
   jmeter/trunk/src/components/org/apache/jmeter/modifiers/BSFPreProcessorResources_en.properties
   jmeter/trunk/src/components/org/apache/jmeter/modifiers/BeanShellPreProcessorResources_en.properties
   jmeter/trunk/src/components/org/apache/jmeter/modifiers/JSR223PreProcessorResources_en.properties
   jmeter/trunk/src/components/org/apache/jmeter/sampler/DebugSamplerResources_en.properties
   jmeter/trunk/src/components/org/apache/jmeter/timers/BSFTimerResources_en.properties
   jmeter/trunk/src/components/org/apache/jmeter/timers/BeanShellTimerResources_en.properties
   jmeter/trunk/src/components/org/apache/jmeter/timers/ConstantThroughputTimerResources_en.properties
   jmeter/trunk/src/components/org/apache/jmeter/timers/JSR223TimerResources_en.properties
   jmeter/trunk/src/components/org/apache/jmeter/timers/SyncTimerResources_en.properties
   jmeter/trunk/src/components/org/apache/jmeter/visualizers/BSFListenerResources_en.properties
   jmeter/trunk/src/components/org/apache/jmeter/visualizers/BeanShellListenerResources_en.properties
   jmeter/trunk/src/components/org/apache/jmeter/visualizers/JSR223ListenerResources_en.properties
   jmeter/trunk/src/core/org/apache/jmeter/resources/messages_en.properties
   jmeter/trunk/src/examples/org/apache/jmeter/examples/testbeans/example2/Example2Resources_en.properties
   jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/AccessLogSamplerResources_en.properties
   jmeter/trunk/src/protocol/java/org/apache/jmeter/protocol/java/sampler/JSR223SamplerResources_en.properties
   jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/config/DataSourceElementResources_en.properties
   jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/processor/JDBCPostProcessorResources_en.properties
   jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/processor/JDBCPreProcessorResources_en.properties
   jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/sampler/JDBCSamplerResources_en.properties


Date: Sun Dec  4 18:21:51 2011
New Revision: 1210166

URL: http://svn.apache.org/viewvc?rev=1210166&view=rev
Log:
Bug 52279 - Switching to another language loses icons in Tree and logs error Can't obtain GUI class from ...
Better fix after discussion on dev mailing list, thanks sebb for your review

Modified:
   jmeter/trunk/src/core/org/apache/jmeter/gui/GuiPackage.java
   jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/TestBeanGUI.java


Date: Sun Dec  4 17:56:17 2011
New Revision: 1210159

URL: http://svn.apache.org/viewvc?rev=1210159&view=rev
Log:
Bug 52280 - The menu item Options / Choose Language does not change all the displayed text to the new language

Better fix after discussion on mailing list

Modified:
   jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/TestBeanGUI.java