Skip to main content

latest JDK7 changes in java.lang.RuntimePermission

No replies
rnloconto
Offline
Joined: 2011-03-16
Points: 0

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" 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.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>(IdleProcess.java:47)
at com.skillsoft.shared.player.IdleProcess.getInstance(IdleProcess.java:71)
at com.skillsoft.legacy.player.Setup.run(Setup.java:40)
at java.lang.Thread.run(Unknown Source)
Exception in thread "StartThread" java.lang.NullPointerException
at com.skillsoft.legacy.player.PagePlayer$StartThread.run(PagePlayer.java:569)
at java.lang.Thread.run(Unknown Source)