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.
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:
Created attachment 59100 [details] stacktrace
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)
Reassigning to new module owner jskrivanek.
This issue has already 50 duplicates
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
Jirko, could you create a test for this issue?
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).
Test added. http://hg.netbeans.org/core-main/rev/205fa7eef743
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.
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.
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
Created attachment 62648 [details] Messages.log attached...
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
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)
The fix has been ported into the release61_fixes branch: http://hg.netbeans.org/release61_fixes/c2ddf6f9d8b0
Verified in IDE with the patch2.
The fix has been rolled back from the release61_fixes branch because of problem with its delivery via AUC.