Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6561427

SplitPaneDemo Java Web Start generates MissingResourceException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • 6
    • docs
    • x86
    • windows_xp

      FULL PRODUCT VERSION :
      java version "1.6.0_01"
      Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
      Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows XP [Version 5.1.2600]

      A DESCRIPTION OF THE PROBLEM :
      The SplitPaneDemo in the "How to Use Split Panes" section of the SwingTutorial
      generates a MissignResourceException when I launch the Java Web Start link located here:

         http://java.sun.com/docs/books/tutorial/uiswing/components/splitpane.html#divider

      Here's what I see in the Java Console:

      Can't find the properties file that contains the image names.
      Its name should be imagenames.properties, and it should
      contain a single line that specifies one or more image
      files to be found in a directory named images. Example:

          images=Bird.gif Cat.gif Dog.gif

      Exception in thread "AWT-EventQueue-0" java.util.MissingResourceException: Can't find bundle for base name imagenames, locale en_US
      at java.util.ResourceBundle.throwMissingResourceException(Unknown Source)
      at java.util.ResourceBundle.getBundleImpl(Unknown Source)
      at java.util.ResourceBundle.getBundle(Unknown Source)
      at components.SplitPaneDemo.<init>(SplitPaneDemo.java:21)
      at components.SplitPaneDemo.createAndShowGUI(SplitPaneDemo.java:141)
      at components.SplitPaneDemo.access$000(SplitPaneDemo.java:11)
      at components.SplitPaneDemo$1.run(SplitPaneDemo.java:154)
      at java.awt.event.InvocationEvent.dispatch(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)



      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Visit above URL. Click on this webstart link: http://java.sun.com/docs/books/tutorialJWS/uiswing/components/ex6/SplitPaneDemo.jnlp

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      SplitPaneDemo should launch.
      ACTUAL -
      I get an exception in the Java Console.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      Can't find the properties file that contains the image names.
      Its name should be imagenames.properties, and it should
      contain a single line that specifies one or more image
      files to be found in a directory named images. Example:

          images=Bird.gif Cat.gif Dog.gif

      Exception in thread "AWT-EventQueue-0" java.util.MissingResourceException: Can't find bundle for base name imagenames, locale en_US
      at java.util.ResourceBundle.throwMissingResourceException(Unknown Source)
      at java.util.ResourceBundle.getBundleImpl(Unknown Source)
      at java.util.ResourceBundle.getBundle(Unknown Source)
      at components.SplitPaneDemo.<init>(SplitPaneDemo.java:21)
      at components.SplitPaneDemo.createAndShowGUI(SplitPaneDemo.java:141)
      at components.SplitPaneDemo.access$000(SplitPaneDemo.java:11)
      at components.SplitPaneDemo$1.run(SplitPaneDemo.java:154)
      at java.awt.event.InvocationEvent.dispatch(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)


      REPRODUCIBILITY :
      This bug can be reproduced always.

            sharonz Sharon Zakhour (Inactive)
            ryeung Roger Yeung (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: