This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 131128 - java.util.prefs.BackingStoreException: java.io.FileNotFoundException: /datos/home/camilo/.netbeans/6.1beta/config/Preferences/org/netbeans/modules/uihandler.properties (Demasiados archivos abiertos)
Summary: java.util.prefs.BackingStoreException: java.io.FileNotFoundException: /datos/...
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jiri Skrivanek
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-26 04:34 UTC by cadorca
Modified: 2008-12-22 13:53 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 1921


Attachments
stacktrace (2.09 KB, text/plain)
2008-03-26 04:34 UTC, cadorca
Details
Messages.log attached... (1.70 MB, text/plain)
2008-06-11 09:19 UTC, Jaromir Uhrik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cadorca 2008-03-26 04:34:11 UTC
Build: NetBeans IDE 6.1 Beta (Build 200803050202)
VM: Java HotSpot(TM) Client VM, 1.6.0_03-b05
OS: Linux, 2.6.22-14-generic, i386

User Comments:
Comment 1 cadorca 2008-03-26 04:34:16 UTC
Created attachment 59100 [details]
stacktrace
Comment 2 Lukas Hasik 2008-03-27 11:38:33 UTC
reassigning to filesystems. It might be a problem with locked/missing file.
Is the issue reproducible? When it happens? Any steps to reproduce? Did you reuse older userdir?

This issue has 33 duplicates so far.

java.util.prefs.BackingStoreException: org.openide.filesystems.FileAlreadyLockedException:
Preferences/org/netbeans/modules/uihandler.properties
        at org.netbeans.core.startup.preferences.NbPreferences.flushSpi(NbPreferences.java:142)
        at org.netbeans.core.startup.preferences.NbPreferences$1.run(NbPreferences.java:46)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:539)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:964)
org.openide.filesystems.FileAlreadyLockedException: Preferences/org/netbeans/modules/uihandler.properties
        at org.openide.filesystems.MultiFileObject.lock(MultiFileObject.java:615)
        at org.netbeans.core.startup.preferences.PropertiesStorage.outputStream(PropertiesStorage.java:226)
Comment 3 Antonin Nebuzelsky 2008-04-15 17:12:52 UTC
Reassigning to new module owner jskrivanek.
Comment 4 Exceptions Reporter 2008-05-26 21:17:57 UTC
This issue has already 50 duplicates 
Comment 5 Jiri Skrivanek 2008-05-30 18:56:49 UTC
It seems similar to issue 134243. For some reason, files in NetBeans userdir became not writable for the current user.
It may happen when user starts IDE under different user accounts.
The fix suppresses repetitive FileAlreadyLockedException and FileNotFoundException exceptions from uihandler module when
config/Preferences/org/netbeans/modules/uihandler.properties is not writable and immediatelly show dialog with initial
exception (usually Access is denied).

http://hg.netbeans.org/core-main/rev/83f662213637
Comment 6 Lukas Hasik 2008-05-30 20:06:10 UTC
Jirko, could you create a test for this issue?
Comment 7 Quality Engineering 2008-06-03 04:20:38 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #234 build
Changeset: http://hg.netbeans.org/main/rev/83f662213637
User: Jiri Skrivanek <jskrivanek@netbeans.org>
Log: #131128 - suppress repetitive exceptions when config/Preferences/org/netbeans/modules/uihandler.properties is not writable for some reason and immediatelly show dialog with initial exception (usually Access is denied).
Comment 8 Jiri Skrivanek 2008-06-03 13:21:51 UTC
Test added.
http://hg.netbeans.org/core-main/rev/205fa7eef743
Comment 9 Quality Engineering 2008-06-04 04:15:49 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #236 build
Changeset: http://hg.netbeans.org/main/rev/205fa7eef743
User: Jiri Skrivanek <jskrivanek@netbeans.org>
Log: #131128 - added test.
Comment 10 pgebauer 2008-06-10 13:54:47 UTC
This issue has been nominated for NB IDE 6.1 patch2 although it hasn't been verified by QE yet. If it isn't verified by
12-Jun-08, it's nomination will be removed.
Comment 11 Jaromir Uhrik 2008-06-11 09:17:16 UTC
Product Version         = NetBeans IDE Dev (Build 200806110005)
Operating System        = Mac OS X version 10.5.2 running on i386
Java; VM; Vendor        = 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-119; Apple Inc.

I set chmod 444 uihandler.properties. Then I started IDE and got FSException. See attached messages.log
Comment 12 Jaromir Uhrik 2008-06-11 09:19:41 UTC
Created attachment 62648 [details]
Messages.log attached...
Comment 13 Jiri Skrivanek 2008-06-11 10:49:17 UTC
I am sorry for troubles. Now it is fixed better. We need to write unique value and call sync before the test of the
value because flush can be called asynchronously from request processor before our call.

http://hg.netbeans.org/main/rev/7cfa1cf663d8
Comment 14 Jaromir Uhrik 2008-06-12 05:19:18 UTC
The repetition of dialog popup has gone. Verified in the following build:

Product Version: NetBeans IDE Dev (Build 200806111204)
Java: 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-119
System: Mac OS X version 10.5.2 running on i386; MacRoman; en_US (nb)
Comment 15 pgebauer 2008-06-12 18:52:44 UTC
The fix has been ported into the release61_fixes branch:

http://hg.netbeans.org/release61_fixes/c2ddf6f9d8b0
Comment 16 Jaromir Uhrik 2008-06-23 17:20:25 UTC
Verified in IDE with the patch2.
Comment 17 pgebauer 2008-07-08 16:09:00 UTC
The fix has been rolled back from the release61_fixes branch because of problem with its delivery via AUC.