NetBeans Java Debugger Connects once, but not again

On 2 different computers, when I first installed NetBeans, I was able to run and debug one of the sample programs.

But after that first success, I haven’t been able to do it again.

This is the output I get, starting with what looks like some successful messages from constructors and whatnot.
(i have a breakpoint set in the constructor that seems to be printing the “Iterative Robot ConstructorStart” message):
[cRIO] FPGA Hardware GUID: 0xad9a5591cc64e4df756d77d1b57a549e
[cRIO] FPGA Software GUID: 0xad9a5591cc64e4df756d77d1b57a549e
[cRIO] IterativeRobot Constructor Start
[cRIO] IterativeRobot Constructor Finish
Waiting for connection from debugger on serversocket://:2900
Synchronizing debug state with VM…
Established connection to Debugger (handshake took 8376ms)
[cRIO] !!! no thread found waiting on event=== DEAD-LOCK STATUS: ===
[cRIO] — isolate 2 “edu.wpi.first.wpilibj.samples.CircleTrackerDemo” (ALIVE) status —
[cRIO] thread Thread-10 priority: 5 state: ALIVE queue: RUNNABLE
[cRIO] at com.sun.squawk.VMThread.monitorWait(VMThread.java:2298)
[cRIO] at java.lang.Object.wait(Object.java:162)
[cRIO] at java.util.TimerThread.mainLoop(Timer.java:439)
[cRIO] at java.util.TimerThread.run(Timer.java:391)
[cRIO] at com.sun.squawk.VMThread.callRun(VMThread.java:1499)
[cRIO] at com.sun.squawk.VM.callRun(VM.java:305)
[cRIO] thread Thread-9 priority: 5 state: ALIVE queue: RUNNABLE
[cRIO] at com.sun.squawk.VMThread.monitorWait(VMThread.java:2298)
[cRIO] at java.lang.Object.wait(Object.java:162)
[cRIO] at java.util.TimerThread.mainLoop(Timer.java:439)
[cRIO] at java.util.TimerThread.run(Timer.java:391)
[cRIO] at com.sun.squawk.VMThread.callRun(VMThread.java:1499)
[cRIO] at com.sun.squawk.VM.callRun(VM.java:305)
[cRIO] thread FRCDriverStation priority: 5 state: ALIVE queue: RUNNABLE
[cRIO] at com.sun.squawk.VMThread.waitForEvent(VMThread.java:1863)
[cRIO] at com.sun.squawk.NativeUnsafe.waitForBlockingFunction(NativeUnsafe.java:641)
[cRIO] at com.sun.cldc.jna.BlockingFunction.call2(BlockingFunction.java:113)
[cRIO] at com.sun.cldc.jna.Function.call2(Function.java:271)
[cRIO] in static method #1 of edu.wpi.first.wpilibj.communication.FRCControl(bci=15)
[cRIO] in virtual method #12 of edu.wpi.first.wpilibj.DriverStation(bci=10)
[cRIO] in virtual method #11 of edu.wpi.first.wpilibj.DriverStation(bci=9)
[cRIO] in static method #2 of edu.wpi.first.wpilibj.DriverStation(bci=5)
[cRIO] at edu.wpi.first.wpilibj.DriverStation$DriverStationTask.run(bci=6)
[cRIO] at java.lang.Thread.run(Thread.java:231)
[cRIO] at com.sun.squawk.VMThread.callRun(VMThread.java:1499)
[cRIO] at com.sun.squawk.VM.callRun(VM.java:305)
[cRIO] thread edu.wpi.first.wpilibj.samples.CircleTrackerDemo - main priority: 5 state: ALIVE queue: RUNNABLE
[cRIO] at com.sun.squawk.VMThread.monitorWait(VMThread.java:2298)
[cRIO] at java.lang.Object.wait(Object.java:162)
[cRIO] at java.lang.Object.wait(Object.java:257)
[cRIO] at com.sun.squawk.debugger.EventNotifier.produceEvent(EventNotifier.java:122)
[cRIO] at com.sun.squawk.debugger.EventManager.produceEvent(EventManager.java:184)
[cRIO] at com.sun.squawk.debugger.sda.SDA.notifyEvent(SDA.java:1044)
[cRIO] at com.sun.squawk.imp.MIDletMainWrapper.main(MIDletMainWrapper.java:104)
[cRIO] at com.sun.squawk.Klass.main(Klass.java:2997)
[cRIO] at com.sun.squawk.Isolate.run(Isolate.java:1554)
[cRIO] at java.lang.Thread.run(Thread.java:231)
[cRIO] at com.sun.squawk.VMThread.callRun(VMThread.java:1499)
[cRIO] at com.sun.squawk.VM.callRun(VM.java:305)
[cRIO] — isolate 1 “com.sun.squawk.debugger.sda.SDA” (ALIVE) status —
[cRIO] thread EventManager priority: 5 state: ALIVE queue: CONDVAR waiting on condvar for object com.sun.squawk.debugger.EventNotifier@10
[cRIO] at com.sun.squawk.VMThread.monitorWait(VMThread.java:2298)
[cRIO] at java.lang.Object.wait(Object.java:162)
[cRIO] at java.lang.Object.wait(Object.java:257)
[cRIO] at com.sun.squawk.debugger.EventNotifier.consumeEvent(EventNotifier.java:156)
[cRIO] at com.sun.squawk.debugger.EventManager.run(EventManager.java:65)
[cRIO] at com.sun.squawk.debugger.sda.SDA$SDAEventManager.run(SDA.java:608)
[cRIO] at java.lang.Thread.run(Thread.java:231)
[cRIO] at com.sun.squawk.VMThread.callRun(VMThread.java:1499)
[cRIO] at com.sun.squawk.VM.callRun(VM.java:305)
[cRIO] thread SDPListener priority: 5 state: ALIVE queue: EVENT
[cRIO] at com.sun.squawk.VMThread.waitForOSEvent(VMThread.java:1910)
[cRIO] at com.sun.squawk.platform.posix.SystemEventsImpl.waitForReadEvent(SystemEventsImpl.java:306)
[cRIO] at com.sun.squawk.platform.posix.GCFSocketsImpl.readBuf(GCFSocketsImpl.java:303)
[cRIO] at com.sun.squawk.platform.posix.GCFSocketsImpl.readByte(GCFSocketsImpl.java:337)
[cRIO] at com.sun.squawk.io.j2me.socket.PrivateInputStream.read(Protocol.java:356)
[cRIO] at java.io.DataInputStream.read(DataInputStream.java:91)
[cRIO] at java.io.DataInputStream.readInt(DataInputStream.java:332)
[cRIO] at com.sun.squawk.debugger.JDWPConnection.readPacket(JDWPConnection.java:192)
[cRIO] at com.sun.squawk.debugger.JDWPListener.run(JDWPListener.java:122)
[cRIO] at java.lang.Thread.run(Thread.java:231)
[cRIO] at com.sun.squawk.VMThread.callRun(VMThread.java:1499)
[cRIO] at com.sun.squawk.VM.callRun(VM.java:305)
[cRIO] thread SDA priority: 5 state: ALIVE queue: JOIN
[cRIO] at com.sun.squawk.VMThread.join(VMThread.java:484)
[cRIO] at java.lang.Thread.join(Thread.java:323)
[cRIO] at com.sun.squawk.debugger.sda.SDA.go(SDA.java:1381)
[cRIO] at com.sun.squawk.debugger.sda.SDA.main(SDA.java:1441)
[cRIO] at com.sun.squawk.Klass.main(Klass.java:2997)
[cRIO] at com.sun.squawk.Isolate.run(Isolate.java:1554)
[cRIO] at java.lang.Thread.run(Thread.java:231)
[cRIO] at com.sun.squawk.VMThread.callRun(VMThread.java:1499)
[cRIO] at com.sun.squawk.VM.callRun(VM.java:305)
[cRIO] — isolate 0 “com.sun.squawk.JavaApplicationManager” (ALIVE) status —
[cRIO] thread IOHandler priority: 5 state: ALIVE queue: CONDVAR waiting on condvar for object com.sun.squawk.platform.posix.SystemEventsImpl@11
[cRIO] at com.sun.squawk.VM.reifyStack(VM.java:1029)
[cRIO] at com.sun.squawk.VMThread.printStackTrace(VMThread.java:1752)
[cRIO] at com.sun.squawk.Isolate.printAllThreadStates(Isolate.java:2696)
[cRIO] at com.sun.squawk.Isolate.printAllIsolateStates(Isolate.java:2712)
[cRIO] at com.sun.squawk.VMThread.rescheduleNext(VMThread.java:1606)
[cRIO] at com.sun.squawk.VMThread.reschedule(VMThread.java:1781)
[cRIO] at com.sun.squawk.VMThread.monitorWait(VMThread.java:2298)
[cRIO] at java.lang.Object.wait(Object.java:162)
[cRIO] at com.sun.squawk.platform.posix.SystemEventsImpl.waitForEvents(SystemEventsImpl.java:223)
[cRIO] at com.sun.squawk.platform.SystemEvents.run(SystemEvents.java:71)
[cRIO] at java.lang.Thread.run(Thread.java:231)
[cRIO] at com.sun.squawk.VMThread.callRun(VMThread.java:1499)
[cRIO] at com.sun.squawk.VM.callRun(VM.java:305)
[cRIO] thread primitve-thread priority: 5 state: ALIVE queue: ISOLATEJOIN
[cRIO] at com.sun.squawk.VMThread.isolateJoin(VMThread.java:504)
[cRIO] at com.sun.squawk.Isolate.join(Isolate.java:1575)
[cRIO] at com.sun.squawk.JavaApplicationManager.main(JavaApplicationManager.java:150)
[cRIO] at com.sun.squawk.Klass.main(Klass.java:2997)
[cRIO] at com.sun.squawk.Isolate.run(Isolate.java:1554)
[cRIO] at java.lang.Thread.run(Thread.java:231)
[cRIO] at com.sun.squawk.VMThread.callRun(VMThread.java:1499)
[cRIO] at com.sun.squawk.VM.callRun(VM.java:305)

none of the debug buttons, such as step or pause or go are enabled.

Suggestions anyone?

Thanks much.

I’m not seeing that in tests here. I’m using NetBeans 6.7 on Mac. Let me know what version you are using.

Also, the error message shown could be related to a networking code bug, not necessarily a debugging bug. If possible, could you send your robot program? You can send to derek<dot>[email protected] (replacing <dot> with . )

Thanks!

OK, I see the error also when I run from Windows (for some reason). No work-around is available, but a fix is in progress…

Also am having a similar issue… the debug code is below… It works with a hardwired connection(ethernet) but when wireless we are not able to de-bug.

Established connection to Debugger (handshake took 1687ms)
[cRIO] !!! no thread found waiting on event=== DEAD-LOCK STATUS: ===
[cRIO] — isolate 2 “edu.wpi.first.wpilibj.templates.BreakawayRobot” (ALIVE) status —
[cRIO] thread FRCDriverStation priority: 5 state: ALIVE queue: RUNNABLE
[cRIO] at com.sun.squawk.VMThread.waitForEvent(VMThread.java:1863)
[cRIO] at com.sun.squawk.NativeUnsafe.waitForBlockingFunction(NativeUnsafe.java:641)
[cRIO] at com.sun.cldc.jna.BlockingFunction.call4(BlockingFunction.java:137)
[cRIO] at com.sun.cldc.jna.Function.call4(Function.java:321)
[cRIO] in static method #2 of edu.wpi.first.wpilibj.communication.FRCControl(bci=27)
[cRIO] in virtual method #10 of edu.wpi.first.wpilibj.DriverStationEnhancedIO(bci=200)
[cRIO] in virtual method #11 of edu.wpi.first.wpilibj.DriverStation(bci=13)
[cRIO] in static method #2 of edu.wpi.first.wpilibj.DriverStation(bci=5)
[cRIO] at edu.wpi.first.wpilibj.DriverStation$DriverStationTask.run(bci=6)
[cRIO] at java.lang.Thread.run(Thread.java:231)
[cRIO] at com.sun.squawk.VMThread.callRun(VMThread.java:1499)
[cRIO] at com.sun.squawk.VM.callRun(VM.java:305)
[cRIO] thread edu.wpi.first.wpilibj.templates.BreakawayRobot - main priority: 5 state: ALIVE queue: RUNNABLE
[cRIO] at com.sun.squawk.VMThread.monitorWait(VMThread.java:2298)
[cRIO] at java.lang.Object.wait(Object.java:162)
[cRIO] at java.lang.Object.wait(Object.java:257)
[cRIO] at com.sun.squawk.debugger.EventNotifier.produceEvent(EventNotifier.java:122)
[cRIO] at com.sun.squawk.debugger.EventManager.produceEvent(EventManager.java:184)
[cRIO] at com.sun.squawk.debugger.sda.SDA.notifyEvent(SDA.java:1044)
[cRIO] at com.sun.squawk.imp.MIDletMainWrapper.main(MIDletMainWrapper.java:104)
[cRIO] at com.sun.squawk.Klass.main(Klass.java:2997)
[cRIO] at com.sun.squawk.Isolate.run(Isolate.java:1554)
[cRIO] at java.lang.Thread.run(Thread.java:231)
[cRIO] at com.sun.squawk.VMThread.callRun(VMThread.java:1499)
[cRIO] at com.sun.squawk.VM.callRun(VM.java:305)
[cRIO] — isolate 1 “com.sun.squawk.debugger.sda.SDA” (ALIVE) status —
[cRIO] thread EventManager priority: 5 state: ALIVE queue: CONDVAR waiting on condvar for object com.sun.squawk.debugger.EventNotifier@e
[cRIO] at com.sun.squawk.VMThread.monitorWait(VMThread.java:2298)
[cRIO] at java.lang.Object.wait(Object.java:162)
[cRIO] at java.lang.Object.wait(Object.java:257)
[cRIO] at com.sun.squawk.debugger.EventNotifier.consumeEvent(EventNotifier.java:156)
[cRIO] at com.sun.squawk.debugger.EventManager.run(EventManager.java:65)
[cRIO] at com.sun.squawk.debugger.sda.SDA$SDAEventManager.run(SDA.java:608)
[cRIO] at java.lang.Thread.run(Thread.java:231)
[cRIO] at com.sun.squawk.VMThread.callRun(VMThread.java:1499)
[cRIO] at com.sun.squawk.VM.callRun(VM.java:305)
[cRIO] thread SDPListener priority: 5 state: ALIVE queue: EVENT
[cRIO] at com.sun.squawk.VMThread.waitForOSEvent(VMThread.java:1910)
[cRIO] at com.sun.squawk.platform.posix.SystemEventsImpl.waitForReadEvent(SystemEventsImpl.java:306)
[cRIO] at com.sun.squawk.platform.posix.GCFSocketsImpl.readBuf(GCFSocketsImpl.java:303)
[cRIO] at com.sun.squawk.platform.posix.GCFSocketsImpl.readByte(GCFSocketsImpl.java:337)
[cRIO] at com.sun.squawk.io.j2me.socket.PrivateInputStream.read(Protocol.java:356)
[cRIO] at java.io.DataInputStream.read(DataInputStream.java:91)
[cRIO] at java.io.DataInputStream.readInt(DataInputStream.java:332)
[cRIO] at com.sun.squawk.debugger.JDWPConnection.readPacket(JDWPConnection.java:192)
[cRIO] at com.sun.squawk.debugger.JDWPListener.run(JDWPListener.java:122)
[cRIO] at java.lang.Thread.run(Thread.java:231)
[cRIO] at com.sun.squawk.VMThread.callRun(VMThread.java:1499)
[cRIO] at com.sun.squawk.VM.callRun(VM.java:305)
[cRIO] thread SDA priority: 5 state: ALIVE queue: JOIN
[cRIO] at com.sun.squawk.VMThread.join(VMThread.java:484)
[cRIO] at java.lang.Thread.join(Thread.java:323)
[cRIO] at com.sun.squawk.debugger.sda.SDA.go(SDA.java:1381)
[cRIO] at com.sun.squawk.debugger.sda.SDA.main(SDA.java:1441)
[cRIO] at com.sun.squawk.Klass.main(Klass.java:2997)
[cRIO] at com.sun.squawk.Isolate.run(Isolate.java:1554)
[cRIO] at java.lang.Thread.run(Thread.java:231)
[cRIO] at com.sun.squawk.VMThread.callRun(VMThread.java:1499)
[cRIO] at com.sun.squawk.VM.callRun(VM.java:305)
[cRIO] — isolate 0 “com.sun.squawk.JavaApplicationManager” (ALIVE) status —
[cRIO] thread IOHandler priority: 5 state: ALIVE queue: CONDVAR waiting on condvar for object com.sun.squawk.platform.posix.SystemEventsImpl@f
[cRIO] at com.sun.squawk.VM.reifyStack(VM.java:1029)
[cRIO] at com.sun.squawk.VMThread.printStackTrace(VMThread.java:1752)
[cRIO] at com.sun.squawk.Isolate.printAllThreadStates(Isolate.java:2696)
[cRIO] at com.sun.squawk.Isolate.printAllIsolateStates(Isolate.java:2712)
[cRIO] at com.sun.squawk.VMThread.rescheduleNext(VMThread.java:1606)
[cRIO] at com.sun.squawk.VMThread.reschedule(VMThread.java:1781)
[cRIO] at com.sun.squawk.VMThread.monitorWait(VMThread.java:2298)
[cRIO] at java.lang.Object.wait(Object.java:162)
[cRIO] at com.sun.squawk.platform.posix.SystemEventsImpl.waitForEvents(SystemEventsImpl.java:223)
[cRIO] at com.sun.squawk.platform.SystemEvents.run(SystemEvents.java:71)
[cRIO] at java.lang.Thread.run(Thread.java:231)
[cRIO] at com.sun.squawk.VMThread.callRun(VMThread.java:1499)
[cRIO] at com.sun.squawk.VM.callRun(VM.java:305)
[cRIO] thread primitve-thread priority: 5 state: ALIVE queue: ISOLATEJOIN
[cRIO] at com.sun.squawk.VMThread.isolateJoin(VMThread.java:504)
[cRIO] at com.sun.squawk.Isolate.join(Isolate.java:1575)
[cRIO] at com.sun.squawk.JavaApplicationManager.main(JavaApplicationManager.java:150)
[cRIO] at com.sun.squawk.Klass.main(Klass.java:2997)
[cRIO] at com.sun.squawk.Isolate.run(Isolate.java:1554)
[cRIO] at java.lang.Thread.run(Thread.java:231)
[cRIO] at com.sun.squawk.VMThread.callRun(VMThread.java:1499)
[cRIO] at com.sun.squawk.VM.callRun(VM.java:305)
[cRIO] task 0x2179ef8 (FTP Server Connection Thread) deleted: errno=22 (0x16) status=0 (0)
[cRIO] task 0x2179ef8 (FTP Server Connection Thread) deleted: errno=22 (0x16) status=0 (0)

Thanks,