[sip-comm-dev] Systray throws ClassCastException


#1

Hi all,

I built and ran the newest revision (5105) today, and I noticed some strange
behavior with the systray menu in Windows XP.

If the SC window is open, and then you right-click on the systray icon to
open the menu, you cannot close the systray menu by clicking outside of the
menu. The only exception to this is to click within the SC window itself. If
you close the SC window, and then right-click on the systray icon, clicking
outside the menu sometimes throws an exception (and still fails to close the
menu).

Below is the logger printout:

···

________________________________________________________________________________

13:57:16.808 SEVERE: util.UtilActivator.uncaughtException().81 An uncaught
exception occurred in thread=Thread[AWT-EventQueue-0,6,main] and message
was: java.awt.TrayIcon cannot be cast to java.awt.Component
java.lang.ClassCastException: java.awt.TrayIcon cannot be cast to
java.awt.Component
        at
javax.swing.plaf.basic.BasicPopupMenuUI$MouseGrabber.eventDispatched(BasicPopupMenuUI.java:799)
        at
java.awt.Toolkit$SelectiveAWTEventListener.eventDispatched(Toolkit.java:2360)
        at
java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2252)
        at java.awt.Toolkit.notifyAWTEventListeners(Toolkit.java:2210)
        at java.awt.TrayIcon.dispatchEvent(TrayIcon.java:689)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:604)
        at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
        at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
________________________________________________________________________________

I know there's been some discussion of systray problems in recent weeks, but
I haven't been able to keep up with the conversation, so my apologies if I'm
repeating a known problem.

-Alan