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 154957 - FileNotFoundException at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj$2
Summary: FileNotFoundException at org.netbeans.modules.masterfs.filebasedfs.fileobject...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Parsing & Indexing (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@editor
URL:
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2008-12-08 17:37 UTC by _ gtzabari
Modified: 2009-02-19 20:45 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log (131.04 KB, text/plain)
2008-12-08 17:38 UTC, _ gtzabari
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ gtzabari 2008-12-08 17:37:59 UTC
dev build 200812021401

Netbeans pops up exceptions randomly when I'm saving files or refactoring classes (which I guess saves files under the
hood). Here is an example from messages.log (which I will attach):

msg
Caused: java.io.FileNotFoundException:
C:\Users\Gili\Documents\method\trunk\adcaster\client\source\adcaster\client\persistence\VideoVersion.java (The system
cannot find the file specified)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(FileInputStream.java:106)
	at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj$2.<init>(FileObj.java:143)
	at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.getInputStream(FileObj.java:143)
Caused: java.io.FileNotFoundException:
C:\Users\Gili\Documents\method\trunk\adcaster\client\source\adcaster\client\persistence\VideoVersion.java (The system
cannot find the file specified)
	at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.getInputStream(FileObj.java:156)
[catch] at org.netbeans.modules.parsing.api.Source.createSnapshot(Source.java:253)
	at org.netbeans.modules.parsing.impl.SourceCache.createSnapshot(SourceCache.java:134)
	at org.netbeans.modules.parsing.impl.SourceCache.getSnapshot(SourceCache.java:113)
	at org.netbeans.modules.parsing.impl.SourceCache.getParser(SourceCache.java:143)
	at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:669)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:619)
ALL [null]: C:\Users\Gili\Documents\method\trunk\adcaster\client\source\adcaster\client\persistence\VideoVersion.java
(The system cannot find the file specified)
Comment 1 _ gtzabari 2008-12-08 17:38:39 UTC
Created attachment 74705 [details]
messages.log
Comment 2 Ivan Sidorkin 2008-12-10 09:48:18 UTC
steps to reproduce:
- create java application with main class
- add package
- move Main class to new package

changed P3->P2 because this issue break C/V test on Windows 
will be good to fix it in M1
Comment 3 Vitezslav Stejskal 2008-12-15 12:44:09 UTC
This was fixed with #154813.

*** This issue has been marked as a duplicate of 154813 ***
Comment 4 Ivan Sidorkin 2008-12-15 18:17:57 UTC
still reproducible with NetBeans IDE Build 200812150201
Comment 5 Michel Graciano 2008-12-15 20:38:11 UTC
Probably the same issur, but on 6.5 FCS + patch 1, jdk 1.6.0_11 on Win 2k. Any change to get it for patch 2?

Caused: java.io.FileNotFoundException: C:\Documents and Settings\marotti\Configurações
locais\Temp\vcs-1229371227640\CadastroSeparadorForm.java (O sistema não pode encontrar o caminho especificado)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj$2.<init>(FileObj.java:144)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.getInputStream(FileObj.java:143)
Caused: java.io.FileNotFoundException: C:\Documents and Settings\marotti\Configurações
locais\Temp\vcs-1229371227640\CadastroSeparadorForm.java (O sistema não pode encontrar o caminho especificado)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.getInputStream(FileObj.java:156)
        at org.openide.text.DataEditorSupport$Env.inputStream(DataEditorSupport.java:685)
        at org.openide.text.CloneableEditorSupport.loadDocument(CloneableEditorSupport.java:1968)
        at org.openide.text.CloneableEditorSupport.access$2500(CloneableEditorSupport.java:120)
        at org.openide.text.CloneableEditorSupport$Listener.run(CloneableEditorSupport.java:2738)
Caused: org.openide.text.CloneableEditorSupport$DelegateIOExc: C:\Documents and Settings\marotti\Configurações
locais\Temp\vcs-1229371227640\CadastroSeparadorForm.java (O sistema não pode encontrar o caminho especificado)
        at org.openide.text.CloneableEditorSupport$Listener.run(CloneableEditorSupport.java:2741)
        at org.openide.util.Task.run(Task.java:249)
        at org.openide.text.CloneableEditorSupport$5$1Query.call(CloneableEditorSupport.java:1545)
        at org.openide.text.CloneableEditorSupport$5.run(CloneableEditorSupport.java:1556)
        at org.netbeans.editor.GuardedDocument.runAtomic(GuardedDocument.java:294)
        at org.openide.text.NbDocument.runAtomic(NbDocument.java:384)
        at org.openide.text.CloneableEditorSupport.reloadDocument(CloneableEditorSupport.java:1504)
        at org.openide.text.CloneableEditorSupport.checkReload(CloneableEditorSupport.java:2121)
        at org.openide.text.CloneableEditorSupport.access$2300(CloneableEditorSupport.java:120)
        at org.openide.text.CloneableEditorSupport$Listener$1.run(CloneableEditorSupport.java:2709)
        at org.netbeans.editor.GuardedDocument.runAtomic(GuardedDocument.java:294)
        at org.openide.text.NbDocument.runAtomic(NbDocument.java:384)
        at org.openide.text.CloneableEditorSupport$Listener$1.run(CloneableEditorSupport.java:2701)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
        at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
ALL [null]: C:\Documents and Settings\marotti\Configurações locais\Temp\vc...
Comment 6 Michel Graciano 2008-12-15 20:41:33 UTC
BTW, P1 because user could not work several times when the exception is thrown.
Comment 7 Ivan Sidorkin 2008-12-15 21:47:54 UTC
can't reproduce it with 65patch1
do you have stable steps to reproduce?
Comment 8 Petr Suchomel 2008-12-16 08:44:20 UTC
Is this 7.0 or only 6.5 issue?
Comment 9 Ivan Sidorkin 2008-12-16 08:51:27 UTC
for me it is only 7.0 issue
Comment 10 David Strupl 2008-12-16 10:32:33 UTC
hmichel please file a separate report. It is a different one than this one. This one is the 7.0 issue.
Comment 11 Michel Graciano 2008-12-16 13:21:26 UTC
Done.
http://www.netbeans.org/issues/show_bug.cgi?id=154957

Regards
Comment 12 Michel Graciano 2008-12-16 13:21:52 UTC
Done.
http://www.netbeans.org/issues/show_bug.cgi?id=155550

Regards
Comment 13 Ivan Sidorkin 2009-01-15 11:12:48 UTC
are you planing to fix it?
this issue blocks C/V tests on windows
Comment 14 Vitezslav Stejskal 2009-01-19 11:41:42 UTC
It's working fine in my dev build (tried ivansidorkin's steps). Are the steps failing on Windows?

Product Version: NetBeans IDE Dev (Build 090119)
Java: 1.5.0_14; Java HotSpot(TM) Client VM 1.5.0_14-b03
System: Linux version 2.6.22-16-generic running on i386; UTF-8; en_US (nb)
Comment 15 Jan Jancura 2009-01-19 12:46:11 UTC
fixed in trunk
Comment 16 Quality Engineering 2009-01-20 07:30:42 UTC
Integrated into 'main-golden', will be available in build *200901200201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/e1af2a095012
User: Jan Jancura <jjancura@netbeans.org>
Log: #154957:FileNotFoundException at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj