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

entrust applet cannot start after auto cache upgrade from java 5 to java 6

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 6u1
    • Fix Version/s: 7
    • Component/s: deploy
    • Subcomponent:
    • Introduced In Build:
      b02
    • Introduced In Version:
      6u1
    • Resolved In Build:
      b16
    • CPU:
      x86
    • OS:
      windows
    • Verification:
      Verified

      Backports

        Description

        > People have been upgrading to the Java 6 plugin and have been running
        > > into an issue if they have previously cached versions of the applets.
        > > I think it has to do with the way the cache is upgraded to the Java 6
        > > cache from 1.5 cache.
        > > To reproduce:
        > >
        > > 1. visit https://www.entrust.com/trustedcare/ with Java 1.5 plugin
        > > (to get applet in cache). You dont need to authenticate, just
        > > make sure the applet loads properly.
        > > 2. upgrade your plugin to Java 6 plugin
        > > 3. visit https://www.entrust.com/trustedcare/ again
        > > 4. Check Java Console, exception should look like this:
        > >
        > > /Java Plug-in 1.6.0_01
        > > Using JRE version 1.6.0_01 Java HotSpot(TM) Client VM
        > > User home directory = C:\Documents and Settings\Administrator
        > > Trace level set to 2: basic, net ... completed.
        > > Trace level set to 2: basic, net ... completed.
        > > Trace level set to 2: basic, net ... completed.
        > > network: Done.
        > > network: Loading direct proxy configuration ...
        > > network: Done.
        > > network: Proxy Configuration: No proxy/
        > > //
        > >
        > > /----------------------------------------------------
        > > c: clear console window
        > > f: finalize objects on finalization queue
        > > g: garbage collect
        > > h: display this help message
        > > l: dump classloader list
        > > m: print memory usage
        > > o: trigger logging
        > > p: reload proxy configuration
        > > q: hide console
        > > r: reload policy configuration
        > > s: dump system and deployment properties
        > > t: dump thread list
        > > v: dump thread stack
        > > x: clear classloader cache
        > > 0-5: set trace level to <n>
        > > ----------------------------------------------------/
        > > //
        > > /basic: Referencing classloader:
        > > //sun.plugin.ClassLoaderInfo@4fce71/
        > > <mailto:sun.plugin.ClassLoaderInfo@4fce71>/, refcount=1
        > > basic: Added progress listener:
        > > //sun.plugin.util.GrayBoxPainter@1b3f829/
        > > <mailto:sun.plugin.util.GrayBoxPainter@1b3f829>
        > > /basic: Loading applet ...
        > > basic: Initializing applet ...
        > > basic: Starting applet ...
        > > basic: completed perf rollup
        > > network: Cache entry found [url:
        > >
        //https://wottagullinstc5.entrust.com/TruePassSampleApp/servlets/AppletDownloadServlet/entrusttruepassapplet-roamingepf.jarjar//,
        > > version: null]
        > > network: Downloading resource:
        > >
        //https://wottagullinstc5.entrust.com/TruePassSampleApp/servlets/AppletDownloadServlet/entrusttruepassapplet-roamingepf.jarjar/
        > > / Content-Length: -1
        > > Content-Encoding: null
        > > network: Cache entry not found [url:
        > >
        //https://wottagullinstc5.entrust.com/TruePassSampleApp/servlets/AppletDownloadServlet/EntrustTruePassApplet.class//,
        > > version: null]
        > > network: Connecting
        > >
        //https://wottagullinstc5.entrust.com/TruePassSampleApp/servlets/AppletDownloadServlet/EntrustTruePassApplet.class//
        > > with proxy=DIRECT
        > > network: Connecting
        > >
        //https://wottagullinstc5.entrust.com/TruePassSampleApp/servlets/AppletDownloadServlet/EntrustTruePassApplet.class//
        > > with cookie "EntrustTruePassLastUserName="roam1";
        > > EntrustTruePassLastUserProfileType="ROAMING_EPF""
        > > network: Cache entry not found [url:
        > >
        //https://wottagullinstc5.entrust.com/TruePassSampleApp/servlets/AppletDownloadServlet/EntrustTruePassApplet/class.class//,
        > > version: null]
        > > network: Connecting
        > >
        //https://wottagullinstc5.entrust.com/TruePassSampleApp/servlets/AppletDownloadServlet/EntrustTruePassApplet/class.class//
        > > with proxy=DIRECT
        > > network: Connecting
        > >
        //https://wottagullinstc5.entrust.com/TruePassSampleApp/servlets/AppletDownloadServlet/EntrustTruePassApplet/class.class//
        > > with cookie "EntrustTruePassLastUserName="roam1";
        > > EntrustTruePassLastUserProfileType="ROAMING_EPF""
        > > load: class EntrustTruePassApplet.class not found.
        > > java.lang.ClassNotFoundException: EntrustTruePassApplet.class
        > > at sun.applet.AppletClassLoader.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 sun.applet.AppletClassLoader.loadCode(Unknown Source)
        > > at sun.applet.AppletPanel.createApplet(Unknown Source)
        > > at sun.plugin.AppletViewer.createApplet(Unknown Source)
        > > at sun.applet.AppletPanel.runLoader(Unknown Source)
        > > at sun.applet.AppletPanel.run(Unknown Source)
        > > at java.lang.Thread.run(Unknown Source)
        > > Caused by: java.io.IOException: open HTTP connection failed.
        > > at sun.applet.AppletClassLoader.getBytes(Unknown Source)
        > > at sun.applet.AppletClassLoader.access$100(Unknown Source)
        > > at sun.applet.AppletClassLoader$1.run(Unknown Source)
        > > at java.security.AccessController.doPrivileged(Native Method)
        > > ... 10 more
        > > basic: Exception: java.lang.ClassNotFoundException:
        > > EntrustTruePassApplet.class
        > > basic: Stopping applet ...
        > > basic: Removed progress listener:
        > > //sun.plugin.util.GrayBoxPainter@1b3f829/
        > > <mailto:sun.plugin.util.GrayBoxPainter@1b3f829>
        > > /basic: Finding information ...
        > > basic: Releasing classloader: //sun.plugin.ClassLoaderInfo@4fce71/
        > > <mailto:sun.plugin.ClassLoaderInfo@4fce71>/, refcount=0
        > > basic: Caching classloader: //sun.plugin.ClassLoaderInfo@4fce71/
        > > <mailto:sun.plugin.ClassLoaderInfo@4fce71>
        > > /basic: Current classloader cache size: 1
        > > basic: Done .../
        > >
        > > 5. go into your java control panel, clear your cache, and then visit
        > > the site again. Everything loads perfectly.
        > > We are using jarjar super compressed applets, this may have something
        > > to do with it.
        > > I noticed that it finds a cache entry, but then says that the content
        > > length is -1.
        > > I noticed that there is an idx file in the cache for each applet. I
        > > compared the one that was created by the upgrade, and the one that is
        > > created the first time I download the applet with Java 6. These 2
        > > files have similar names, and I assume they should have the same
        > > content, as they are both referencing the same applet in the cache.
        > > These files are different, and I have attached them.
        > > Please let me know if you need any more information.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ngthomas Thomas Ng (Inactive)
                  Reporter:
                  ngthomas Thomas Ng (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: