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

(prefs) Preferences class generates locking errors every 30 seconds

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3 P3
    • tbd
    • 1.4.2
    • core-libs
    • None
    • Cause Known
    • sparc
    • solaris_9

      When the Preferences.systemNodeForPackage static method is called, it
      starts a thread that attempts to flush system preferences every
      30 seconds, even if the user is not root. This results in WARNING
      messages being generated every 30 seconds because it cannot lock
      the Java system preferences file (due to Unix permissions):

      "WARNING: Could not lock System prefs.Unix error code 0.
      Oct 15, 2004 3:24:04 PM java.util.prefs.FileSystemPreferences syncWorld
      WARNING: Couldn't flush system prefs: java.util.prefs.BackingStoreException:
      Couldn't get file lock.

      This makes the application unusable for any user other than root.
      The application should be able to READ system preferences when run
      as any user, without generating errors!
      ###@###.### 10/15/04 21:03 GMT

            Unassigned Unassigned
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: