This exception is caused by calling these methods on a dead Thread object in the Sun JRE.
The Java class libraries in the Sun JRE have changed over time. Some APIs have been clarified, some have been deprecated, and some have had their implementation altered.
The result of calling stop, suspend, and resume on a dead Thread object was not well defined. In the Microsoft VM, they result in a no-op. However, in the Sun JRE, calling these methods on a dead Thread object invalidates the underlying invariant of the implementation, thus resulting in an AccessControlException.
The Thread stop, suspend, and resume methods are inherently unsafe and have been deprecated in the Java 2 platform.
Solutions
To work around this problem, replace calls to stop, suspend, and resume with code that simply modifies some variable to indicate that the target thread should stop/suspend/resume.
Karen Chang (karenchang@cotzgen.com)
Senior IT Developer
Cotzgen Corporation, USA
Providing Outsourcing Software Development Services