Community
Participate
Working Groups
build 20011206 When I repeatedly start a program in debug mode without waiting between runs I get a VMDisconnectedException in PacketReceiveManager.getReply after a few restarts (around 5). If I wait for five seconds after the program terminated before starting it again I don't get this exception. Restarting a program in debug mode should work regardless of the time since the last debug session. Note that I restarted by clicking on the debug button. Here's the simple test case that I ran: public class PR_ { public static void main(String[] args) { int[] test2 = new int[] {0, 10, 20, 30, 40, 50, -1}; for (int i = test2.length - 1; i > 1; i--) { test2[i] = test2[i - 1]; } for (int i = 0; i < test2.length; i++) { System.out.println(test2[i]); } } }
Created attachment 188 [details] VMDisconnectedException: Got IOException from Virtual Machine
Unable to reproduce. Please re-open if this continues to be a problem for you.
I get the same exception while debugging with M4, Windows NT and JDK 1.3.1_03.
Needs investigation
Joe, please try to reproduce on M5.
Using M5 on WinXP with JDK 1.4.1 could not duplicate. Tried rapidly clicking Beetle button and simply holding down F11, and am amble to perform several dozen launches without incident. Will try other VMs.
Tried several other VMs, including JDK1.3.1 with no luck. Michael, are you able to reproduce this problem with M5? If so, can you provide a simple test case? Thanks.
Noticed that stack trace appears to from J9. Tried to reproduce on J9 with no luck. Marking as WORKSFORME since I can't duplicate the problem. Knut & Michael, please reopen if you can reproduce this on M5 or later.