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

java.util.prefs.FileSystemPreferences$11 run WARNING: Invalid preferences format

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • 1.4.0
    • core-libs



      Name: rmT116609 Date: 04/01/2002


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


      FULL OPERATING SYSTEM VERSION :
      Distribution: SuSe 7.3 German
      glibc: glibc-2.2.4-64
      Kernel: Linux linux 2.4.10 #1 Sun Feb 24 13:41:47 CET 2002 i686 unknown

      A DESCRIPTION OF THE PROBLEM :
      The sample code works well with Java 2 Version 1.4 Beta 3. After update to the release candidate the error occurs.

      The first run creates the prefs file and all is ok. After this the warning always pops up.


      REGRESSION. Last worked in version 1.4.0-beta3

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Just run the sample code twice

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      01.04.2002 13:45:58 java.util.prefs.FileSystemPreferences$11 run
      WARNUNG: Invalid preferences format in
      /home/mirv/.java/.userPrefs/test/prefs.xml
      01.04.2002 13:45:58 java.util.prefs.FileSystemPreferences$11 run
      WARNUNG: Prefs file removed in background
      /home/mirv/.java/.userPrefs/test/prefs.xml


      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      package test;

      import java.util.prefs.*;

      public class test {

      public static void main(String[] args) {

      try {
      Preferences p = Preferences.userRoot().node("test");
      p.put("two", "two");
      } catch (Exception e) {
      System.out.println("Error");
      }
      }
      }

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

            kkladkosunw Konstantin Kladko (Inactive)
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: