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

Caching broken for 1.4.2 family version in Java 6u12 plugin

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 6u10
    • deploy
    • x86
    • windows_xp

      FULL PRODUCT VERSION :
      java version "1.6.0_12"
      Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
      Java HotSpot(TM) Client VM (build 11.2-b01, mixed mode, sharing)

      Also

      java version "1.4.2_19"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_19-b04)
      Java HotSpot(TM) Client VM (build 1.4.2_19-b04, mixed mode)


      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows XP [Version 5.1.2600]

      A DESCRIPTION OF THE PROBLEM :
      When using clsid to force the use of Java 1.4.2 family version under the Java 6u12 plugin, jars and other resources appear not to be retrieved from the plug-in cache but instead always downloaded from the web server, resulting in poor performance.

      I amended the file SwingSet2.html from the J2SDK 1.4.2 SwingSet2 demo to force Java 1.4.2 family versioning. SwingSet2.jar was fully downloaded multiple times from the web server in loading and starting the SwingSet2Applet demo, resulting in severely degraded performance.



      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Copied the J2SDK1.4.2 SwingSet2 demo directory to a web served directory. Amended SwingSet2.html to force family versioning.
      ============================
      <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
      <html>
        <head>
          <title>SwingSet demo</title>
        </head>

        <body>
            <h1>SwingSet demo</h1>
      <OBJECT classid="clsid:CAFEEFAC-0014-0002-FFFF-ABCDEFFEDCBA" WIDTH = 695 HEIGHT = 525>
      <PARAM NAME = CODE VALUE = "SwingSet2Applet"/>
      <PARAM NAME = CACHE_ARCHIVE VALUE = "SwingSet2.jar"/>
      'Your browser does not support Java 2 Platform version 1.4.'
      </OBJECT>
            <!-- applet code=SwingSet2Applet
                    archive="SwingSet2.jar"
                    width=695 height=525>
            </applet -->
        </body>
      </html>
      ============================
      Ran applet. Access log fragment from web server:
      ============================
      10.2.32.11 - - [27/Feb/2009:10:24:43 +0000] "GET /SwingSet2/SwingSet2.html HTTP/1.1" 304 -
      10.2.32.11 - - [27/Feb/2009:10:24:48 +0000] "GET /SwingSet2/SwingSet2.jar HTTP/1.1" 200 1376547
      10.2.32.11 - - [27/Feb/2009:10:24:48 +0000] "GET /SwingSet2/SwingSet2.jar HTTP/1.1" 200 1376547
      10.2.32.11 - - [27/Feb/2009:10:24:49 +0000] "GET /SwingSet2/SwingSet2.jar HTTP/1.1" 200 1376547
      10.2.32.11 - - [27/Feb/2009:10:24:49 +0000] "GET /SwingSet2/resources/swingset.class HTTP/1.1" 404 240
      10.2.32.11 - - [27/Feb/2009:10:24:49 +0000] "GET /SwingSet2/SwingSet2.jar HTTP/1.1" 200 1376547
      10.2.32.11 - - [27/Feb/2009:10:24:49 +0000] "GET /SwingSet2/resources/swingset_en.class HTTP/1.1" 404 243
      10.2.32.11 - - [27/Feb/2009:10:24:49 +0000] "GET /SwingSet2/resources/swingset_en.properties HTTP/1.1" 404 248
      10.2.32.11 - - [27/Feb/2009:10:24:49 +0000] "GET /SwingSet2/resources/swingset_en_GB.class HTTP/1.1" 404 246
      10.2.32.11 - - [27/Feb/2009:10:24:49 +0000] "GET /SwingSet2/resources/swingset_en_GB.properties HTTP/1.1" 404 251
      10.2.32.11 - - [27/Feb/2009:10:24:49 +0000] "GET /SwingSet2/com/sun/java/swing/plaf/mac/MacLookAndFeel.class HTTP/1.1" 404 264
      10.2.32.11 - - [27/Feb/2009:10:24:49 +0000] "GET /SwingSet2/com/sun/java/swing/plaf/gtk/GTKLookAndFeel.class HTTP/1.1" 404 264
      10.2.32.11 - - [27/Feb/2009:10:24:49 +0000] "GET /SwingSet2/com/sun/java/swing/plaf/mac/MacLookAndFeel.class HTTP/1.1" 404 264
      10.2.32.11 - - [27/Feb/2009:10:24:49 +0000] "GET /SwingSet2/com/sun/java/swing/plaf/gtk/GTKLookAndFeel.class HTTP/1.1" 404 264
      10.2.32.11 - - [27/Feb/2009:10:24:53 +0000] "GET /SwingSet2/SwingSet2.jar HTTP/1.1" 200 1376547
      10.2.32.11 - - [27/Feb/2009:10:24:54 +0000] "GET /SwingSet2/SwingSet2.jar HTTP/1.1" 200 1376547
      10.2.32.11 - - [27/Feb/2009:10:24:54 +0000] "GET /SwingSet2/SwingSet2.jar HTTP/1.1" 200 1376547
      10.2.32.11 - - [27/Feb/2009:10:24:54 +0000] "GET /SwingSet2/SwingSet2.jar HTTP/1.1" 200 1376547
      10.2.32.11 - - [27/Feb/2009:10:24:55 +0000] "GET /SwingSet2/SwingSet2.jar HTTP/1.1" 200 1376547
      10.2.32.11 - - [27/Feb/2009:10:24:57 +0000] "GET /SwingSet2/SwingSet2.jar HTTP/1.1" 200 1376547
      10.2.32.11 - - [27/Feb/2009:10:24:58 +0000] "GET /SwingSet2/SwingSet2.jar HTTP/1.1" 200 1376547
      10.2.32.11 - - [27/Feb/2009:10:24:58 +0000] "GET /SwingSet2/SwingSet2.jar HTTP/1.1" 200 1376547
      10.2.32.11 - - [27/Feb/2009:10:24:59 +0000] "GET /SwingSet2/SwingSet2.jar HTTP/1.1" 200 1376547
      10.2.32.11 - - [27/Feb/2009:10:24:59 +0000] "GET /SwingSet2/SwingSet2.jar HTTP/1.1" 200 1376547
      10.2.32.11 - - [27/Feb/2009:10:24:59 +0000] "GET /SwingSet2/SwingSet2.jar HTTP/1.1" 200 1376547
      10.2.32.11 - - [27/Feb/2009:10:25:00 +0000] "GET /SwingSet2/SwingSet2.jar HTTP/1.1" 200 1376547
      10.2.32.11 - - [27/Feb/2009:10:25:01 +0000] "GET /SwingSet2/SwingSet2.jar HTTP/1.1" 200 1376547
      10.2.32.11 - - [27/Feb/2009:10:25:01 +0000] "GET /SwingSet2/SwingSet2.jar HTTP/1.1" 200 1376547
      10.2.32.11 - - [27/Feb/2009:10:25:02 +0000] "GET /SwingSet2/SwingSet2.jar HTTP/1.1" 200 1376547
      10.2.32.11 - - [27/Feb/2009:10:25:02 +0000] "GET /SwingSet2/SwingSet2.jar HTTP/1.1" 200 1376547
      10.2.32.11 - - [27/Feb/2009:10:25:02 +0000] "GET /SwingSet2/SwingSet2.jar HTTP/1.1" 200 1376547
      10.2.32.11 - - [27/Feb/2009:10:25:03 +0000] "GET /SwingSet2/SwingSet2.jar HTTP/1.1" 200 1376547
      10.2.32.11 - - [27/Feb/2009:10:25:03 +0000] "GET /SwingSet2/SwingSet2.jar HTTP/1.1" 200 1376547
      10.2.32.11 - - [27/Feb/2009:10:25:04 +0000] "GET /SwingSet2/SwingSet2.jar HTTP/1.1" 200 1376547
      10.2.32.11 - - [27/Feb/2009:10:25:04 +0000] "GET /SwingSet2/SwingSet2.jar HTTP/1.1" 200 1376547
      10.2.32.11 - - [27/Feb/2009:10:25:05 +0000] "GET /SwingSet2/SwingSet2.jar HTTP/1.1" 200 1376547
      10.2.32.11 - - [27/Feb/2009:10:25:05 +0000] "GET /SwingSet2/SwingSet2.jar HTTP/1.1" 200 1376547



      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Should have been one entry in the access log for SwingSet2.jar, with HTTP code 304.
      ACTUAL -
      Lots of full downloads (HTTP code 200)

      REPRODUCIBILITY :
      This bug can be reproduced always.

      Release Regression From : 6
      The above release value was the last known release where this
      bug was not reproducible. Since then there has been a regression.

            kbr Kenneth Russell (Inactive)
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: