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

"Platform Version" for autodownloaded 1.4.1 JRE is '1.4.1' instead of '1.4'.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.1
    • Component/s: deploy
    • Labels:

      Description



      Name: nt126004 Date: 12/10/2002


      FULL PRODUCT VERSION :
      java version "1.4.1"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-b21)
      Java HotSpot(TM) Client VM (build 1.4.1-b21, mixed mode)

      FULL OPERATING SYSTEM VERSION :

      Microsoft Windows XP [Version 5.1.2600] Service Pack 1

      ADDITIONAL OPERATING SYSTEMS :

      I have verified that this also occurs on Windows 2000
      Professional and Server.



      A DESCRIPTION OF THE PROBLEM :
      After the JRE 1.4.1 is autodownloaded by Web Start, the
      Application Manager incorrectly says in the table in the
      File -> Preferences -> Java tab that the Platform Version
      is 1.4.1. This causes an application that specifies its
      required runtime environment as the 1.4 platform version to
      fail to launch, and for Web Start to re-autodownload JRE
      1.4.1 when subsequent launch attempts are made (resulting
      in multiple autodownloaded 1.4.1 JRE entries in the table
      in the Application Manager.)

      The JNLP 1.0.1 spec explains that the platform version ID
      is of the form 'x.y' and is determined by examining
      the 'java.specification.version' system property, meaning
      that the platform version for JRE 1.4.1 is '1.4.' The Web
      Start Application Manager deviates from this.

      This bug is specific to Web Start because writing a simple
      application that prints the value of the system
      property "java.specification.version" and running it using
      the downloaded 1.4.1 JRE outputs '1.4'.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Install JRE 1.3.1_02 and Java Web Start 1.1.
      2. Launch a Web Start application whose version attribute
      for the j2se element is '1.4', indicating that any
      available 1.4 platform version runtime environment should
      be used. E.g. '<j2se version="1.4"/>'.
      3. Allow Web Start to update itself to version 1.2 and to
      autodownload and install the 1.4.1 JRE.
      4. Open the Application Manager and observe that the
      Platform Version for the 1.4.1 JRE incorrectly says '1.4.1'.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      It is expected that 'Platform Version' for the downloaded
      1.4.1 JRE is '1.4' and not '1.4.1'.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      The Web Start application fails to launch due to a 'Launch File Error'. After
      clicking the 'Details' button, the detailed message in the 'General' tab
      says 'No JRE version found in launch file for this system.'

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      Create a JNLP file that contains the following XML element for the required
      runtime environment:

      <j2se version="1.4"/>
      ---------- END SOURCE ----------

      CUSTOMER WORKAROUND :
      Specify a different j2se value that matches the incorrect
      value determined by the Web Start Application Manager, e.g.

      '<j2se version="1.4*"/>'

      or

      '<j2se version="1.4+"/>'.
      (Review ID: 167265)
      ======================================================================

        Attachments

          Activity

            People

            • Assignee:
              rkajasunw Rajani Kaja (Inactive)
              Reporter:
              nthompsosunw Nathanael Thompson (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: