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 49842

Summary: Exception on closing file
Product: platform Reporter: _ tboudreau <tboudreau>
Component: TextAssignee: Petr Nejedly <pnejedly>
Status: CLOSED WORKSFORME    
Severity: blocker    
Priority: P3    
Version: 4.x   
Hardware: Macintosh   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

Description _ tboudreau 2004-10-02 18:52:45 UTC
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)
Comment 1 Miloslav Metelka 2004-10-04 10:47:57 UTC
Reassigning to openide/editor.
Comment 2 Petr Nejedly 2004-10-04 11:01:19 UTC
Can't reproduce.
The file is always correctly closed, whether modified or not.
Comment 3 _ tboudreau 2004-10-04 13:41:59 UTC
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?
Comment 4 Petr Nejedly 2004-10-04 15:12:19 UTC
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?
Comment 5 Marian Mirilovic 2005-07-12 10:16:14 UTC
closed