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.
I deleted a file in explorer, which was open in an editor pane. The following exception occurred: nnotation: The document could not be loaded. Annotation: File not found. Another application may have moved the file or changed the name. java.io.FileNotFoundException: /space/nb_another/contrib/ options/baseoptions/src/org/netbeans/modules/baseoptions/ ProxySettingsPanel.java (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106) at org.openide.filesystems.LocalFileSystem.inputStream(LocalFileSy stem.java:351) at org.openide.filesystems.LocalFileSystem$Impl.inputStream(Local FileSystem.java:548) at org.openide.filesystems.StreamPool.createInputStream(StreamPo ol.java:60) at org.openide.filesystems.AbstractFileObject.getInputStream(Abstr actFileObject.java:156) at org.netbeans.modules.masterfs.MasterFileObject.getInputStream (MasterFileObject.java:123) at org.openide.text.DataEditorSupport$Env.inputStream(DataEditor Support.java:395) at org.openide.text.CloneableEditorSupport.loadDocument(Cloneab leEditorSupport.java:1522) at org.openide.text.CloneableEditorSupport.access$1700(Cloneabl eEditorSupport.java:79) at org.openide.text.CloneableEditorSupport$Listener.run(Cloneable EditorSupport.java:2039) at org.openide.text.CloneableEditorSupport$2.run(CloneableEditor Support.java:501) at org.netbeans.editor.BaseDocument.runAtomicAsUser(BaseDocu ment.java:966) at org.netbeans.editor.GuardedDocument.runAtomic(GuardedDocu ment.java:217) at org.openide.text.NbDocument.runAtomic(NbDocument.java:341) at org.openide.text.CloneableEditorSupport$2.run(CloneableEditor Support.java:481) at org.openide.util.Task.run(Task.java:136) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.ja va:330) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProces sor.java:686)
Reassigning to openide/editor.
Can't reproduce. The file is always correctly closed, whether modified or not.
Aren't you being a little quick to close this? This happened in a heavily loaded system, after working for several hours. Are you sure it is impossible for the runnable in question to run *after* the file has been deleted on disk?
It is possible to happen, but only in the case it is describing in the exception. If you deleted the file from explorer, only the fileDeleted event is sent, which doesn't cause reload. haven't you just modified the file from other app?
closed