- 
    Bug 
- 
    Resolution: Fixed
- 
     P2 P2
- 
    7
- 
        b55
- 
        generic
- 
        generic
- 
        Not verified
| Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build | 
|---|---|---|---|---|---|---|
| JDK-2182479 | 6u18 | Dmitry Cherepanov | P2 | Closed | Fixed | b03 | 
Bundles location: http://jre.sfbay/java/re/jdk/7/nightly/bundles/<PLATFORM-ARCH>/latest
OS tested: Windows Vista, Solaris Sparc 10, RHEL5.2
How to reproduce:
1. Install jre from the location above.
2. Use the browser to load SwingSet2 Applet or Java 2D from http://java.sun.com/products/plugin/1.5.0/demos/applets.html
3. The exception is printed to the Java Console when the applet is closed.
This is the stack trace of the exception:
Exception in thread "TimerQueue" java.lang.IllegalMonitorStateException
at java.util.concurrent.locks.ReentrantLock$Sync.tryRelease(Unknown Source)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.release(Unknown Source)
at java.util.concurrent.locks.ReentrantLock.unlock(Unknown Source)
at java.util.concurrent.DelayQueue.take(Unknown Source)
at javax.swing.TimerQueue.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception in thread "SwingWorker-pool-1-thread-1" 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.applet.AppletSecurity.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 java.util.concurrent.Executors$DefaultThreadFactory.newThread(Unknown Source)
at javax.swing.SwingWorker$6.newThread(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.<init>(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.addWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.processWorkerExit(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
It's a regression starting from b15.
- backported by
- 
                    JDK-2182479 JFC demos threw exception in the Java Console when applets are closed -           
- Closed
 
-         
- relates to
- 
                    JDK-6880336 SwingWorker deadlocks due one thread in the swingworker-pool -           
- Closed
 
-         
- 
                    JDK-6829923 Test javax/swing/system/6799345/TestShutdown.java fails on X11 platforms -           
- Resolved
 
-         
- 
                    JDK-6776497 When changing / reloading applet(s) the jvm dies and is restarted. -           
- Closed
 
-         
- 
                    JDK-6828273 javax/swing/system/6799345/TestShutdown.java test fails with RuntimeException. -           
- Closed
 
-         
- 
                    JDK-6839727 java plugin should avoid relaunch of jvm if possible -           
- Closed
 
-         
- 
                    JDK-6941572 Won't execute a SwingWorker object with update 18 -           
- Closed
 
-         
- 
                    JDK-6627356 Try to preserve Lock invariants even when faced with Thread.stop -           
- Closed
 
-