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 - Exception on closing file
Summary: Exception on closing file
Status: CLOSED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 4.x
Hardware: Macintosh Mac OS X
: P3 blocker (vote)
Assignee: Petr Nejedly
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-02 18:52 UTC by _ tboudreau
Modified: 2008-12-22 23:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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