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

JNLP fails to get loaded with old javaws when multiple jres (jre9 and jre8u111) installed

XMLWordPrintable

    • b03
    • Verified

        ENV: win7/x86/jre9-b146;ubuntu16.04/x86/jre9-b146

        Steps to reproduce:
        1. Install JRE9: jre9-b146
        2. Install an older JRE: jre8u111b14
        3. Add "http://sqeweb.us.oracle.com" to ESL
        4. Load jnlp with old jre: for example, on windows, run: C:\Program Files\Java\jre1.8.0_111\bin\javaws http://sqeweb.us.oracle.com/net/scanas415/export/deployment/crystal/DO_NOT_REMOVE_ME/jrebug/disableJavaManual_NonMultipleJRE/jnlp/testJavawsLaunchOnCLI.jnlp
        5. A security dialog will show up. Accept it
        6. If the application could not be launched and there's no response after accepting the security dialog, this bug is reproduced.
        I can see the following exception from trace:
        ExitException[ 0]
        at com.sun.javaws.Launcher.relaunch(Unknown Source)
        at com.sun.javaws.Launcher.prepareResources(Unknown Source)
        at com.sun.javaws.Launcher.prepareAllResources(Unknown Source)
        at com.sun.javaws.Launcher.prepareToLaunch(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.access$000(Unknown Source)
        at com.sun.javaws.Main$1.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
        basic: Exiting

        See attachment for full trace.

        Note: 1. jnlp can get loaded with old jre when jre9-b46 and jre8u111-b14 installed
        2. jnlp can get loaded if only jre8u111-b14 installed
        3. jnlp can get loaded from jre9 home when jre9-b46 and jre8u111-b14 installed:
         C:\Program Files\Java\jre-9\bin\javaws http://sqeweb.us.oracle.com/net/scanas415/export/deployment/crystal/DO_NOT_REMOVE_ME/jrebug/disableJavaManual_NonMultipleJRE/jnlp/testJavawsLaunchOnCLI.jnlp

          1. full.trace
            41 kB
            Crystal Yang
          2. NOT-ON-ESL-APPLET.png
            9 kB
            Crystal Yang
          3. NOT-ON-ESL-JNLP.png
            27 kB
            Crystal Yang
          4. ON-ESL.png
            25 kB
            Crystal Yang

              herrick Andy Herrick (Inactive)
              wenjyang Crystal Yang (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: