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.
Summary: | Throwable: Can't unlock file Windows2Local/Modes/.nbattrs, it's lock was not found or it wasn't locked. | ||
---|---|---|---|
Product: | platform | Reporter: | alanbur <alanbur> |
Component: | Filesystems | Assignee: | Jiri Skrivanek <jskrivanek> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | jamespb, joshis, karevn, nureinnarr, pbadams, sustaining |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://statistics.netbeans.org/exceptions/detail.do?id=11110 | ||
Issue Type: | DEFECT | Exception Reporter: | 11110 |
Attachments: |
stacktrace
pbadams Modes directory ZIP stacktrace |
Description
alanbur
2008-04-30 11:49:11 UTC
Created attachment 60862 [details]
stacktrace
Is it random? If not, could attach zipped Userdir/config/Windows2Local/Modes? This issue has already 50 duplicates I added people that reported this exception to CC of this issue. Could you attach zipped Userdir/config/Windows2Local/Modes to this bug? Thank you for report. Created attachment 61741 [details]
pbadams Modes directory ZIP
Thank you for the attachment. But I am still not able to reproduce the problem. Please, could you write down detailed step-by-step description what you did before exception appeared? And also zipped Userdir/config/Windows2Local/Modes at the time of exception would be helpful. Also please, make sure you use the latest 6.1 build. I've not encountered this problem for a while and am unable to reproduce at this time. I have been using a project located on a USB Memory stick, otherwise this is a regular Netbeans installation. If I encounter the exception again I will attempt to script the actions required to reproduce and upload a ZIP of my Modes folder. Regards, Paul. Created attachment 61971 [details]
stacktrace
Thanks to joshis I found out what happens. If the IDE is run with root privilegies, files under Userdir/config/Windows2Local/Modes are created or modified with root ownership. Then if the IDE is run with user privilegies, the files cannot be changed and exception is thrown. I changed the code to not throw such confusing exception. http://hg.netbeans.org/core-main/rev/4a4c820908fe joshis, could you verify it when a build with the fix will be available? Thank you. I'm marking as 61 patch2 candidate Integrated into 'main-golden', available in NB_Trunk_Production #234 build Changeset: http://hg.netbeans.org/main/rev/4a4c820908fe User: Jiri Skrivanek <jskrivanek@netbeans.org> Log: #134243 - If there is problem to lock file while saving attributes, IOException is thrown up and then unlock is not run. Previously unlock throw a very cofusing exception. Verified The exception is not thrown in build 200806040005. The fix has been ported into the release61_fixes branch: http://hg.netbeans.org/release61_fixes/cddd270eb53c The fix has been rolled back from the release61_fixes branch because of problem with its delivery via AUC. Reopening - reproduced in NetBeans IDE 6.1 (Build 080905) http://statistics.netbeans.org/exceptions/detail.do?id=137693 incorrectly reopen by exc_reporter incorrectly reopen by exc_reporter |