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 - ClassCastException: org.netbeans.modules.kenai.collab.chat.ContactList cannot be cast to org.netbeans.modules.kenai.collab.chat.ChatPanel
Summary: ClassCastException: org.netbeans.modules.kenai.collab.chat.ContactList cannot...
Status: CLOSED DUPLICATE of bug 172989
Alias: None
Product: connecteddeveloper
Classification: Unclassified
Component: Chat (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Becicka
URL: http://statistics.netbeans.org/except...
Keywords: JDK_SPECIFIC
Depends on:
Blocks:
 
Reported: 2009-10-13 15:55 UTC by Jaromir Uhrik
Modified: 2011-06-09 09:57 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 160086


Attachments
stacktrace (2.91 KB, text/plain)
2009-10-13 15:55 UTC, Jaromir Uhrik
Details
stacktrace (2.91 KB, text/plain)
2009-10-15 13:59 UTC, Jaromir Uhrik
Details

Note You need to log in before you can comment on or make changes to this bug.
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