-
Bug
-
Resolution: Fixed
-
P2
-
fx2.0
-
Windows XP and Vista, JDK 7, FX 2.0 b38
If you run the following AudioClipTest as a applet or jnlp and then click on the Play button, you will get a java.security.AccessControlException.
http://owerfeldt-mac.us.oracle.com/packager-testing/AudioClipTest/mts.html
This does not happening with the other manual tests when run as a applet or jnlp using the same media:
http://owerfeldt-mac.us.oracle.com/media/wav/big-monkey-man-18secs.wav
Here is the output from the java console:
Java Plug-in 10.0.1.255
Using JRE version 1.7.0-b147 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\sjchan
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
Detected from bootclasspath: C:\PROGRA~1\Oracle\JAVAFX~1.0\lib\deploy.jar
Use default preloader
Got ConfigEvent[type=SetVisible, value=true]
Got DownloadEvent[type=verify,loaded=1, total=1, percent=100]
Got AppletInitEvent[type=CallConstructor]
XXX: instantiate applet for application: class mts.java.manual.AudioClipTest
Got AppletInitEvent[type=CallInit]
XXX: init:
Got AppletInitEvent[type=CallStart]
XXX: start:
Exception in thread "Thread-14" java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "modifyThreadGroup")
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at sun.plugin2.applet.SecurityManagerHelper.checkAccessHelper(Unknown Source)
at sun.plugin2.applet.FXAppletSecurityManager.checkAccess(Unknown Source)
at java.lang.ThreadGroup.checkAccess(Unknown Source)
at java.lang.Thread.init(Unknown Source)
at java.lang.Thread.<init>(Unknown Source)
at com.sun.media.jfxmediaimpl.NativeMediaPlayer$EventQueueThread.<init>(Unknown Source)
at com.sun.media.jfxmediaimpl.NativeMediaPlayer.<init>(Unknown Source)
at com.sun.media.jfxmediaimpl.NativeMediaPlayer.<init>(Unknown Source)
at com.sun.media.jfxmediaimpl.NativeMediaManager.getPlayer(Unknown Source)
at com.sun.media.jfxmedia.MediaManager.getPlayer(Unknown Source)
at com.sun.media.jfxmediaimpl.NativeMediaAudioClipPlayer.play(Unknown Source)
at com.sun.media.jfxmediaimpl.NativeMediaAudioClipPlayer.clipScheduler(Unknown Source)
at com.sun.media.jfxmediaimpl.NativeMediaAudioClipPlayer.access$000(Unknown Source)
at com.sun.media.jfxmediaimpl.NativeMediaAudioClipPlayer$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
http://owerfeldt-mac.us.oracle.com/packager-testing/AudioClipTest/mts.html
This does not happening with the other manual tests when run as a applet or jnlp using the same media:
http://owerfeldt-mac.us.oracle.com/media/wav/big-monkey-man-18secs.wav
Here is the output from the java console:
Java Plug-in 10.0.1.255
Using JRE version 1.7.0-b147 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\sjchan
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
Detected from bootclasspath: C:\PROGRA~1\Oracle\JAVAFX~1.0\lib\deploy.jar
Use default preloader
Got ConfigEvent[type=SetVisible, value=true]
Got DownloadEvent[type=verify,loaded=1, total=1, percent=100]
Got AppletInitEvent[type=CallConstructor]
XXX: instantiate applet for application: class mts.java.manual.AudioClipTest
Got AppletInitEvent[type=CallInit]
XXX: init:
Got AppletInitEvent[type=CallStart]
XXX: start:
Exception in thread "Thread-14" java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "modifyThreadGroup")
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at sun.plugin2.applet.SecurityManagerHelper.checkAccessHelper(Unknown Source)
at sun.plugin2.applet.FXAppletSecurityManager.checkAccess(Unknown Source)
at java.lang.ThreadGroup.checkAccess(Unknown Source)
at java.lang.Thread.init(Unknown Source)
at java.lang.Thread.<init>(Unknown Source)
at com.sun.media.jfxmediaimpl.NativeMediaPlayer$EventQueueThread.<init>(Unknown Source)
at com.sun.media.jfxmediaimpl.NativeMediaPlayer.<init>(Unknown Source)
at com.sun.media.jfxmediaimpl.NativeMediaPlayer.<init>(Unknown Source)
at com.sun.media.jfxmediaimpl.NativeMediaManager.getPlayer(Unknown Source)
at com.sun.media.jfxmedia.MediaManager.getPlayer(Unknown Source)
at com.sun.media.jfxmediaimpl.NativeMediaAudioClipPlayer.play(Unknown Source)
at com.sun.media.jfxmediaimpl.NativeMediaAudioClipPlayer.clipScheduler(Unknown Source)
at com.sun.media.jfxmediaimpl.NativeMediaAudioClipPlayer.access$000(Unknown Source)
at com.sun.media.jfxmediaimpl.NativeMediaAudioClipPlayer$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)