This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
This issue was originally marked as duplicate of issue 172989, that is already resolved. This issue is still valid, so this seems to be another issue, but it might be related. Build: NetBeans IDE Dev (Build 200910100201) VM: Java HotSpot(TM) 64-Bit Server VM, 14.1-b02-92, Java(TM) SE Runtime Environment, 1.6.0_15-b03-226 OS: Mac OS X, 10.5.8, x86_64 User Comments: juhrik: Clicked on the exit button of the first tab of Chat window and the exception appeared... Stacktrace: java.lang.ClassCastException: org.netbeans.modules.kenai.collab.chat.ContactList cannot be cast to org.netbeans.modules.kenai.collab.chat.ChatPanel at org.netbeans.modules.kenai.collab.chat.ChatTopComponent$5.propertyChange(ChatTopComponent.java:177) at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339) at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:347) at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276) at java.awt.Component.firePropertyChange(Component.java:8213) at org.openide.awt.CloseButtonTabbedPane.fireCloseRequest(CloseButtonTabbedPane.java:472)
Created attachment 89377 [details] stacktrace
Build: NetBeans IDE Dev (Build 200910141401) VM: Java HotSpot(TM) 64-Bit Server VM, 14.1-b02-92, Java(TM) SE Runtime Environment, 1.6.0_15-b03-226 OS: Mac OS X, 10.5.8, x86_64 User Comments: pushed x-widget on the first tab of kenai chat window (the one with the contact list) and the exception appeared. Stacktrace: java.lang.ClassCastException: org.netbeans.modules.kenai.collab.chat.ContactList cannot be cast to org.netbeans.modules.kenai.collab.chat.ChatPanel at org.netbeans.modules.kenai.collab.chat.ChatTopComponent$5.propertyChange(ChatTopComponent.java:183) at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339) at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:347) at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276) at java.awt.Component.firePropertyChange(Component.java:8213) at org.openide.awt.CloseButtonTabbedPane.fireCloseRequest(CloseButtonTabbedPane.java:472)
Created attachment 89533 [details] stacktrace
The problem is that the close button (or 'exit button', 'x-widget' - sorry I don't know which is the correct name for it) appears in the first tab (the contact list tab of chat window). It appears there only in case when running IDE on JDK6 but cannot reproduce on JDK5 => seems to be JDK_SPECIFIC. How to reproduce: -start IDE with clear userdir -log in to kenai -click on any envelop icon in the kenai dashboard (in the list of My Projects) -the chat window opens and when switching to the contact list tab the close button is there -->> pushing on it causes the ClassCastException
Integrated into 'main-golden', will be available in build *200910160201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/d75e6844ee43 User: Jan Becicka <jbecicka@netbeans.org> Log: #174463: ClassCastException: org.netbeans.modules.kenai.collab.chat.ContactList cannot be cast to org.netbeans.modules.kenai.collab.chat.ChatPanel
I did workaround, but 172989 is still there. I will reopen it. *** This issue has been marked as a duplicate of 172989 ***
v/c