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

MsgAppletViewer problem: can't find "appletpanel.badattribute.exception"

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 1.4.0
    • Fix Version/s: None
    • Component/s: tools
    • Labels:

      Description

      j2sdk1.4.0beta3(b84)/solaris/Sparc

      sun.applet.AppletPanel class tries to find a value for the key,
      "appletpanel.badattribute.exception" from the resource bundle
      sun.applet.resources.MsgAppletViewer

      However the bundle doesn't have such a key-value pair. I check this problem upto
      jdk1.2 and found it's been a problem since jdk1.2. This kind of bug is hard to
      catch until we do negatively.


      The below mail was from a tester in india. He misused width/height attributes by putting % sign. But this exception trail shows the above bug I am describing.
      ---------------------------------------------
      I tried to run the appletviewer using the instructions mentioned in the jcov page. I get the following error :

      Exception in thread "main" java.util.MissingResourceException: Can't find
      resource for bundle sun.applet.resources.MsgAppletViewer, key
      appletpanel.badattribute.exception
              at java.util.ResourceBundle.getObject(ResourceBundle.java:317)
              at java.util.ResourceBundle.getString(ResourceBundle.java:277)
              at sun.applet.AppletMessageHandler.getMessage(AppletMessageHandler.java:42)
              at sun.applet.AppletPanel.showAppletStatus(AppletPanel.java:669)
              at sun.applet.AppletPanel.init(AppletPanel.java:185)
              at sun.applet.AppletViewer.<init>(AppletViewer.java:178)
              at sun.applet.StdAppletViewerFactory.createAppletViewer(AppletViewer.java:83)
              at sun.applet.AppletViewer.parse(AppletViewer.java:1065)
              at sun.applet.AppletViewer.parse(AppletViewer.java:999)
              at sun.applet.Main.run(Main.java:141)
              at sun.applet.Main.main(Main.java:83)
        

      Also, my index_jcov.html file contains the following :

      <HTML>
      <BODY>

              <APPLET
                      CODEBASE=/satan/work/dnd/dnd_test_ws/dndbts/
                      ARCHIVE=dndbts.jar,lib/awtsqe.jar
                      CODE=dndbts.framework.MultiAppletTest
                      width=100%
                      height=100%
              >
              </APPLET>

      </BODY>
      </HTML>
      ###@###.### 2001-11-09

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dcherepanov Dmitry Cherepanov
                Reporter:
                bkimsunw Bae-chul Kim (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: