Bug in Jide

This forum is used by users to request and discuss new product features. Please do not use this forum for technical support including bug reports.

Moderator: JIDE Support

Forum rules
Product suggestions only. Please do not use this forum for technical support including bug reports.

Bug in Jide

Postby indijaal » Sat Jan 20, 2007 4:55 am

Hi,

I was trying to incorporate a TrayIcon API included with JDK1.6 into an existing application that uses Jide Docking Framework. While incorporating this I got the following Exception. It Seems there is a bug in Jide Docking Framework.

Below is the exception:

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at javax.swing.SwingUtilities.getDeepestComponentAt(SwingUtilities.java:253)
at com.jidesoft.docking.e.a(e.java:850)
at com.jidesoft.docking.DefaultDockingManager.a(DefaultDockingManager.java:1111)
at com.jidesoft.docking.DefaultDockingManager.eventDispatched(DefaultDockingManager.java:1079)
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 request you to provide a bug fix for this in next release. Or let me know if a possible solution exist to this.

Thanks
Arpit
indijaal
 
Posts: 2
Joined: Tue May 16, 2006 9:19 am

Postby JIDE Support » Sat Jan 20, 2007 7:17 am

I'll take a look. Can you please send support@jidesoft.com a test case? You can modify the existing DockingFrameworkDemo.java to reproduce it.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37245
Joined: Sun Sep 14, 2003 10:49 am

Postby JIDE Support » Tue Jan 23, 2007 12:56 pm

Just so you know, 1.9.4.08 release should fix this bug. I managed to check null point although I didn't know how to reproduce it.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37245
Joined: Sun Sep 14, 2003 10:49 am

Postby indijaal » Mon Apr 23, 2007 6:20 am

Hi I m trying to use tray icon with System Tray. when i right click on tray icon a error occured.
that is

Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: java.awt.TrayIcon cannot be cast to java.awt.Component
at com.jidesoft.action.DefaultDockableBarManager.a(Unknown Source)
at com.jidesoft.action.DefaultDockableBarManager.eventDispatched(Unknown Source)
at java.awt.Toolkit$SelectiveAWTEventListener.eventDispatched(Toolkit.java:2360)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2252)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2251)
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)

can you tell me about this bug. how i solved it.
indijaal
 
Posts: 2
Joined: Tue May 16, 2006 9:19 am

Postby JIDE Support » Mon Apr 23, 2007 7:09 am

I just fixed it. It will be included in next release. I will update this thread when it is available to download.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37245
Joined: Sun Sep 14, 2003 10:49 am

Bug in Jide

Postby pankaj » Mon Apr 30, 2007 3:11 am

I have a problem when using trayIcon with System Tray.
The Exception occurs, when i right click on system tray icon.
Can you solve my problem.I am using latest Jide eval version.

Stack Trace :

Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: java.awt.TrayIcon cannot be cast to java.awt.Component
at com.jidesoft.action.DefaultDockableBarManager.a(Unknown Source)
at com.jidesoft.action.DefaultDockableBarManager.eventDispatched(Unknown Source)
at java.awt.Toolkit$SelectiveAWTEventListener.eventDispatched(Toolkit.java:2360)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2252)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2251)
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)


Program Code

TrayIcon trayIcon = null;
PopupMenu popupMenu;
if(SystemTray.isSupported()){
SystemTray systemTray = SystemTray.getSystemTray();
Image image = Toolkit.getDefaultToolkit().getImage("./images/myicon16x16.png");
popupMenu = createPopUpMenu();
trayIcon = new TrayIcon(image,"My Application",popupMenu);

try {
systemTray.add(trayIcon);
} catch (AWTException ex) {
ex.printStackTrace();
}
}
pankaj
 
Posts: 2
Joined: Sun Mar 18, 2007 10:47 pm

Postby JIDE Support » Mon Apr 30, 2007 8:33 am

This is fixed already in our code and will be included in next release this week.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37245
Joined: Sun Sep 14, 2003 10:49 am

Postby JIDE Support » Wed May 02, 2007 3:34 pm

Just so you know, this bug is fixed in 2.0.0 release.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37245
Joined: Sun Sep 14, 2003 10:49 am

Thanks

Postby pankaj » Fri May 11, 2007 6:49 am

Thanks My problem is solved.
pankaj
 
Posts: 2
Joined: Sun Mar 18, 2007 10:47 pm


Return to Product Suggestions

Who is online

Users browsing this forum: No registered users and 2 guests