Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4035903

jdb "dump" command does not work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.1
    • core-svc
    • None
    • sparc
    • solaris_2.5.1



      Name: mc57594 Date: 03/03/97


      I have never been able to get the jdb "dump" command to work.
      Below are the exact steps with which you can reproduce the
      problem using your TicTacToe demo.

      I should also mention that I am displaying to a remote machine
      running SunOS 4.1.3_U1, and I had to remove the
      $JAVA_HOME/lib/font.properties file because of unavailable
      fonts on my X server machine. I don't think that this is
      related to my problem (TicTacToe runs fine without the debugger,
      or if I avoid using jdb's "dump" command).

      Core file (java) is available on request.


      france:> uname -a
      SunOS france 5.4 Generic_101945-32 sun4m sparc
      france:> pwd
      /nfs/u33/java/jdk1.1/demo/TicTacToe
      france:> whence java
      /nfs/u33/java/jdk1.1/bin/java
      france:> java -version
      java version "1.1_Final"
      france:> whence javac
      /nfs/u33/java/jdk1.1/bin/javac
      france:> echo $CLASSPATH
      .:/nfs/u33/java/jdk1.1/lib/classes.zip:/nfs/u33/java/jdk1.1/lib
      france:> mv TicTacToe.class TicTacToe.class.ORIG
      france:> javac -g *.java
      france:> appletviewer -debug example1.html
      Initializing jdb...
      0xee32e1c0:class(sun.applet.AppletViewer)
      > stop in TicTacToe.paint
      Breakpoint set in TicTacToe.paint
      > run
      run sun.applet.AppletViewer example1.html
      running ...
      main[1]
      Breakpoint hit: TicTacToe.paint (TicTacToe:224)
      AWT-EventQueue-0[1] locals
      Method arguments:
        this = TicTacToe[panel1,0,0,120x120,layout=java.awt.FlowLayout]
        g = sun.awt.motif.X11Graphics[0,0]
      Local variables:
        d is not in scope.
        xoff is not in scope.
        yoff is not in scope.
        i is not in scope.
        r is not in scope.
        c is not in scope.
      AWT-EventQueue-0[1] print this
      this = TicTacToe[panel1,0,0,120x120,layout=java.awt.FlowLayout]
      AWT-EventQueue-0[1] dump this
      this = (TicTacToe)0xee2f53f8 {
          transient ComponentPeer peer =
      The communications channel closed.
      Internal exception:
      java.io.EOFException
      at java.io.DataInputStream.readInt(DataInputStream.java)
      at sun.tools.debug.RemoteAgent.readValue(RemoteAgent.java:256)
      at sun.tools.debug.RemoteAgent.getSlotValue(RemoteAgent.java:815)
      at sun.tools.debug.RemoteField.getValue(RemoteField.java:57)
      at sun.tools.debug.RemoteObject.getFieldValue(RemoteObject.java:84)
      at sun.tools.ttydebug.TTY.print(TTY.java:1164)
      at sun.tools.ttydebug.TTY.executeCommand(TTY.java:1218)
      at sun.tools.ttydebug.TTY.<init>(TTY.java:1359)
      at sun.tools.ttydebug.TTY.main(TTY.java:1436)
      Internal exception: java.io.EOFException
      at java.io.DataInputStream.readUnsignedShort(DataInputStream.java)
      at java.io.DataInputStream.readUTF(DataInputStream.java)
      at java.io.DataInputStream.readUTF(DataInputStream.java)
      at sun.tools.debug.RemoteAgent.getThreadName(RemoteAgent.java:619)
      at sun.tools.debug.RemoteThread.getName(RemoteThread.java:45)
      at sun.tools.ttydebug.TTY.printPrompt(TTY.java:70)
      at sun.tools.ttydebug.TTY.<init>(TTY.java:1344)
      at sun.tools.ttydebug.TTY.main(TTY.java:1436)
      france:>

      company - Pure Atria , email - ###@###.###
      ======================================================================

            rfield Robert Field (Inactive)
            mchamnessunw Mark Chamness (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: