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 135877 - com.sun.jdi.ObjectCollectedException at com.sun.tools.jdi.JDWPException.toJDIException
Summary: com.sun.jdi.ObjectCollectedException at com.sun.tools.jdi.JDWPException.toJDI...
Status: CLOSED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Daniel Prusa
URL: http://statistics.netbeans.org/except...
Keywords:
: 139131 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-05-27 13:46 UTC by Jan Pokorsky
Modified: 2010-04-29 09:39 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 45404


Attachments
stacktrace (1.22 KB, text/plain)
2008-06-09 09:52 UTC, kate
Details
stacktrace (1.22 KB, text/plain)
2008-06-10 15:53 UTC, kate
Details
stacktrace (1.22 KB, text/plain)
2008-06-12 02:26 UTC, _ krystyna
Details
stacktrace (1.22 KB, text/plain)
2008-06-19 15:15 UTC, Petr Cyhelsky
Details
stacktrace (1.22 KB, text/plain)
2008-06-20 02:06 UTC, Jesse Glick
Details
stacktrace (1.22 KB, text/plain)
2008-06-20 23:07 UTC, Jesse Glick
Details
stacktrace (1.22 KB, text/plain)
2008-06-25 09:34 UTC, Max Sauer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Pokorsky 2008-05-27 13:46:49 UTC
I have attached another NetBeans instance remotely and as I choose Step Over I get the exception again and again. I was
debugging
org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin.processFiles(Set<FileObject>,CancellableTask<WorkingCopy>
,ClasspathInfo) method.

Product Version: NetBeans IDE Dev (Build 20080527050033)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05
System: Linux version 2.6.22-14-generic running on i386; UTF-8; en_US (nb)
STACKTRACE: (first 10 lines)
com.sun.jdi.ObjectCollectedException
        at com.sun.tools.jdi.JDWPException.toJDIException(JDWPException.java:27)
        at com.sun.tools.jdi.ThreadReferenceImpl.jdwpStatus(ThreadReferenceImpl.java:191)
        at com.sun.tools.jdi.ThreadReferenceImpl.isSuspended(ThreadReferenceImpl.java:201)
        at org.netbeans.modules.debugger.jpda.models.JPDAThreadImpl.<init>(JPDAThreadImpl.java:104)
        at org.netbeans.modules.debugger.jpda.models.ObjectTranslation.createTranslation(ObjectTranslation.java:102)
        at org.netbeans.modules.debugger.jpda.models.ObjectTranslation.translate(ObjectTranslation.java:172)
        at org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.getThread(JPDADebuggerImpl.java:1290)
        at org.netbeans.modules.debugger.jpda.models.JPDAThreadGroupImpl.getThreads(JPDAThreadGroupImpl.java:89)
        at org.netbeans.modules.debugger.jpda.models.ThreadsTreeModel.computeChildren(ThreadsTreeModel.java:155)
        at org.netbeans.modules.debugger.jpda.models.ThreadsTreeModel.recomputeChildren(ThreadsTreeModel.java:177)
Comment 1 Jan Pokorsky 2008-05-27 14:23:27 UTC
It seems to be reproducible even in NB 6.1 according to the first reporter
(http://statistics.netbeans.org/exceptions/detail.do?id=45404).
Comment 2 Martin Entlicher 2008-05-27 16:36:01 UTC
Are there any steps to reproduce this? It looks like this is triggered by Threads View. The ThreadsCache seems to
remember some threads which have already gone. Concrete steps to reproduce would help us to identify the problem.
Comment 3 Jan Pokorsky 2008-05-27 16:54:42 UTC
Unfortunately it is random for me.
Comment 4 Martin Entlicher 2008-05-30 07:52:25 UTC
Since any method on ObjectReference can throw ObjectCollectedException, we should add catches for that exception to all
such places. Scheduling for future, this is a fair amount of work.
Comment 5 Exceptions Reporter 2008-06-06 23:42:24 UTC
This issue has already 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=45404
Comment 6 kate 2008-06-09 09:52:07 UTC
Created attachment 62541 [details]
stacktrace
Comment 7 kate 2008-06-10 15:53:50 UTC
Created attachment 62628 [details]
stacktrace
Comment 8 kate 2008-06-10 16:01:12 UTC
Product Version: NetBeans IDE Dev (Build 080609)
Java: 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06
System: SunOS version 5.11 running on x86; ISO646-US; en (nb)

I was able to reproduce this exception repeatedly with the following steps

TEST PROJECT: MemoryView 

1 - Create new Watches for variables a, i, s, v
2 - Put caret on line 194 of MemoryView.java 
3 - Invoke Run To Cursor action
4 - Again:  Put caret on line 194 of MemoryView.java
5 - Again:  Invoke Run To Cursor action ( = new session is created)
6 - Exception
Comment 9 _ krystyna 2008-06-12 02:26:01 UTC
Created attachment 62713 [details]
stacktrace
Comment 10 Exceptions Reporter 2008-06-13 18:42:33 UTC
This issue has already 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=45404
Comment 11 Petr Cyhelsky 2008-06-19 15:15:21 UTC
Created attachment 63108 [details]
stacktrace
Comment 12 Jesse Glick 2008-06-20 02:06:35 UTC
Created attachment 63140 [details]
stacktrace
Comment 13 Jesse Glick 2008-06-20 23:07:39 UTC
Created attachment 63188 [details]
stacktrace
Comment 14 Max Sauer 2008-06-25 09:34:28 UTC
Created attachment 63401 [details]
stacktrace
Comment 15 Exceptions Reporter 2008-07-10 10:12:17 UTC
This issue has already 50 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=45404
Comment 16 Petr Cyhelsky 2008-07-14 15:32:38 UTC
*** Issue 139131 has been marked as a duplicate of this issue. ***
Comment 17 Daniel Prusa 2008-07-14 17:03:34 UTC
Fixed.
changeset c265eaeab9d9 in main
details: http://hg.netbeans.org/main?cmd=changeset;node=c265eaeab9d9
Comment 18 Quality Engineering 2008-07-17 04:35:14 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #324 build
Changeset: http://hg.netbeans.org/main/rev/c265eaeab9d9
User: Daniel Prusa <dprusa@netbeans.org>
Log: #135877: ObjectCollectedException fixed
Comment 19 Quality Engineering 2010-04-29 09:39:47 UTC
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.