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

The SentEvent and SequencedEvent doesn't consider recipient

XMLWordPrintable

    • beta2
    • x86, sparc
    • solaris_2.6, solaris_7, solaris_8, windows_nt, windows_2000
    • Verified

      Run the DrawTest demo applet. I played with it for a few seconds (drew
      a few lines, drew a few points), then tried to reload the applet (from
      the menu), and the following exception was thrown:

      /net/jano/export/disk03/awt/echawkes/merlytest/build/solaris-i386/bin/java sun.applet.AppletViewer
       file:/net/jano/export/disk03/awt/echawkes/merlytest/build/solaris-i386/demo/applets/DrawTest/exam
      ple1.html
      java.lang.IllegalThreadStateException
              at java.lang.ThreadGroup.add(ThreadGroup.java:801)
              at java.lang.Thread.init(Thread.java:295)
              at java.lang.Thread.<init>(Thread.java:406)
              at java.awt.EventDispatchThread.<init>(EventDispatchThread.java:49)
              at java.awt.EventQueue$1.run(EventQueue.java:564)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.awt.EventQueue.initDispatchThread(EventQueue.java:561)
              at java.awt.EventQueue.wakeup(EventQueue.java:711)
              at sun.awt.SunToolkit.wakeupEventQueue(Native Method)
              at sun.awt.PostEventQueue.postEvent(SunToolkit.java:632)
              at sun.awt.SunToolkit.postEvent(SunToolkit.java:268)
              at java.awt.DefaultKeyboardFocusManager.sendMessage(DefaultKeyboardFocusManager.java:167)
              at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:348
      )
              at java.awt.Component.dispatchEventImpl(Component.java:2789)
              at java.awt.Component.dispatchEvent(Component.java:2765)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:423)
              at java.awt.SequencedEvent.dispatch(SequencedEvent.java:96)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:421)
              at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:140)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:126)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:121)
              at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
      ^Cechawkes@java2d-x86-builder:/java/devtools/i386/SUNWspro/5.0/bin( 192 )%

      I was able to reproduce this on sol-x86 2.7 (with all required patches),
      but not on jano (sol-sparc 2.6). I also reproduced it on gradgrind
      (sol-sparc 2.7), but gradgrind is missing several patches. I could not
      reproduce it on NT.

      It is reproducible with build 35, but not with build 34.

      naveena.suryadevara@Eng 2001-03-14

                      JDK version: Merlin beta build # 55
                      Tests failing: jdk/demo ArcTest, DrawTest, GraphicsTest

                      To reproduce:
                      - appletviewer jdk1.4/demo/applets/ArcTest/example1.html
                      - clone the applet
                      - by reloading(many times) the original or cloned applet the following
                       error is seen

                      Error output:
                      *************
                      ^Cconway:/home/naveenas/jdk1.4/b55/demo/applets/ArcTest 125 % !!
                      appletviewer example1.html
                      java.lang.IllegalThreadStateException
                              at java.lang.ThreadGroup.add(ThreadGroup.java:801)
                              at java.lang.Thread.init(Thread.java:309)
                              at java.lang.Thread.<init>(Thread.java:420)
                              at java.awt.EventDispatchThread.<init>(EventDispatchThread.java:49)
                              at java.awt.EventQueue$1.run(EventQueue.java:580)
                              at java.security.AccessController.doPrivileged(Native Method)
                              at java.awt.EventQueue.initDispatchThread(EventQueue.java:577)
                              at java.awt.EventQueue.wakeup(EventQueue.java:727)
                              at sun.awt.SunToolkit.wakeupEventQueue(Native Method)
                              at sun.awt.PostEventQueue.postEvent(SunToolkit.java:658)
                              at sun.awt.SunToolkit.postEvent(SunToolkit.java:270)
                              at java.awt.DefaultKeyboardFocusManager.sendMessage(DefaultKeyboardFocus
                      Manager.java:167)
                              at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFoc
                      usManager.java:348)
                              at java.awt.Component.dispatchEventImpl(Component.java:3351)
                              at java.awt.Component.dispatchEvent(Component.java:3327)
                              at java.awt.EventQueue.dispatchEvent(EventQueue.java:439)
                              at java.awt.SequencedEvent.dispatch(SequencedEvent.java:96)
                              at java.awt.EventQueue.dispatchEvent(EventQueue.java:437)
                              at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:14
                      0)
                              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:126)
                              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:121)
                              at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)

      ================================================================================

      ###@###.### 2001-05-01

                      JDK version: Merlin beta build # 61
                      Tests failing: jdk/demo ArcTest, DrawTest, GraphicsTest

                      os : sol2.6

                      To reproduce:
         If we clone the applet for few times and then try to stop and reload for
      couple of times then the above mentioned java.lang.IllegalThreadStateException
      is thrown.


         

            ssisunw Ssi Ssi (Inactive)
            ehawkessunw Eric Hawkes (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: