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

Java Plug-In gives an exception when loading ResourceBundle via HTTPS

XMLWordPrintable

    • generic
    • generic


      Here is the email from the user:

      From: ilya <###@###.###>
      Subject: Re: plugin testing
      To: ###@###.###
      MIME-Version: 1.0
      Content-MD5: KN1IP4Svw3h0sVaRQo2LCQ==

      Patrick:

      Below is an exception with your new plugin.
      We are using class PropertyResourceBundle for internationalization.
      The base name of our resource is "ExtremeResources". The file
      ExtremeResources.properties is located in the same directory as jar.



      Java(TM) Plug-in: Version 1.2.2_02 Sep-23-1999
      Using JRE version 1.2.1
      User home directory = /home/ilya
      Proxy Configuration: no proxy

      JAR cache enabled.
      initing...
      java.lang.ClassFormatError: ExtremeResources_en_US (Bad magic number)
      at java.lang.ClassLoader.defineClass0(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:404)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:101)
      at sun.applet.AppletClassLoader.findClass(Compiled Code)
      at java.lang.ClassLoader.loadClass(Compiled Code)
      at sun.applet.AppletClassLoader.loadClass(Compiled Code)
      at java.lang.ClassLoader.loadClass(Compiled Code)
      at java.util.ResourceBundle.findBundle(Compiled Code)
      at java.util.ResourceBundle.getBundle(Compiled Code)
      at java.util.ResourceBundle.getBundle(ResourceBundle.java:348)
      at com.watchmark.toolkit.util.Resource.create(Resource.java:21)
      at com.watchmark.Extreme.Extreme.ExtremeShared.initializeResources(ExtremeShared.java:81)
      at com.watchmark.Extreme.Extreme.ExtremeShared.initializeResources(ExtremeShared.java:72)
      at com.watchmark.Extreme.Extreme.ExtremeApplet.init(ExtremeApplet.java:40)
      at sun.applet.AppletPanel.run(Compiled Code)
      at sun.plugin.navig.motif.MotifAppletViewer.maf_run(MotifAppletViewer.java:119)
      at sun.plugin.navig.motif.MotifAppletViewer.run(MotifAppletViewer.java:115)
      at java.lang.Thread.run(Thread.java:485)

      It looks like it can load an applet through https but excepts at resources.

      Thanks
      Ilya

      ---------------------------------

      Here is an excerpt from another email from the user:

      Also, I noticed that the problem with the ResourceBundle occurs
      not only with our own code but also with the third party
      software we are using when it uses LocaleInfo and ResourceBundle
      stuff. All this is working properly with http, but excepts with
      https.

      Thanks

      Ilya

      ---------------------------------

      Here is another email from the user:

      From: ilya <###@###.###>
      Subject: Re: plugin
      To: ###@###.###
      Cc: ###@###.###
      MIME-Version: 1.0

      Patrick:

      This problem does occur with Windows plugin as well.

      Attached is a minimalist applet demonstrating the problem:

      3 files - test.html, test.java, and test.properties

      Look for the comment in test.java indicating which line
      of code is offending.

      Comment it out and the applet will not except for https.

      For http everything is fine.

      Ilya



            jmelvin James Melvin (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: