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.

Bug 174463

Summary: ClassCastException: org.netbeans.modules.kenai.collab.chat.ContactList cannot be cast to org.netbeans.modules.kenai.collab.chat.ChatPanel
Product: connecteddeveloper Reporter: Jaromir Uhrik <juhrik>
Component: ChatAssignee: Jan Becicka <jbecicka>
Status: CLOSED DUPLICATE    
Severity: blocker CC: juhrik
Priority: P3 Keywords: JDK_SPECIFIC
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=160086
Issue Type: DEFECT Exception Reporter: 160086
Attachments: stacktrace
stacktrace

Description Jaromir Uhrik 2009-10-13 15:55:33 UTC
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)
Comment 1 Jaromir Uhrik 2009-10-13 15:55:38 UTC
Created attachment 89377 [details]
stacktrace
Comment 2 Jaromir Uhrik 2009-10-15 13:59:12 UTC
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)
Comment 3 Jaromir Uhrik 2009-10-15 13:59:18 UTC
Created attachment 89533 [details]
stacktrace
Comment 4 Jaromir Uhrik 2009-10-15 14:11:29 UTC
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
Comment 5 Quality Engineering 2009-10-16 10:18:28 UTC
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
Comment 6 Jan Becicka 2009-10-16 14:05:09 UTC
I did workaround, but 172989 is still there. I will reopen it.

*** This issue has been marked as a duplicate of 172989 ***
Comment 7 Marian Mirilovic 2011-06-09 09:57:31 UTC
v/c