JPPF Issue Tracker
star_faded.png
Please log in to bookmark issues
bug_report_small.png
CLOSED  Bug report JPPF-411  -  Admin console fills the log with MissingResourceException when logging is at DEBUG level
Posted Sep 19, 2015 - updated Sep 19, 2015
icon_info.png This issue has been closed with status "Closed" and resolution "RESOLVED".
Issue details
  • Type of issue
    Bug report
  • Status
     
    Closed
  • Assigned to
     lolo4j
  • Progress
       
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
  • Posted by
     lolo4j
  • Owned by
    Not owned by anyone
  • Category
    GUI
  • Resolution
    RESOLVED
  • Priority
    Normal
  • Reproducability
    Always
  • Severity
    Normal
  • Targetted for
    icon_milestones.png JPPF 5.0.5
Issue description
From this forum thread. The admin console is missing numerous localization resources which leads, when logging is set at debug level, to hundreds of exceptions like these in the log:
2015-09-19 07:35:25,191 [DEBUG][main                ][org.jppf.utils.LocalizationUtils.getLocalized(98)]: Could not find resource bundle "org.jppf.ui.i18n.MainTabbedPane"
java.util.MissingResourceException: Can't find bundle for base name org.jppf.ui.i18n.MainTabbedPane, locale en_US
  at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1499)
  at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1322)
  at java.util.ResourceBundle.getBundle(ResourceBundle.java:795)
  at org.jppf.utils.LocalizationUtils.getLocalized(LocalizationUtils.java:96)
  at org.jppf.utils.LocalizationUtils.getLocalized(LocalizationUtils.java:80)
  at org.jppf.ui.options.xml.OptionsPageBuilder.initCommonAttributes(OptionsPageBuilder.java:216)
  at org.jppf.ui.options.xml.OptionElementFactory.buildTabbedPane(OptionElementFactory.java:131)
  at org.jppf.ui.options.xml.OptionsPageBuilder.build(OptionsPageBuilder.java:303)
  at org.jppf.ui.options.xml.OptionsPageBuilder.buildPage(OptionsPageBuilder.java:144)
  at org.jppf.ui.options.xml.OptionElementFactory.loadImport(OptionElementFactory.java:393)
  at org.jppf.ui.options.xml.OptionsPageBuilder.build(OptionsPageBuilder.java:319)
  at org.jppf.ui.options.xml.OptionElementFactory.buildPage(OptionElementFactory.java:75)
  at org.jppf.ui.options.xml.OptionsPageBuilder.build(OptionsPageBuilder.java:301)
  at org.jppf.ui.options.xml.OptionsPageBuilder.buildPage(OptionsPageBuilder.java:144)
  at org.jppf.ui.options.factory.OptionsHandler.loadPageFromXml(OptionsHandler.java:138)
  at org.jppf.ui.options.factory.OptionsHandler.addPageFromXml(OptionsHandler.java:151)
  at org.jppf.ui.monitoring.ConsoleLauncher.loadUI(ConsoleLauncher.java:162)
  at org.jppf.ui.monitoring.ConsoleLauncher.main(ConsoleLauncher.java:97)
  at org.jppf.ui.console.JPPFAdminConsole.main(JPPFAdminConsole.java:37)
2015-09-19 07:35:25,300 [DEBUG][main                ][org.jppf.utils.LocalizationUtils.getLocalized(105)]: Could not find key "NodeDataTabsPage.tooltip" in resource bundle "org.jppf.ui.i18n.NodeDataPage"
java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key NodeDataTabsPage.tooltip
  at java.util.ResourceBundle.getObject(ResourceBundle.java:395)
  at java.util.ResourceBundle.getString(ResourceBundle.java:355)
  at org.jppf.utils.LocalizationUtils.getLocalized(LocalizationUtils.java:103)
  at org.jppf.utils.LocalizationUtils.getLocalized(LocalizationUtils.java:80)
  at org.jppf.ui.options.xml.OptionsPageBuilder.initCommonAttributes(OptionsPageBuilder.java:216)
  at org.jppf.ui.options.xml.OptionElementFactory.buildTabbedPane(OptionElementFactory.java:131)
  at org.jppf.ui.options.xml.OptionsPageBuilder.build(OptionsPageBuilder.java:303)
  at org.jppf.ui.options.xml.OptionsPageBuilder.buildPage(OptionsPageBuilder.java:144)
  at org.jppf.ui.options.xml.OptionElementFactory.loadImport(OptionElementFactory.java:393)
  at org.jppf.ui.options.xml.OptionsPageBuilder.build(OptionsPageBuilder.java:319)
  at org.jppf.ui.options.xml.OptionElementFactory.buildTabbedPane(OptionElementFactory.java:134)
  at org.jppf.ui.options.xml.OptionsPageBuilder.build(OptionsPageBuilder.java:303)
  at org.jppf.ui.options.xml.OptionsPageBuilder.buildPage(OptionsPageBuilder.java:144)
  at org.jppf.ui.options.xml.OptionElementFactory.loadImport(OptionElementFactory.java:393)
  at org.jppf.ui.options.xml.OptionsPageBuilder.build(OptionsPageBuilder.java:319)
  at org.jppf.ui.options.xml.OptionElementFactory.buildPage(OptionElementFactory.java:75)
  at org.jppf.ui.options.xml.OptionsPageBuilder.build(OptionsPageBuilder.java:301)
  at org.jppf.ui.options.xml.OptionsPageBuilder.buildPage(OptionsPageBuilder.java:144)
  at org.jppf.ui.options.factory.OptionsHandler.loadPageFromXml(OptionsHandler.java:138)
  at org.jppf.ui.options.factory.OptionsHandler.addPageFromXml(OptionsHandler.java:151)
  at org.jppf.ui.monitoring.ConsoleLauncher.loadUI(ConsoleLauncher.java:162)
  at org.jppf.ui.monitoring.ConsoleLauncher.main(ConsoleLauncher.java:97)
  at org.jppf.ui.console.JPPFAdminConsole.main(JPPFAdminConsole.java:37)
Steps to reproduce this issue
- in the admin console's log4j configuration, set:
log4j.logger.org.jppf.utils.LocalizationUtils=DEBUG
- start the admin console

==> you will see the exceptions in the log

#4
Comment posted by
 lolo4j
Sep 19, 08:17
Fixed in: