P.S.: Everything does work fine with Hotspot and the new jdb disabled. (i.e. JDK 1.2.2, classic VM, classic jdb, JDE 1.2.5, NT-emacs 20.3.1 works for me) -------- Original Message -------- Subject: Re: jdb invalid password Date: Mon, 19 Jul 1999 09:35:02 -0700 From: Marc-Antoine Parent <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] Organization: Logiciels Panteor inc. To: Robert Field <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] References: <Roam [EMAIL PROTECTED]> > > The JDB that ships with the JDK is built on the sun.tools.debug debugger > interface. This interface is deeply classic VM specific, so it will > not work under HotSpot or any other VM that is not a derivative of the > classic VM. For this reason and other inherent problems in sun.tools.debug > we have developed a new debugger architecture for Java: the Java Platform > Debugger Architecture (JPDA). This DOES work under HotSpot (although the > support is labeled beta-quality at this point). There is an unsupported > example port of JDB to this new architecture which is available in source > and binary form as part of the JPDA beta download: > > http://developer.java.sun.com/developer/earlyAccess/jpda/index.html > > I have no idea if this will be compatible with JDE, but if you try it out > I'd love to hear. We will be working on tighter JPDA-JDE integration this > summer - but that doesn't help you now ;-) I did try out the JDPA (release candidate 1, with JDK 1.2.2 and Hotspot 1.0.1 on Windows NT 4.0, SP5) and the new JDB, by itself, starts fine with Hotspot (at last!) However, when launched under the JDE (JDE 1.2.5, NT-emacs 20.3.1), with the run App command on class someclass, I get: Initializing jdb... > Deferring breakpoint someclass.main. It will be set after the class is loaded. > run someclass > VM Started: Set deferred breakpoint request someclass:47 and then, input/output freezes there and emacs never reaches the breakpoint! If I then send a STOP signal, I get: Full thread dump Classic VM (JDK-1.2.2-W, native threads): "Thread-0" (TID:0x1911840, sys_thread_t:0x887860, state:CW, native ID:0x12a) prio=5 "event-handler" (TID:0x1902670, sys_thread_t:0x883e90, state:CW, native ID:0xa1) prio=5 at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:424) at com.sun.tools.jdi.EventQueueImpl.removeUnfiltered(EventQueueImpl.java:175) at com.sun.tools.jdi.EventQueueImpl.remove(EventQueueImpl.java:92) at com.sun.tools.jdi.EventQueueImpl.remove(EventQueueImpl.java:78) at com.sun.tools.example.debug.tty.EventHandler.run(EventHandler.java:71) at java.lang.Thread.run(Thread.java:479) "output reader" (TID:0x190cfe0, sys_thread_t:0x87fc90, state:R, native ID:0xc2) prio=9 at java.io.FileInputStream.readBytes(Native Method) at java.io.FileInputStream.read(FileInputStream.java:185) at java.io.BufferedInputStream.read1(BufferedInputStream.java:227) at java.io.BufferedInputStream.read(BufferedInputStream.java.java at java.io.FilterInputStream.read(FilterInputStream.java:97) at java.io.InputStreamReader.fill(InputStreamReader.java:163) at java.io.InputStreamReader.read(InputStreamReader.java:239) at java.io.BufferedReader.fill(BufferedReader.java:137) at java.io.BufferedReader.readLine(BufferedReader.java, Compiled Code) at java.io.BufferedReader.readLine(BufferedReader.java, Compiled Code) at com.sun.tools.example.debug.tty.VMConnection.dumpStream(VMConnection.java:216) at com.sun.tools.example.debug.tty.VMConnection.access$0(VMConnection.java:211) at com.sun.tools.example.debug.tty.VMConnection$1.run(VMConnection.java:230) "output reader" (TID:0x1903ad0, sys_thread_t:0x87f270, state:R, native ID:0x135) prio=9 at java.io.FileInputStream.readBytes(Native Method) at java.io.FileInputStream.read(FileInputStream.java:168) at java.io.InputStreamReader.fill(InputStreamReader.java:163) at java.io.InputStreamReader.read(InputStreamReader.java:239) at java.io.BufferedReader.fill(BufferedReader.java:137) at java.io.BufferedReader.readLine(BufferedReader.java, Compiled Code) at java.io.BufferedReader.readLine(BufferedReader.java, Compiled Code) at com.sun.tools.example.debug.tty.VMConnection.dumpStream(VMConnection.java:216) at com.sun.tools.example.debug.tty.VMConnection.access$0(VMConnection.java:211) at com.sun.tools.example.debug.tty.VMConnection$1.run(VMConnection.java:230) "JDI Target VM Interface" (TID:0x19017a8, sys_thread_t:0x861ea0, state:R, native ID:0x88) prio=5 at com.sun.tools.jdi.SharedMemoryConnection.receivePacket0(Native Method) at com.sun.tools.jdi.SharedMemoryConnection.receivePacket(SharedMemoryConnection.java:73) at com.sun.tools.jdi.TargetVM.run(TargetVM.java:108) at java.lang.Thread.run(Thread.java:479) "JDI Internal Event Handler" (TID:0x1901198, sys_thread_t:0x8706f0, state:CW, native ID:0x136) prio=5 at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:424) at com.sun.tools.jdi.EventQueueImpl.removeUnfiltered(EventQueueImpl.java:175) at com.sun.tools.jdi.EventQueueImpl.removeInternal(EventQueueImpl.java:111) at com.sun.tools.jdi.InternalEventHandler.run(InternalEventHandler.java:47) at java.lang.Thread.run(Thread.java:479) "SymcJIT-LazyCompilation-0" (TID:0x18fe458, sys_thread_t:0x826a30, state:CW, native ID:0x129) prio=1 at SymantecJITCompilationThread.DoCompileMethod(Native Method) at SymantecJITCompilationThread.run(JITcompilationthread.java, Compiled Code) "SymcJIT-LazyCompilation-PA" (TID:0x18fe420, sys_thread_t:0x8268d0, state:CW, native ID:0x15d) prio=10 at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:424) at SymantecJITCompilationThread.run(JITcompilationthread.java, Compiled Code) "Finalizer" (TID:0x18f9320, sys_thread_t:0x811f40, state:CW, native ID:0x16d) prio=8 at java.lang.Object.wait(Native Method) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:112) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127) at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:174) "Reference Handler" (TID:0x18f93b0, sys_thread_t:0x810870, state:CW, native ID:0x165) prio=10 at java.lang (It breaks this listing at an arbitrary point...) Tell me if you feel you need my _emacs Marc-Antoine Parent
