JDK-4179773 : ClassCastException: AWTEventMulticaster, EventQueue.java, line 251
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.1.7
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: solaris_2.5.1,windows_nt
  • CPU: x86,sparc
  • Submitted: 1998-10-08
  • Updated: 1999-11-22
  • Resolved: 1998-12-10
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other Other
1.1.7 b04Fixed 1.1.8Fixed
Related Reports
Relates :  
Relates :  
Description
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)
======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: 1.1.8 FIXED IN: 1.1.7b_004 1.1.8 INTEGRATED IN: 1.1.7b_004 1.1.8
14-06-2004

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

PUBLIC COMMENTS .
10-06-2004

EVALUATION I'm committing this bug to 1.1.8 so it stops being questioned in 1.2 release meetings. fred.ecks@Eng 1998-10-08 I copied the fix from 1.2 (bug ID 4178589) to 1.1.8, which fixed the problem. fred.ecks@Eng 1998-12-09
08-10-1998