Skip to main content

latest JDK7 changes in java.lang.RuntimePermission

Please note these forums are being decommissioned and use the new and improved forums at
No replies
Joined: 2011-03-16

I am having issues with the latest few versions of the new JDK7, specifically jdk-7-ea-bin-b127 to jdk-7-ea-bin-b132
Basically now modifying threads in a different threadgroup is no longer allowed, ie I need to add the following to the java.policy file in order to have my applet run without exception.
permission java.lang.RuntimePermission "modifyThreadGroup";
permission java.lang.RuntimePermission "modifyThread";
The previous versions (jdk-7-ea-bin-b107 and jdk-7-ea-bin-b114) did not need this. I am just wondering if this is a bug or a known change to JDK7. Please let me know. Here is the exception I am receiving.
Launching player setup in separate thread...
Exception in thread "SetupThread" access denied ("java.lang.RuntimePermission" "modifyThreadGroup")
at Source)
at Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at sun.plugin2.applet.SecurityManagerHelper.checkAccessHelper(Unknown Source)
at sun.plugin2.applet.AWTAppletSecurityManager.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.skillsoft.shared.player.IdleProcess.<init>(
at com.skillsoft.shared.player.IdleProcess.getInstance(
at Source)
Exception in thread "StartThread" java.lang.NullPointerException
at com.skillsoft.legacy.player.PagePlayer$
at Source)