United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6775919 javaws -silent is broken for apps with extensions (like javafx)
JDK-6775919 : javaws -silent is broken for apps with extensions (like javafx)

Details
Type:
Bug
Submit Date:
2008-11-25
Status:
Closed
Updated Date:
2010-09-08
Project Name:
JDK
Resolved Date:
2009-01-30
Component:
deploy
OS:
generic
Sub-Component:
webstart
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
6u12
Fixed Versions:
6u12 (b02)

Related Reports
Relates:

Sub Tasks

Description
with 6u12 b02 PIT build, invoke:

C:\Program Files\Java\jre6\lib>javaws  -silent -import -reverse -javafx -J-Dkernel.download.dialog=false http://dl.javafx.com/javafx-cache.jnlp

we will fail with:

java.awt.HeadlessException
	at java.awt.GraphicsEnvironment.checkHeadless(Unknown Source)
	at java.awt.Window.<init>(Unknown Source)
	at java.awt.Frame.<init>(Unknown Source)
	at com.sun.deploy.ui.DialogTemplate.deriveParent(DialogTemplate.java:1585)
	at com.sun.deploy.ui.DialogTemplate.<init>(DialogTemplate.java:105)
	at com.sun.deploy.ui.ProgressDialog.<init>(ProgressDialog.java:37)
	at com.sun.deploy.ui.UIFactory$10.execute(UIFactory.java:738)
	at com.sun.javaws.ui.JavawsSysRun.delegate(JavawsSysRun.java:156)
	at com.sun.deploy.util.DeploySysRun.execute(DeploySysRun.java:24)
	at com.sun.deploy.ui.UIFactory.createProgressDialog(UIFactory.java:736)
	at com.sun.javaws.ui.DownloadWindow.initialize(DownloadWindow.java:125)
	at com.sun.javaws.ui.DownloadWindow.initialize(DownloadWindow.java:137)
	at com.sun.javaws.ui.DownloadWindowHelper.get(DownloadWindowHelper.java:27)
	at com.sun.javaws.Launcher.downloadResources(Launcher.java:1046)
	at com.sun.javaws.Launcher.prepareLaunchFile(Launcher.java:629)
	at com.sun.javaws.Launcher.prepareToLaunch(Launcher.java:207)
	at com.sun.javaws.Launcher.launch(Launcher.java:101)
	at com.sun.javaws.Main.launchApp(Main.java:311)
	at com.sun.javaws.Main.continueInSecureThread(Main.java:215)
	at com.sun.javaws.Main$1.run(Main.java:103)
	at java.lang.Thread.run(Unknown Source)
#### Java Web Start Error:
#### null
java.awt.HeadlessException
	at java.awt.GraphicsEnvironment.checkHeadless(Unknown Source)
	at java.awt.Window.<init>(Unknown Source)
	at java.awt.Frame.<init>(Unknown Source)
	at com.sun.deploy.ui.DialogTemplate.deriveParent(DialogTemplate.java:1585)
	at com.sun.deploy.ui.DialogTemplate.<init>(DialogTemplate.java:105)
	at com.sun.deploy.ui.UIFactory$3.execute(UIFactory.java:235)
	at com.sun.javaws.ui.JavawsSysRun.delegate(JavawsSysRun.java:156)
	at com.sun.deploy.util.DeploySysRun.execute(DeploySysRun.java:24)
	at com.sun.deploy.util.DeploySysRun$1.run(DeploySysRun.java:46)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.sun.deploy.util.DeploySysRun.executePrivileged(DeploySysRun.java:42)
	at com.sun.deploy.ui.UIFactory.showErrorDialog(UIFactory.java:231)
	at com.sun.javaws.ui.LaunchErrorDialog$2.execute(LaunchErrorDialog.java:237)
	at com.sun.javaws.ui.JavawsSysRun.delegate(JavawsSysRun.java:156)
	at com.sun.deploy.util.DeploySysRun.execute(DeploySysRun.java:24)
	at com.sun.deploy.util.DeploySysRun.execute(DeploySysRun.java:33)
	at com.sun.javaws.ui.LaunchErrorDialog.show(LaunchErrorDialog.java:253)
	at com.sun.javaws.Launcher.prepareToLaunch(Launcher.java:214)
	at com.sun.javaws.Launcher.launch(Launcher.java:101)
	at com.sun.javaws.Main.launchApp(Main.java:311)
	at com.sun.javaws.Main.continueInSecureThread(Main.java:215)
	at com.sun.javaws.Main$1.run(Main.java:103)
	at java.lang.Thread.run(Unknown Source)

                                    

Comments
EVALUATION

looks like regression caused by:

6744907 Java WebStart should not create any Swing/AWT objects on warm start 

we should not try to create the progress dialog when we are in silent mode.
                                     
2008-11-25



Hardware and Software, Engineered to Work Together