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

REGRESSION: "java -version" crashes if run under uk_UA locale (lnx)

XMLWordPrintable

    • hopper
    • x86
    • linux
    • Verified



      Name: rmT116609 Date: 01/28/2002


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

      DESCRIPTION OF THE PROBLEM :
      If java started in the command line with LC_ALL=uk_UA it just crashes with these messages:

      [arysin@dict bin]$ ./java -version
      Error occurred during initialization of VM
      java.lang.NullPointerException

      Everything is fine under other locales.
      This was an issue with jdk-1.4 beta2 and beta3

      The problem is reproducible with the following below versions with 1.4.0-rc.

      1)Linux Redhat7.1(SeaWolf)
      2)Rehat 6.2
      3)Mandrake 8.1 kernel 2.4.17
      4)RedHat 7.2, kernel 2.4.7-10

      Everything is ok under uk_UA locale with jdk-1.3.1, 1.3.1_01, 1.3.1_02.

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      installed from j2sdk-1_4_0-rc-linux-i386.rpm

      Tested on several different machines.

      REGRESSION:Last worked in version 1.3.1_02.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. set locale to uk_UA with command 'export LC_ALL=uk_UA'
      2. run 'java -version'


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      java should have returned the version info instead it crashes with exception

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      Error occurred during initialization of VM
      java.lang.NullPointerException


      This bug can be reproduced always.

      Release Regression From : 1.3.1_02
      The above release value was the last known release where this
      bug was knwon to work. Since then there has been a regression.

      (Review ID: 138796)
      ======================================================================

      Name: rmT116609 Date: 04/09/2002


      DESCRIPTION OF THE PROBLEM :
      unseting LC_ALL and setting the LANG environment variable to bg_BG causes java to come with:
       
      test@krustev:/usr/local/jdk1.4.0_sun/bin# ./java
      Error occurred during initialization of VM
      java.lang.NullPointerException
      test@krustev:/usr/local/jdk1.4.0_sun/bin#

      REGRESSION. Last worked in version 1.3.1


      (Review ID: 145161)
      ======================================================================

            iris Iris Clark
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: