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

If system property has a space in value in an JNLP, 6u10 cannot load 1.4.2

XMLWordPrintable

    • b31
    • generic
    • generic
    • Verified

      In 6u10, if a JNLP-Applet specifies <j2se version="1.4.2*" ... > and has <property name="aaa" value="hello world"/>, the following exception will be thrown:
      java.lang.NoSuchMethodError:
      java.lang.StringBuffer.<init>(Ljava/lang/CharSequence;)V
              at com.sun.deploy.util.StringQuoteUtil.quoteIfNeeded(Unknown Source)
              at com.sun.deploy.util.StringQuoteUtil.quoteIfNeeded(Unknown Source)
              at com.sun.deploy.util.Property.toString(Unknown Source)
              at com.sun.deploy.util.JVMParameters$ArgumentSet.addTo(Unknown Source)
              at com.sun.deploy.util.JVMParameters.getCommandLineArguments(Unknown Source)
              at com.sun.deploy.util.JVMParameters.getCommandLineArgumentsAsString(Unknown Source)
              at com.sun.javaws.jnl.DefaultMatchJRE.endTraversal(Unknown Source)

      If launching the app through javaws, a javaw process will be left as zombie, no exception or error dialog is shown.

      This issue is not reproducible if trying to load 1.5* or when there is no space between the system property value. This issue is a regression from 6u7. In addition, calling javaws from 1.4.2_18 to load the JNLP files directly does not have any problem.

      To reproduce with JNLP-Applet:
      - Stage the Clock.jnlp, jnlp-applet.html from attachment, and the Clock applet demo from JDK.
      - Load jnlp-applet.html from a browser with the new Plug-In.
      (see comments for quick test)

      To reproduce with Java Web Start that leaves zombie javaw process:
      Run the draw.jnlp in attachment with javaws from 6u10.
      (see comments for quick test)

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: