Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 132160 - ClassCastException on root node inside Evaluate Expression Result tree
ClassCastException on root node inside Evaluate Expression Result tree
Product: debugger
Classification: Unclassified
Component: Java
All All
: P2 (vote)
: 6.x
Assigned To: Martin Entlicher
Depends on:
  Show dependency treegraph
Reported: 2008-04-07 09:57 UTC by Jiri Vagner
Modified: 2008-07-10 17:38 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT

exc.txt (2.82 KB, text/plain)
2008-04-07 09:59 UTC, Jiri Vagner

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Vagner 2008-04-07 09:57:21 UTC
Steps to reproduce:
 - open MemoryView project
 - open file
 - set line breakpoin on line 38 and debug file
 - run Run > Evaluete Expression
 - type "a" inside textfield and press enter key
 - click left mouse on "a" node inside Result tree

java.lang.ClassCastException: org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj cannot be cast to
	at org.netbeans.modules.debugger.jpda.heapwalk.models.HeapActionsFilter$1.isEnabled(
	at org.netbeans.spi.viewmodel.Models$ActionSupport.isEnabled(
	at org.openide.awt.Actions$MenuBridge.updateState(
	at org.openide.awt.Actions.connect(

Product Version: NetBeans IDE Dev (Build 200804032041)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11
System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)
Comment 1 Jiri Vagner 2008-04-07 09:59:23 UTC
Created attachment 59757 [details]
Comment 2 Martin Entlicher 2008-04-07 13:29:45 UTC
The problem is that selected node happens to be the last selected node in the IDE before Evaluate Expression dialog was
Comment 3 rbalada 2008-06-05 12:02:44 UTC
I was able to reproduce it only on JDK 1.6.x . I was unable to reproduce when using JDK 1.5.x.

Added "instanceof" check before type conversion.
Fix integrated into main as
Comment 4 Quality Engineering 2008-06-05 15:50:18 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #239 build
User: Rudolf Balada <>
Log: #132160: ClassCastException on root node inside Evaluate Expression Result tree
Comment 5 Peter Pis 2008-06-06 09:36:40 UTC
Comment 6 Peter Pis 2008-06-06 09:37:02 UTC
Verified for both 1.5 and 1.6 in Product Version: NetBeans IDE Dev (Build 200806060005)
Comment 7 jinb 2008-06-09 16:31:58 UTC
fix backported into release61_fixes branch
Comment 8 Peter Pis 2008-06-19 09:48:52 UTC
Verified with patch2.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo