An attempt to extend BasicSessionControl and BasicSession leads to the following issue:
Exception in thread "AWT-EventQueue-0" java.util.MissingResourceException: Can't find bundle for base name com.sun.tck.midp.javatest.i18n, locale en_US
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1521)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1260)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:715)
at com.sun.javatest.ResourceLoader.getBundle(ResourceLoader.java:180)
at com.sun.javatest.util.I18NResourceBundle.getKeys(I18NResourceBundle.java:161)
at com.sun.javatest.tool.UIFactory$UIFactoryExt.hasKey(UIFactory.java:3592)
at com.sun.javatest.tool.UIFactory$UIFactoryExt.getI18NString(UIFactory.java:3562)
at com.sun.javatest.tool.UIFactory.getIconURL(UIFactory.java:1327)
at com.sun.javatest.tool.UIFactory.createIcon(UIFactory.java:1313)
at com.sun.javatest.tool.ToolAction.<init>(ToolAction.java:87)
at com.sun.javatest.exec.BasicSessionControl$ConfigAction.<init>(BasicSessionControl.java:1340)
at com.sun.javatest.exec.BasicSessionControl$6.<init>(BasicSessionControl.java:780)
at com.sun.javatest.exec.BasicSessionControl.initActions(BasicSessionControl.java:779)
at com.sun.javatest.exec.BasicSessionControl.<init>(BasicSessionControl.java:137)
at com.sun.tck.midp.javatest.TCKSessionControl.<init>(TCKSessionControl.java:75)
at com.sun.tck.midp.javatest.TCKSessionControlFactory.createSessionControl(TCKSessionControlFactory.java:40)
at com.sun.javatest.exec.ExecTool.<init>(ExecTool.java:90)
at com.sun.javatest.exec.ExecToolManager.addNewExecTool(ExecToolManager.java:557)
at com.sun.javatest.exec.ExecToolManager$2.actionPerformed(ExecToolManager.java:639)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1223)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1264)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
at java.awt.Component.processMouseEvent(Component.java:6263)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3255)
at java.awt.Component.processEvent(Component.java:6028)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2475)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Everything is done like it was done in TemplateSession/TemplateSessionControl. Nevertheless,
resources in UIFactory for BasicControl are being looked up through my class' classloader.
The only way work the problem around is to place respective resource under classpath in java command line for
launching javatest.
Attached classes are my ContextManager, TCKSessionControl and TCKSessionControlFactory.
Exception in thread "AWT-EventQueue-0" java.util.MissingResourceException: Can't find bundle for base name com.sun.tck.midp.javatest.i18n, locale en_US
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1521)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1260)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:715)
at com.sun.javatest.ResourceLoader.getBundle(ResourceLoader.java:180)
at com.sun.javatest.util.I18NResourceBundle.getKeys(I18NResourceBundle.java:161)
at com.sun.javatest.tool.UIFactory$UIFactoryExt.hasKey(UIFactory.java:3592)
at com.sun.javatest.tool.UIFactory$UIFactoryExt.getI18NString(UIFactory.java:3562)
at com.sun.javatest.tool.UIFactory.getIconURL(UIFactory.java:1327)
at com.sun.javatest.tool.UIFactory.createIcon(UIFactory.java:1313)
at com.sun.javatest.tool.ToolAction.<init>(ToolAction.java:87)
at com.sun.javatest.exec.BasicSessionControl$ConfigAction.<init>(BasicSessionControl.java:1340)
at com.sun.javatest.exec.BasicSessionControl$6.<init>(BasicSessionControl.java:780)
at com.sun.javatest.exec.BasicSessionControl.initActions(BasicSessionControl.java:779)
at com.sun.javatest.exec.BasicSessionControl.<init>(BasicSessionControl.java:137)
at com.sun.tck.midp.javatest.TCKSessionControl.<init>(TCKSessionControl.java:75)
at com.sun.tck.midp.javatest.TCKSessionControlFactory.createSessionControl(TCKSessionControlFactory.java:40)
at com.sun.javatest.exec.ExecTool.<init>(ExecTool.java:90)
at com.sun.javatest.exec.ExecToolManager.addNewExecTool(ExecToolManager.java:557)
at com.sun.javatest.exec.ExecToolManager$2.actionPerformed(ExecToolManager.java:639)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1223)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1264)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
at java.awt.Component.processMouseEvent(Component.java:6263)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3255)
at java.awt.Component.processEvent(Component.java:6028)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2475)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Everything is done like it was done in TemplateSession/TemplateSessionControl. Nevertheless,
resources in UIFactory for BasicControl are being looked up through my class' classloader.
The only way work the problem around is to place respective resource under classpath in java command line for
launching javatest.
Attached classes are my ContextManager, TCKSessionControl and TCKSessionControlFactory.