java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup)

"Virgil King" <[email protected]> Mon, 6 Aug 2007 21:45:38 -0700
Newsgroups gmane.comp.java.sisc.user
Message-ID <[email protected]>
Hi,

I'm trying to use SISC in a toy applet. After reloading the page
containing the applet in every browser I've tried, I get the following
exception:

java.security.AccessControlException: access denied
(java.lang.RuntimePermission modifyThreadGroup)
	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
	at java.security.AccessController.checkPermission(AccessController.java:546)
	at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
	at sun.applet.AppletSecurity.checkAccess(AppletSecurity.java:235)
	at java.lang.ThreadGroup.checkAccess(ThreadGroup.java:288)
	at java.lang.Thread.init(Thread.java:332)
	at java.lang.Thread.<init>(Thread.java:408)
	at sisc.data.SchemeThread.<init>(Unknown Source)
	at sisc.interpreter.ThreadContext.setHostThread(Unknown Source)
	at sisc.interpreter.Context.enter(Unknown Source)
	at sisc.interpreter.Context.enter(Unknown Source)
	at sisc.interpreter.AppContext.addHeap(Unknown Source)
	at skibble.Skibble.init(Skibble.java:40)
	at sun.applet.AppletPanel.run(AppletPanel.java:418)
	at java.lang.Thread.run(Thread.java:619)

In SchemeThread it looks like a thread group is modified
unconditionally, so I don't know why it's not happening the first time
I load the page, too. Is this a bug or can anyone suggest a
workaround?

Thanks,
Virgil

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/