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

Web Start Applications inported into the System Cache lazy-load into User Cache,

    XMLWordPrintable

Details

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

    Description

      FULL PRODUCT VERSION :
      Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
      Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing)

      Java(TM) Web Start 1.6.0_06

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

      A DESCRIPTION OF THE PROBLEM :
      Installing a Java Web Start application using javaws -import -system <jnlp file> imports the application into the system cache, and creates a short-cut as requested in the JNLP file.

      However when the application is started from the short-cut, it has to lazy-load some extra resources and/or updated resources.

      The problem is that the extra/updated resources are loaded into the user cache, and this means that over time each separate user on the machine ends up with their own copy when a single copy of the program is wanted.

      Worse is if a new user starts on the machine after a lot of updates have taken place, and has to load in most of the program when they should have just been able to use the system cache version that, in theory, should have been updated by other people using it.

      If started from the command line, using the -system flag, then the extra resources will be kept in the system cache, but the created shortcut does not include the flag.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Create a Web Start application that has at least one lazy-loaded resource, and creates a short-cut.

      Import this application into a properly set up system cache.

      Start the program using the created short-cut.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Any lazy-loaded resources should be put into the system cache. The short-cut should ensure this happens.
      ACTUAL -
      Lazy-loaded resources are put into the user cache. The short-cut doesn't include any form of -system flag or similar.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      The nature of the program does not seem to change things, and I've tested with several different programs. It seems to be fundamental to how shortcuts are created for system cache applications.
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      If you manually edit the short-cut to include '-system' then extra resources will be loaded into the system cache, but if the short-cut is regenerated by Web Start (as often seems to happen due to the JNLP being updated) then this change is lost. It's also not practical to do for our CD release method.

      Attachments

        Issue Links

          Activity

            People

              herrick Andy Herrick (Inactive)
              ryeung Roger Yeung (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: