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.
Build: NetBeans IDE Dev (Build 200806060005) VM: Java HotSpot(TM) Client VM, 11.0-b11, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b20 OS: Windows XP, 5.1, x86 User Comments: I just run debugger on a simple java project. The debugger works just fine, but this exception keeps poping up every time i run the debugger. Restarting IDE and/or deleting the usredir does not help. (it started with the latest NB build)
Created attachment 62451 [details] stacktrace
Created attachment 62605 [details] stacktrace
Created attachment 62811 [details] stacktrace
Passing to debugger, real cause is com.sun.jdi.VMDisconnectedException: connection is closed at com.sun.tools.jdi.TargetVM.send(TargetVM.java:274) at com.sun.tools.jdi.VirtualMachineImpl.sendToTarget(VirtualMachineImpl.java:1011) at com.sun.tools.jdi.PacketStream.send(PacketStream.java:41) at com.sun.tools.jdi.JDWP$EventRequest$Set.enqueueCommand(JDWP.java:6765) at com.sun.tools.jdi.JDWP$EventRequest$Set.process(JDWP.java:6735) at com.sun.tools.jdi.EventRequestManagerImpl$EventRequestImpl.set(EventRequestManagerImpl.java:179) at com.sun.tools.jdi.EventRequestManagerImpl$EventRequestImpl.setEnabled(EventRequestManagerImpl.java:143) at com.sun.tools.jdi.EventRequestManagerImpl$EventRequestImpl.enable(EventRequestManagerImpl.java:128) at org.netbeans.modules.debugger.jpda.models.ThreadsCache.setVirtualMachine(ThreadsCache.java:101)
Duplicate of issue #129390. However, we must no call JDI methods from AWT, it can block the UI. The stack trace shows path from org.netbeans.modules.debugger.jpda.ui.debugging.DebuggingView.componentShowing(DebuggingView.java:359) to org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.getAllThreads(JPDADebuggerImpl.java:1317) and to com.sun.tools.jdi.EventRequestManagerImpl$EventRequestImpl.enable(EventRequestManagerImpl.java:128) This must be put off the AWT.
JDI methods are not called from AWT in this case: http://hg.netbeans.org/main/rev/05b903392029 Resolving as a duplicate of #129390. *** This issue has been marked as a duplicate of 129390 ***
Verified I am sorry for the duplicate