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 18178

Summary: Invalid lock when saving settings
Product: platform Reporter: Jan Zajicek <jzajicek>
Component: FilesystemsAssignee: rmatous <rmatous>
Status: CLOSED FIXED    
Severity: blocker CC: jpokorsky, vstejskal
Priority: P3    
Version: 3.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: DEFECT Exception Reporter:

Description Jan Zajicek 2001-11-29 09:04:23 UTC
Honzo, can you please evaluate this one, thanks.
Transferred from bugtraq #4532616:

Build 011127_1, Win 2000, JDK 1.3.1
It didn't happen consistently.  The steps are:
-Started a new IDE session;
-Mounted directories containing Web Modules from Pilsen and it took so long them
to be mounted that I decided that it's an IDE freeze;
-Exited IDE and started it again and an exception was thrown:
Tue Nov 27 15:43:04 PST 2001: org.openide.filesystems.FSException:  Invalid lock
[null] for file
Services/org-netbeans-modules-java-settings-JavaSettings.settings in
Multi-Filesystem with current lock [null].
Annotation: Cannot save settings to
Services/org-netbeans-modules-java-settings-JavaSettings.settings
org.openide.filesystems.FSException: Invalid lock [null] for file
Services/org-netbeans-modules-java-settings-JavaSettings.settings in
Multi-Filesystem with current lock [null].
        at org.openide.filesystems.FSException.io(FSException.java:84)
        at
org.openide.filesystems.MultiFileObject.testLock(MultiFileObject.java:513)
        at
org.openide.filesystems.MultiFileObject.getOutputStream(MultiFileObject.java:473)
        at
org.openide.filesystems.MultiFileObject.getOutputStream(MultiFileObject.java:478)
        at
org.openide.loaders.InstanceDataObject$Saver.run(InstanceDataObject.java:1750)
        at
org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:89)
        at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:388)
        at
org.openide.loaders.InstanceDataObject$Saver.save(InstanceDataObject.java:1768)
        at
org.openide.loaders.InstanceDataObject$SettingsInstance.saveInstance(InstanceDataObject.java:1441)
        at
org.openide.loaders.InstanceDataObject$SettingsInstance.saveInstance(InstanceDataObject.java:1431)
        at
org.openide.loaders.InstanceDataObject$SettingsInstance.run(InstanceDataObject.java:1482)
        at org.openide.util.Task.run(Task.java:152)
[catch] at
org.openide.util.RequestProcessor$ProcessorThread.run(RequestProcessor.java:622)
Comment 1 Jan Pokorsky 2001-11-29 11:29:37 UTC
Radek and Vita were dealing with the similar exception recently. So 
they are more appropriate to evaluate it. If it is something new 
caused by settings please assign it back to me.
Comment 2 rmatous 2001-11-30 09:47:30 UTC
Fixed in release33 (MultiFileObject.java 1.89.2.2). I was not able to 
reproduce, so I can`t verify.
Comment 3 Jan Zajicek 2001-12-03 15:40:20 UTC
verified rev#1.89.2.2
Comment 4 rmatous 2001-12-11 12:18:45 UTC
*** Issue 18523 has been marked as a duplicate of this issue. ***
Comment 5 rmatous 2002-01-07 09:03:06 UTC
*** Issue 18997 has been marked as a duplicate of this issue. ***
Comment 6 Quality Engineering 2003-07-01 16:40:22 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.