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

Debugger cannot be started if JDK directory has Japanese character

XMLWordPrintable

    • tiger
    • x86
    • windows_2000



      Name: tb29552 Date: 10/10/2002


      FULL PRODUCT VERSION :
      java version "1.4.1"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-b21)
      Java HotSpot(TM) Client VM (build 1.4.1-b21, mixed mode)


      FULL OPERATING SYSTEM VERSION :
      Microsoft Windows 2000 [Version 5.00.2195]
      Japanese Service Pack 3

      A DESCRIPTION OF THE PROBLEM :
      When the jdk directory contains double byte character like
      Japanese hiragana a (\u3042), the debugger can not work
      even the java application is launched without debugger.


      REGRESSION. Last worked in version 1.3.1

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      On the Japanese Windows,
      1. Compile the attached source code
      2. Rename the jdk directory that contains Japanese
      character (for instance Hiragana A \u3042)
      > rename jdk1.4 <Hiragana A>jdk1.4
      3. Run without debugger
      It runs correctly.
      H:\>H:\<Hiragana A>jdk1.4\bin\java Untitled1
      JavaHome:H:\<Hiragana A>jdk1.4\jre
      4. Run with debugger
      The following error is displayed.
      H:\>H:\<Hiragana A>jdk1.4\bin\java -Xdebug -Xnoagent
      -Djava.compiler=NONE -Xrunjdwp:tran
      sport=dt_shmem,server=y,address=javadebug Untitled1
      Transport dt_shmem failed to initialize, rc = 509.
      FATAL ERROR in native method: No transports initialized




      EXPECTED VERSUS ACTUAL BEHAVIOR :
      Expected:
      The debug session is started without error as well as
      fixed bug id 4438900 when jdk directory includes space

      Actual:
      The debug session is not started with following error.

      Transport dt_shmem failed to initialize, rc = 509.
      FATAL ERROR in native method: No transports initialized


      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      Transport dt_shmem failed to initialize, rc = 509.
      FATAL ERROR in native method: No transports initialized


      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      public class Untitled1 {


        public static void main(String[] args) {
          String home = System.getProperty("java.home");
          System.out.println("JavaHome:" + home);
        }

      }

      ---------- END SOURCE ----------
      (Review ID: 165630)
      ======================================================================

            ohair Kelly Ohair (Inactive)
            tbell Tim Bell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: