JDK-4179500 : ClassCastException: AWTEventMulticaster, EventQueue.java, line 251
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.1.7
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_nt
  • CPU: x86
  • Submitted: 1998-10-07
  • Updated: 1998-10-07
  • Resolved: 1998-10-07
Related Reports
Duplicate :  
Relates :  
Description

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)
======================================================================

Comments
WORK AROUND Name: chT40241 Date: 10/07/98 None. ======================================================================
11-06-2004

EVALUATION Hey! This bug shouldn't have been closed! Must I re-file it, or is there some way I can reopen it? fred.ecks@Eng 1998-10-07 I've re-filed this bug as #4179773, to be fixed in 1.1.x fred.ecks@Eng 1998-10-07
07-10-1998