java.lang.SecurityException: Could not lockUser prefs.Lock file access denied.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Oracle Community by 843799, 1 year ago
Could not lockUser prefs.Lock file access denied.
via Oracle Community by 807541, 1 year ago
Could not lockUser prefs.Lock file access denied.
via Oracle Community by 807545, 1 year ago
Could not lockUser prefs.Lock file access denied.
via Oracle Community by 807546, 1 year ago
Could not lockUser prefs.Lock file access denied.
via Google Groups by Nathan DeBardeleben, 1 month ago
Could not lockUser prefs.Lock file access denied.
via Oracle Community by 807549, 1 year ago
Could not lockSystem prefs.Lock file access denied.
java.lang.SecurityException: Could not lockUser prefs.Lock file access denied.
at java.util.prefs.FileSystemPreferences.checkLockFile0ErrorCode(FileSystemPreferences.java:926)
at java.util.prefs.FileSystemPreferences.lockFile(FileSystemPreferences.java:915)
at java.util.prefs.FileSystemPreferences.sync(FileSystemPreferences.java:723)
at java.util.prefs.FileSystemPreferences.flush(FileSystemPreferences.java:814)
at java.util.prefs.FileSystemPreferences.syncWorld(FileSystemPreferences.java:469)
at java.util.prefs.FileSystemPreferences.access$1200(FileSystemPreferences.java:33)
at java.util.prefs.FileSystemPreferences$10.run(FileSystemPreferences.java:449)
at java.util.TimerThread.mainLoop(Timer.java:432)
at java.util.TimerThread.run(Timer.java:382)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.