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

InvalidJarIndexException with applet jar file when using "cache_option=plugin"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 1.3.0, 1.3.0_02
    • deploy
    • x86
    • windows_95, windows_nt



      Name: rlT66838 Date: 04/13/2000


      java version "1.3.0rc2"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0rc2-Y)
      Java HotSpot(TM) Client VM (build 1.3.0rc2-Y, mixed mode)

      A signed applet jar file that has a jar index will get
      a "sun.misc.InvalidJarIndexException: Invalid index!" when being loaded on a
      Win 95 or Win 98 machine when using plugin cacheing
      (i.e. "cache_option=plugin"). This happens with Internet Explorer (5.0) or
      Netscapse 4.7. This is does not happen on Windows NT 4.0 SP5. On Windows NT
      everything works fine.

      The applet jar file is signed using Netscape's signtool v1.3. A jar index is
      then inserted into the jar file using "jar -i applet.jar netscape.jar xml.jar".
      The applet will run on all platforms (Win 95, Win 98 and Win NT) as long as
      plugin caching isn't used. When plugin caching is enabled by adding the
      following parameters to the <OBJECT> tag

      <param name="cache_option" value="plugin">
      <param name="cache_archive" value="applet.jar, xml.jar, netscape.jar">
      <param name="cache_verions" value="0.0.0.1,0.0.0.1,0.0.0.1">

      we get the "sun.misc.InvalidJarIndexException: Invalid index!". Here is the
      complete stack trace:

      "Java(TM) Plug-in: Version 1.3.0rc2-Y
      Using JRE version 1.3.0rc2
      Java HotSpot(TM) Client VMUser home directory = C:\WINDOWS
      Proxy Configuration: no proxy

      JAR cache enabled.

      sun.misc.InvalidJarIndexException: Invalid index!
      at sun.misc.URLClassPath$JarLoader.getResource(Unknown Source)
      at sun.misc.URLClassPath.getResource(Unknown Source)
      at sun.plugin.security.PluginClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.applet.AppletClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClassInternal(Unknown Source)
      at com.baa.Applet.WPApplet.init(WPApplet.java:183)
      at sun.applet.AppletPanel.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)"
      (Review ID: 103654)
      ======================================================================

            djayaramsunw Devananda Jayaraman (Inactive)
            rlewis Roger Lewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: