JDK-4479699 : Click on "Start" in Java Web Start Application Manager is not starting applicatn
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 1.4.0
  • Priority: P1
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_nt,windows_2000
  • CPU: x86
  • Submitted: 2001-07-13
  • Updated: 2001-08-08
  • Resolved: 2001-07-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.0 beta2Fixed
Related Reports
Duplicate :  
Relates :  
Description
Build tested: j2re-1_4_0-beta_refresh-bin-b71-win-11_jul_2001.exe,
              j2sdk-1_4_0-beta_refresh-bin-b71-win-11_jul_2001.exe
Platforms: Windows 98 (2nd edition), Windows 2000 Professional
From Java Web Start Application Manager try to run any application by clicking on "Start" or dbl clicking on appl. image. Application is not running! IllegalArgumentException (log file attached)


The following is the log w/ JDK output:

Java Web Start Console, started Fri Jul 13 12:39:56 PDT 2001
Java 2 Runtime Environment: Version 1.4.0-beta_refresh by Sun Microsystems Inc.
java.lang.IllegalArgumentException: "E:\Program: unmatched quotes.
        at java.lang.Win32Process.<init>(Win32Process.java:57)
        at java.lang.Runtime.execInternal(Native Method)
        at java.lang.Runtime.exec(Runtime.java:551)
        at java.lang.Runtime.exec(Runtime.java:418)
        at java.lang.Runtime.exec(Runtime.java:361)
        at java.lang.Runtime.exec(Runtime.java:325)
        at com.sun.javaws.ui.player.JNLEntry.launch(Unknown Source)
        at com.sun.javaws.ui.player.Player.launch(Unknown Source)
        at com.sun.javaws.ui.player.Player.access$8(Unknown Source)
        at com.sun.javaws.ui.player.Player$22.actionPerformed(Unknown Source)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1769)
        at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1822)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:414)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:253)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:261)
        at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:230)
        at java.awt.Component.processMouseEvent(Component.java:4968)
        at java.awt.Component.processEvent(Component.java:4778)
        at java.awt.Container.processEvent(Container.java:1383)
        at java.awt.Component.dispatchEventImpl(Component.java:3488)
        at java.awt.Container.dispatchEventImpl(Container.java:1440)
        at java.awt.Component.dispatchEvent(Component.java:3349)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3176)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2889)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2842)
        at java.awt.Container.dispatchEventImpl(Container.java:1426)
        at java.awt.Window.dispatchEventImpl(Window.java:1531)
        at java.awt.Component.dispatchEvent(Component.java:3349)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:439)
        at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:150)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:131)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)

nathan.wang@Eng 2001-07-13

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: merlin-beta2 FIXED IN: merlin-beta2 INTEGRATED IN: merlin-beta2 VERIFIED IN: merlin-beta2
14-06-2004

WORK AROUND Use String[] version of exec - much cleaner programming style!!! konstantin.kladko@Eng 2001-07-17
17-07-2001

PUBLIC COMMENTS Now it should work ok. Note for the future: when using processes with spaces in command, please use String[] version of exec. It is much cleaner programming style. konstantin.kladko@Eng 2001-07-17
17-07-2001

EVALUATION This bug is caused by in complete fix in bug 4272706. It appears that is customer passes Strings to Runtime.exec() we parse the String in correctly. From bug report 4272706, stated we need to use String[]. This would now cause a backwards incompatibility issue with our customers. The cmdline we are trying to exec is "C:\Program Files\Java Web Start\javaws.exe" "http://www.schmitther.de/wstrt/mathsess3.jnlp" Error we see: Java Web Start Console, started Tue Jul 17 11:50:14 EDT 2001 Java 2 Runtime Environment: Version 1.4.0-beta_refresh by Sun Microsystems Inc. Logging to file: c:\temp\log.txt cmd is "C:\Program Files\Java Web Start\javaws.exe" "http://www.schmitther.de/w strt/mathsess3.jnlp" java.lang.IllegalArgumentException: "C:\Program: unmatched quotes. at java.lang.Win32Process.<init>(Unknown Source) at java.lang.Runtime.execInternal(Native Method) at java.lang.Runtime.exec(Unknown Source) at java.lang.Runtime.exec(Unknown Source) at java.lang.Runtime.exec(Unknown Source) at java.lang.Runtime.exec(Unknown Source) at com.sun.javaws.ui.player.JNLEntry.launch(Unknown Source) at com.sun.javaws.ui.player.Player.launch(Unknown Source) at com.sun.javaws.ui.player.Player.access$8(Unknown Source) at com.sun.javaws.ui.player.Player$22.actionPerformed(Unknown Source) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknow n Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour ce) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) The bug fix for 4272706 triggered another old bug. The problem is that the String version of exec() does not tokenize String properly. In particular, if a command name contains spaces, it gets tokenized into a command/arguments sequence EVEN if the command in surrounded by quotes. konstantin.kladko@Eng 2001-07-17
17-07-2001