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 241769 - com.sun.jdi.ObjectCollectedException at com.sun.tools.jdi.JDWPException.toJDIException
Summary: com.sun.jdi.ObjectCollectedException at com.sun.tools.jdi.JDWPException.toJDI...
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2014-02-12 13:22 UTC by Vladimir Riha
Modified: 2014-02-14 02:53 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 207531


Attachments
stacktrace (2.94 KB, text/plain)
2014-02-12 13:22 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2014-02-12 13:22:41 UTC
Build: NetBeans IDE Dev (Build 201402120001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b69, Java(TM) SE Runtime Environment, 1.8.0-b129
OS: Windows 7

User Comments:
vriha: Adding a new watch for 
test + test + "a" + homoSapiens.name

What  I did:
 - download project from [1]
 - In test1.js, add following to the end of line 62:
	var nic  = test + test + "a" + homoSapiens.name;
 - Add line breakpoint to test1.js:63 and debug project
 - add a new watch for expression above by double clicking in Variables on <Enter new watch>

[1] http://services.netbeans.org/synergy/server/api/attachment.php?id=197




Stacktrace: 
com.sun.jdi.ObjectCollectedException
   at com.sun.tools.jdi.JDWPException.toJDIException(JDWPException.java:45)
   at com.sun.tools.jdi.ClassTypeImpl.invokeMethod(ClassTypeImpl.java:233)
   at org.netbeans.modules.debugger.jpda.jdi.ClassTypeWrapper.invokeMethod(ClassTypeWrapper.java:280)
   at org.netbeans.modules.debugger.jpda.expr.TreeEvaluator.invokeVirtual(TreeEvaluator.java:302)
   at org.netbeans.modules.debugger.jpda.expr.TreeEvaluator.invokeVirtual(TreeEvaluator.java:274)
   at org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.invokeMethod(JPDADebuggerImpl.java:1099)
Comment 1 Vladimir Riha 2014-02-12 13:22:43 UTC
Created attachment 145091 [details]
stacktrace
Comment 2 Vladimir Riha 2014-02-12 13:23:54 UTC
I've tried to reproduce it but without any luck
Comment 3 Martin Entlicher 2014-02-12 17:52:43 UTC
This is a random issue in it's nature, thus impossible to reproduce on demand.

However, this is fixed by changeset:   272068:c30b6b506702
http://hg.netbeans.org/core-main/rev/c30b6b506702
Comment 4 Quality Engineering 2014-02-14 02:53:54 UTC
Integrated into 'main-silver', will be available in build *201402140001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/c30b6b506702
User: mentlicher@netbeans.org
Log: #241769: Prevent from ObjectCollectedException thrown from ClassType.invokeMethod().