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 172547 - ClassCastException: javax.swing.plaf.basic.BasicTabbedPaneUI$ScrollableTabButton cannot be cast to org.netbeans.modules.search.ResultViewPanel
Summary: ClassCastException: javax.swing.plaf.basic.BasicTabbedPaneUI$ScrollableTabBut...
Status: CLOSED DUPLICATE of bug 172546
Alias: None
Product: utilities
Classification: Unclassified
Component: Search (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Victor Vasilyev
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-18 10:28 UTC by Marian Mirilovic
Modified: 2009-12-03 03:26 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 158434


Attachments
stacktrace (2.59 KB, text/plain)
2009-09-18 12:54 UTC, Egor Ushakov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Mirilovic 2009-09-18 10:28:32 UTC
Build: NetBeans IDE Dev (Build 200909171401)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01
OS: Linux, 2.6.28-15-generic, amd64
User comments:  had couple search results tabs ... pushed "Close Other" from popup menu over one tab 

Stacktrace: 
java.lang.ClassCastException: javax.swing.plaf.basic.BasicTabbedPaneUI$ScrollableTabButton cannot be cast to
org.netbeans.modules.search.ResultViewPanel
        at org.netbeans.modules.search.ResultView.closeAllButCurrent(ResultView.java:544)
        at org.netbeans.modules.search.ResultView.access$500(ResultView.java:81)
        at org.netbeans.modules.search.ResultView$CloseAllButCurrent.actionPerformed(ResultView.java:599)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
        at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
        at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1225)
        at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1266)
        at java.awt.Component.processMouseEvent(Component.java:6263)
Comment 1 Victor Vasilyev 2009-09-18 12:53:17 UTC
Just now I've seen it in the previous issue. Seems it is a browser/bugzilla issue? :-)

*** This issue has been marked as a duplicate of 172546 ***
Comment 2 Egor Ushakov 2009-09-18 12:53:58 UTC
Build: NetBeans IDE Dev (Build 090917)
VM: Java HotSpot(TM) Client VM, 14.1-b02, Java(TM) SE Runtime Environment, 1.6.0_15-b03
OS: SunOS, 5.11, x86

User Comments: 
hit close all tabs in search results tab

Stacktrace: 
java.lang.ClassCastException: javax.swing.plaf.synth.SynthTabbedPaneUI$SynthScrollableTabButton cannot be cast to org.netbeans.modules.search.ResultViewPanel
        at org.netbeans.modules.search.ResultView.closeAllButCurrent(ResultView.java:544)
        at org.netbeans.modules.search.ResultView.access$500(ResultView.java:81)
        at org.netbeans.modules.search.ResultView$CloseAllButCurrent.actionPerformed(ResultView.java:599)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
Comment 3 Egor Ushakov 2009-09-18 12:54:02 UTC
Created attachment 87907 [details]
stacktrace
Comment 4 Marian Mirilovic 2009-09-18 12:58:30 UTC
no it's not ... check stack trace ... this one comes from :
 org.netbeans.modules.search.ResultView.closeAllButCurrent

issue 172546 comes from 
org.netbeans.modules.search.ResultView.closeAll
Comment 5 Victor Vasilyev 2009-09-18 13:54:01 UTC
Sorry for my unclear comment in this issue. 
This issue is duplicate, because one method should be used instead. 
See clarification in the Issue 172546.



*** This issue has been marked as a duplicate of 172546 ***
Comment 6 Quality Engineering 2009-09-22 09:24:43 UTC
Integrated into 'main-golden', will be available in build *200909220201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/821c957b01da
User: Victor G. Vasilyev <vvg@netbeans.org>
Log: Refactoring to avoid duplication of code and issues (see #172546 and duplicate #172547)
Comment 7 Marian Mirilovic 2009-12-03 03:26:02 UTC
v/c