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

Println message is not reflected to remote debugging machine

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 1.3.0
    • core-svc
    • sparc
    • solaris_7

      When I debug some java program running on target WorkStation from remote PC,
      the stdout(System.out.println) does not echo back to the remote PC.

      1. Debugging environment

        - Target WorkStation ( target )
          - SunOS goedel 5.7 Generic_106541-15 sun4u sparc SUNW,Ultra-60
            (solaris is localized "Japanese")
          - Mem. : 256 [MB]
          - JDK ver. :
             java version "1.3.0"
             Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
             Java HotSpot(TM) Client VM (build 1.3.0, mixed mode)


        - Remote PC ( debugger )
          - WindowsNT 4.0 workstation (SP5, Japanese)
          - Pentium II 400[MHz]
          - Mem. : 256 [MB]
          - JDK ver. :
             java version "1.3.0"
             Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
             Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)

      2. Reproducing process

       1) Compile the attached java program, "Test.java" on the target machine
       2) Invoke the following command line on the target machine

          "java -Xdebug -Xrunjdwp:transport=dt_socket,address=8888,server=y Test"

       3) Invoke the following command line on the remote PC
          (please replace the HOSTNAME to your target machine name)

          "jdb -connect com.sun.jdi.SocketAttach:hostname=HOSTNAME,port=8888"

          -> you can see the message,

            Initializing jdb...

            VM Started: main[1] No frames on the current call stack^M

            main[1]

        4) Type "run" on remote PC

           -> You can see the message as follows on the **TARGET** machine.

             abcde
             abcde
             abcde
        
         I consider the message "abcd" should be displayed on the remote PC.
         However, that showed up on the target machine.

         I wonder if the above behavior is specifications.
         If so, is there any way to echo back the message to remote PC ?

      ============================================================================
        
        

            tbell Tim Bell
            tbaba Tadayuki Baba (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: