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

Caching of the jnlp file with query string fails

    Details

    • Subcomponent:
    • Introduced In Version:
      6
    • CPU:
      x86
    • OS:
      windows_xp

      Description

      FULL PRODUCT VERSION :
      build 1.6.0_10-beta-b25

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

      A DESCRIPTION OF THE PROBLEM :
      I launched a JWS application with 1.6 update 6 and it worked fine.
      Then i tried to launch the application using update 10, but the launch failed with an exception

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Run a JWS Application under 1.6 update 6(i tried it with this version, because the equinox launcher does not work with update 7)
      The client.jnlp is beeing auto generated using the specified parameter in the querystring.
      <jnlp spec="1.0+" codebase="http://localhost:8020/webstart/" href="client.jnlp?edition=Client&version=4">
      2. The application works fine.
      3. Try to run the jws application with 1.6 update 10-->Could not launch the Application.
      The Stack Trace is:
      java.lang.Exception: cache failed forhttp://localhost:8020/webstart/client.jnlp?edition=Client&version=4
      at com.sun.javaws.Launcher.updateFinalLaunchDesc(Unknown Source)
      at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
      at com.sun.javaws.Launcher.launch(Unknown Source)
      at com.sun.javaws.Main.launchApp(Unknown Source)
      at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
      at com.sun.javaws.Main$1.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)

      If i remove the query String(href="client.jnlp" instead of href="client.jnlp?edition=Client&version=4" and add a few workarounds to the Servlet, which generates the JNLP file(use a hard coded version and edition) the application works.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      It should be possible to launch the application with 1.6 update 10 as well.
      ACTUAL -
      Could not launch the application: Cache failed for {url.of.jnlp.file}

      REPRODUCIBILITY :
      This bug can be reproduced always.

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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dcherepanov Dmitry Cherepanov
                Reporter:
                ndcosta Nelson Dcosta (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: