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

New jar caching code in 1.4 breaks existing applets (Regression)

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      01
    • CPU:
      x86
    • OS:
      windows_nt
    • Verification:
      Verified

      Backports

        Description


        Kronos application works with 1.3.1_02, but fails with
        1.4 using the classloader switch.

        Here is the classloader dump from the plugin's console:

        =========

        // After loading our first applet (QuickFind)
        Dump classloader list ...
            codebase=http://webalpha/WFC/lib/, key=http://webalpha/WFC/lib/,
        zombie=false, cache=true, refcount=1, info=sun.plugin.ClassLoaderInfo@943dc4
        Done.

        ...

        Attempt to launch:
        http://webalpha/wfc/timecard?la=quick&st=1013729431039&pid=106&tf=6&hf=-1

        ...

        // After loading our second applet (Timecard) which fails
        // because the previous classloader got dumped

        Dump classloader list ...
            codebase=http://webalpha/WFC/lib/, key=http://webalpha/WFC/lib/,
        zombie=false, cache=true, refcount=1, info=sun.plugin.ClassLoaderInfo@caf0ed
        Done.

        =========

        Here is a portion of thet jsp file that creates our applet's HTML. The
        classloader-policy is there.


            <OBJECT classid="<%= appletCLSID %>"
               width="<%= appletWidth %>"
               height="<%= appletHeight %>"
               align="center"
               codebase="<%= objectTagCodeBase %>">
               <PARAM NAME="code" VALUE="<%= appletClassName %>">
               <PARAM NAME="codebase" VALUE="<%= appletJarURL %>">
               <PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
               <%= appletCacheTags.toString() %>
               <PARAM NAME="scriptable" VALUE="false">
               <PARAM NAME="mayscript" VALUE="true">
               <PARAM NAME="classloader-policy" VALUE="classic">
               <PARAM NAME="kronos_params" VALUE="<%= appletParameters %>">
            </OBJECT>

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                djayaramsunw Devananda Jayaraman (Inactive)
                Reporter:
                cprasadsunw Ck Prasad (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: