users@glassfish.java.net

GlassFish can't lock "user prefs" file on Linux servers, fills logs with

From: <forums_at_java.net>
Date: Wed, 24 Aug 2011 14:53:51 -0500 (CDT)

When we deploy GlassFish 3.x to Linux servers we get the following in our log
file every 30 seconds:

[#|2011-08-24T15:41:33.864-0400|WARNING|glassfish3.1.1|java.util.prefs|_ThreadID=25;_ThreadName=Thread-2;|Could
not lock User prefs. Unix error code 2.|#]
[#|2011-08-24T15:41:33.864-0400|WARNING|glassfish3.1.1|java.util.prefs|_ThreadID=25;_ThreadName=Thread-2;|Couldn't
flush user prefs: java.util.prefs.BackingStoreException: Couldn't get file
lock.|#]
 

I'm pretty sure these are ext3 filesystems.  If the filesystem doesn't let
GlassFish lock the file, then maybe GlassFish shouldn't lock the file or it
should suppress these warnings.

Are there any workarounds to prevent these errors from appearing in our logs?

 

Thanks,

Ryan


--
[Message sent by forum member 'rdelaplante']
View Post: http://forums.java.net/node/837047