Name: mc57594 Date: 02/07/97
C:\MG\Java\JADE\test>type dbtest.java
import java.lang.System;
public class dbtest {
public static void main(String argv[]) {
ptr = new myclass();
}
static myclass ptr;
}
class myclass {
int i = 1;
static int s = 1;
void m() {}
static void sm() {}
}
C:\MG\Java\JADE\test>jdb dbtest
Initializing jdb...
0xe7e318:class(dbtest)
> stop in dbtest:main
Breakpoint set in dbtest.main
> run
run dbtest
running ...
main[1]
Breakpoint hit: dbtest.main (dbtest:5)
main[1] next
Breakpoint hit: dbtest.main (dbtest:4)
main[1] main[1] print myclass.s
Fatal exception: java.net.SocketException: Socket read failed
Internal exception:
java.net.SocketException: Socket read failed
at java.net.SocketInputStream.read(SocketInputStream.java:92)
at
java.io.BufferedInputStream.fill(BufferedInputStream.java:110)
at
java.io.BufferedInputStream.read(BufferedInputStream.java:124)
at java.io.FilterInputStream.read(FilterInputStream.java:55)
at sun.tools.debug.AgentIn.run(AgentIn.java:46)
at java.lang.Thread.run(Thread.java:336)
java.net.SocketException: Socket read failed
at java.net.SocketInputStream.read(SocketInputStream.java:92)
at
java.io.BufferedInputStream.fill(BufferedInputStream.java:110)
at
java.io.BufferedInputStream.read(BufferedInputStream.java:124)
at java.io.DataInputStream.readInt(DataInputStream.java:193)
at sun.tools.debug.RemoteAgent.getReply(RemoteAgent.java:395)
at
sun.tools.debug.RemoteAgent.getSlotValue(RemoteAgent.java:814)
at sun.tools.debug.RemoteField.getValue(RemoteField.java:57)
at
sun.tools.debug.RemoteClass.getFieldValue(RemoteClass.java:200)
at sun.tools.ttydebug.TTY.print(TTY.java:1072)
at sun.tools.ttydebug.TTY.executeCommand(TTY.java:1216)
at sun.tools.ttydebug.TTY.<init>(TTY.java:1359)
at sun.tools.ttydebug.TTY.main(TTY.java:1436)
Failed accessing debugging session on cookie.camb.inmet.com: invalid
password.
======================================================================
- duplicates
-
JDK-4033745 Inferior JVM crashes when sun.tools.debug.RemoteObject.getFieldValue() is called
- Closed
- relates to
-
JDK-4030811 JDB: dies on most 'dump' and 'print' commands
- Closed