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 139943 - CCE: com.sun.tools.jdi.ThreadGroupReferenceImpl cannot be cast to com.sun.jdi.ThreadReference
Summary: CCE: com.sun.tools.jdi.ThreadGroupReferenceImpl cannot be cast to com.sun.jdi...
Status: CLOSED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Daniel Prusa
URL:
Keywords: REGRESSION
: 140025 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-07-14 20:59 UTC by Martin Krauskopf
Modified: 2010-04-29 09:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Krauskopf 2008-07-14 20:59:11 UTC
It happens to me after I start to debug NetBeans in NetBeans and then in debuggee run the Ruby app. Let me know, if the
stacktrace is not enough to detect the culprit, and you need more info.

Inlining, it's short:

java.lang.ClassCastException: com.sun.tools.jdi.ThreadGroupReferenceImpl cannot be cast to com.sun.jdi.ThreadReference
	at org.netbeans.modules.debugger.jpda.JPDADebuggerImpl$3.propertyChange(JPDADebuggerImpl.java:1316)
	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276)
	at org.netbeans.modules.debugger.jpda.models.ThreadsCache.exec(ThreadsCache.java:210)
	at org.netbeans.modules.debugger.jpda.util.Operator$1.run(Operator.java:272)
Comment 1 Martin Krauskopf 2008-07-14 21:20:50 UTC
Actually it happens every time I start a Ruby application. Reproduced always by:

(in the debuggee)
1) Create new Ruby application
2) Press <S-F6>

Product Version: NetBeans IDE Dev (Build 080714)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b12
System: Linux version 2.6.24-19-generic running on i386; UTF-8; en_US (nb)
Comment 2 Martin Krauskopf 2008-07-14 21:23:06 UTC
Ups, by accidence filed to my debugger :) Reassigning.
Comment 3 Martin Entlicher 2008-07-14 22:12:34 UTC
Dane, caused by changeset c265eaeab9d9.
Comment 4 Daniel Prusa 2008-07-15 10:48:35 UTC
*** Issue 140025 has been marked as a duplicate of this issue. ***
Comment 5 Daniel Prusa 2008-07-15 13:21:16 UTC
Fixed.
changeset 5becf0ac45de in main
details: http://hg.netbeans.org/main?cmd=changeset;node=5becf0ac45de
Comment 6 Quality Engineering 2008-07-17 04:40:01 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #324 build
Changeset: http://hg.netbeans.org/main/rev/5becf0ac45de
User: Daniel Prusa <dprusa@netbeans.org>
Log: #139943: CCE in threads cache property change listener fixed
Comment 7 Quality Engineering 2010-04-29 09:41:03 UTC
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.