• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java 1.4 Preference API question: NOT for Developer's certification

 
Anup Engineer
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey, if you took the time to read this, you are definately interested in the Preferences API of 1.4
I am trying to play around with this on Linux. But the problem I am getting is not through any direct use of Preferences API. What I have is a simple frame having one panel, just displaying a string.
When I run the main method and construct the MyFrame, it shows up on the screen with the string. But after this, every 3-4 seconds, I see the following warning/error message on console:
(Date) java.util.pref.FileSystemPreferences syncWorld
WARNING: couldn't flush user pref: java.util.prefs.BackingStoreException: Couldn't get file lock.
(Date) java.util.prefs.FileSystemPreferences CheckLockFile0ErrorCode
WARNING: couldn't lock user prefs: Unix error code 37
When i close the window (and hence excute dispose()), the messages are gone cause the threads are dead.
What I think is, somehow the application tries to access the Preferences(User) under some directory(which will be created by the Preferences API), and doesnt find it. I am not directly using Preferences in anyway, but still I get this.
Any Pointers?
Your help would be greatly appreciated!
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please only post questions for the SCJD, that is what this forum is about.
It would be my guess that you are cross posting this post into all the forums. If you do not stop this now, go back and delete them from all the incorrect forums, then I will assume that one of the bartenders or sheriffs will remove your user from Javaranch.
Mark
 
Anup Engineer
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am sorry, and I only posted this on this forum.
May be its just the excitement of 1.4 that I did this.
Thanks anyways.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic