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

ClassCastException: AWTEventMulticaster, EventQueue.java, line 251

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.1.7
    • 1.1.7
    • client-libs
    • b04
    • x86, sparc
    • solaris_2.5.1, windows_nt

        This had been filed as #4179500, but it was accidentally closed as a duplicate.
        This new bug is being filed in its place. - fred.ecks@Eng 1998-10-07


        Name: chT40241 Date: 10/07/98



        Every so often, the exception below occurs. It is not reliably reproducible with an exact test case. Looking at the source code
        in java.awt.EventQueue line 251, I notice that there is a blind
        cast:
                    return (EventQueueListener) removeInternal(l, oldl);
        For whatever reason, this cast is sometimes not valid.

        It doesn't seem to disrupt the application, but it is disturbing to see it.

        Exception occurred during event dispatching.
        java.lang.ClassCastException: java.awt.AWTEventMulticaster
                at java.awt.EventQueue$EventQueueMulticaster.remove(EventQueue.java:251)

                at java.awt.EventQueue.removeEventQueueListener(EventQueue.java:181)
                at java.awt.LightweightDispatcher.stopListeningForOtherDrags(Container.j
        ava:1627)
                at java.awt.LightweightDispatcher.trackMouseEnterExit(Container.java:159
        1)
                at java.awt.LightweightDispatcher.processMouseEvent(Container.java:1512)

                at java.awt.LightweightDispatcher.dispatchEvent(Container.java:1453)
                at java.awt.Container.dispatchEventImpl(Container.java:936)
                at java.awt.Component.dispatchEvent(Component.java:1741)
                at com.sas.apps.webEIS.designer.ReportEventDispatchThread.run(ReportEven
        tDispatchThread.java:74)
        ======================================================================

              feckssunw Fred Ecks (Inactive)
              feckssunw Fred Ecks (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: