The Applicaiton.getHostServices().getCodeBase and Applicaiton.getHostServices().getDocumentBase cannot return the expected values.
getCodeBase return "" string. Applicaiton.getHostServices().getDocumentBase will throw an exception.
Steps to reproduce:
1. Install jre7 b147
2. Install b43
3. Launch the test cases from:
http://sqeweb.us.oracle.com/deployment2/sheldon/webCases/javafx/fxfeaturesTest/fxfeaturesTest/html/DocumentBaseTestForManual.jnlp
and
http://sqeweb.us.oracle.com/deployment2/sheldon/webCases/javafx/fxfeaturesTest/fxfeaturesTest/html/CodeBaseTestForManual.jnlp
4. They should get the correct value: http://sqeweb.us.oracle.com/deployment2/sheldon/webCases/javafx/fxfeaturesTest/fxfeaturesTest/html
Note: Applet works fine:
http://sqeweb.us.oracle.com/deployment2/sheldon/webCases/javafx/fxfeaturesTest/fxfeaturesTest/html/DocumentBaseTestForManual.html
http://sqeweb.us.oracle.com/deployment2/sheldon/webCases/javafx/fxfeaturesTest/fxfeaturesTest/html/CodeBaseTestForManual.html
And the jnlp application could work fine if launch them locally
The exception is thrown by getDocumentBase
java.lang.RuntimeException: Exception in Application start method
at com.sun.javafx.application.LauncherImpl.launchApplication1(Unknown Source)
at com.sun.javafx.application.LauncherImpl.access$000(Unknown Source)
at com.sun.javafx.application.LauncherImpl$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.security.AccessControlException: access denied ("java.util.PropertyPermission" "user.dir" "read")
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
at java.lang.System.getProperty(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.HostServicesFactory$StandaloneHostService.getDocumentBase(Unknown Source)
at javafx.application.HostServices.getDocumentBase(Unknown Source)
at deploy.sqe.DocumentBaseTest.runTest(DocumentBaseTest.java:80)
at deploy.sqe.DocumentBaseTest.start(DocumentBaseTest.java:62)
at com.sun.javafx.application.LauncherImpl$5.run(Unknown Source)
at com.sun.javafx.application.PlatformImpl$4.run(Unknown Source)
at com.sun.javafx.application.PlatformImpl$3.run(Unknown Source)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.access$100(Unknown Source)
at com.sun.glass.ui.win.WinApplication$2$1.run(Unknown Source)
... 1 more
getCodeBase return "" string. Applicaiton.getHostServices().getDocumentBase will throw an exception.
Steps to reproduce:
1. Install jre7 b147
2. Install b43
3. Launch the test cases from:
http://sqeweb.us.oracle.com/deployment2/sheldon/webCases/javafx/fxfeaturesTest/fxfeaturesTest/html/DocumentBaseTestForManual.jnlp
and
http://sqeweb.us.oracle.com/deployment2/sheldon/webCases/javafx/fxfeaturesTest/fxfeaturesTest/html/CodeBaseTestForManual.jnlp
4. They should get the correct value: http://sqeweb.us.oracle.com/deployment2/sheldon/webCases/javafx/fxfeaturesTest/fxfeaturesTest/html
Note: Applet works fine:
http://sqeweb.us.oracle.com/deployment2/sheldon/webCases/javafx/fxfeaturesTest/fxfeaturesTest/html/DocumentBaseTestForManual.html
http://sqeweb.us.oracle.com/deployment2/sheldon/webCases/javafx/fxfeaturesTest/fxfeaturesTest/html/CodeBaseTestForManual.html
And the jnlp application could work fine if launch them locally
The exception is thrown by getDocumentBase
java.lang.RuntimeException: Exception in Application start method
at com.sun.javafx.application.LauncherImpl.launchApplication1(Unknown Source)
at com.sun.javafx.application.LauncherImpl.access$000(Unknown Source)
at com.sun.javafx.application.LauncherImpl$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.security.AccessControlException: access denied ("java.util.PropertyPermission" "user.dir" "read")
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
at java.lang.System.getProperty(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.HostServicesFactory$StandaloneHostService.getDocumentBase(Unknown Source)
at javafx.application.HostServices.getDocumentBase(Unknown Source)
at deploy.sqe.DocumentBaseTest.runTest(DocumentBaseTest.java:80)
at deploy.sqe.DocumentBaseTest.start(DocumentBaseTest.java:62)
at com.sun.javafx.application.LauncherImpl$5.run(Unknown Source)
at com.sun.javafx.application.PlatformImpl$4.run(Unknown Source)
at com.sun.javafx.application.PlatformImpl$3.run(Unknown Source)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.access$100(Unknown Source)
at com.sun.glass.ui.win.WinApplication$2$1.run(Unknown Source)
... 1 more