Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6809246

EventDispatchThread shouldn't be reinitialized for disposed AppContexts

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 7
    • Fix Version/s: 7
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b74
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      This issue is reported at java.net forum:

      http://forums.java.net/jive/thread.jspa?messageID=333410

      Sometimes the following exception is observed in Java Console when applet is being destroyed:

      java.lang.IllegalThreadStateException: forbid thread creation in disposed TG
      at sun.plugin.security.ActivatorSecurityManager.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.awt.EventDispatchThread.<init>(Unknown Source)
      at java.awt.EventQueue$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.awt.EventQueue.initDispatchThread(Unknown Source)
      at java.awt.EventQueue.postEventPrivate(Unknown Source)
      at java.awt.EventQueue.postEvent(Unknown Source)
      at java.awt.EventQueue.invokeAndWait(Unknown Source)
      at sun.applet.AppletPanel.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)

      It's clear that it's thrown when AWT tries to create a new EventDispatchThread instance for disposed AppContext.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              art Artem Ananiev
              Reporter:
              art Artem Ananiev
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: