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 178581 - ClassCastException: org.netbeans.modules.search.MatchingObject cannot be cast to org.netbeans.modules.search.ResultTreeModel
Summary: ClassCastException: org.netbeans.modules.search.MatchingObject cannot be cast...
Status: RESOLVED WORKSFORME
Alias: None
Product: utilities
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Victor Vasilyev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-14 04:39 UTC by Vladimir Voskresensky
Modified: 2010-01-21 11:46 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 163599


Attachments
stacktrace (4.24 KB, text/plain)
2009-12-14 04:39 UTC, Vladimir Voskresensky
Details
stacktrace (4.87 KB, text/plain)
2009-12-14 04:40 UTC, Vladimir Voskresensky
Details
stacktrace (4.87 KB, text/plain)
2009-12-14 08:35 UTC, Vladimir Voskresensky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Voskresensky 2009-12-14 04:39:50 UTC
Build: NetBeans IDE Dev (Build 091214-6e1b08bda344)
VM: Java HotSpot(TM) Client VM, 14.0-b16, Java(TM) SE Runtime Environment, 1.6.0_14-b08
OS: SunOS, 5.10, x86

User Comments:
vv159170: can not switch to Search Result window :-(



Stacktrace: 
java.lang.ClassCastException: org.netbeans.modules.search.MatchingObject cannot be cast to org.netbeans.modules.search.ResultTreeModel
   at org.netbeans.modules.search.NodeRenderer.getTreeCellRendererComponent(NodeRenderer.java:144)
   at javax.swing.plaf.basic.BasicTreeUI.paintRow(BasicTreeUI.java:1498)
   at javax.swing.plaf.basic.BasicTreeUI.paint(BasicTreeUI.java:1210)
   at javax.swing.plaf.metal.MetalTreeUI.paint(MetalTreeUI.java:152)
   at javax.swing.plaf.ComponentUI.update(ComponentUI.java:143)
   at javax.swing.JComponent.paintComponent(JComponent.java:763)
Comment 1 Vladimir Voskresensky 2009-12-14 04:39:54 UTC
Created attachment 92514 [details]
stacktrace
Comment 2 Vladimir Voskresensky 2009-12-14 04:40:52 UTC
Created attachment 92515 [details]
stacktrace
Comment 3 Vladimir Voskresensky 2009-12-14 04:41:35 UTC
Search Result window can not be opened at all
Comment 4 Vladimir Voskresensky 2009-12-14 08:35:00 UTC
Created attachment 92546 [details]
stacktrace
Comment 5 Victor Vasilyev 2010-01-21 10:47:46 UTC
Vladimir,

I can't reproduce this bug.

Product Version: NetBeans IDE 6.8 (Build 200912041610)
Java: 1.6.0_17; Java HotSpot(TM) Client VM 14.3-b01
System: SunOS version 5.11 running on x86; UTF-8; en_US (nb)

Is this bug stable?
Comment 6 Vladimir Voskresensky 2010-01-21 11:14:04 UTC
I do not see it in today's build
Comment 7 Victor Vasilyev 2010-01-21 11:46:25 UTC
OK. Probably some partial modifications in NB GUI are a cause of this bug in the pre-release versions. Note, bug has occurred during repaint of the Swing components, i.e. all components was successfully created before with in method org.netbeans.modules.search.NodeRenderer.getTreeCellRendererComponent. I hope final modifications in NB GUI have fixed this bug and repaint can be successfully completed now.
 
I'll close this bug as WORKSFORME.
Please, re-open this bug if the exception will be thrown again.