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 43745 - Could not get a represent file object from masterfs
Summary: Could not get a represent file object from masterfs
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: rmatous
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2004-05-24 15:13 UTC by Jiri Skrivanek
Modified: 2006-03-24 09:42 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 Jiri Skrivanek 2004-05-24 15:13:31 UTC
When you compile a file, file systems are not
refreshed and you get the following error:

java.lang.AssertionError: Could not get a
represent file object from masterfs
        at
org.apache.tools.ant.module.bridge.impl.BridgeImpl$1.run(BridgeImpl.java:243)
        at org.openide.util.Task.run(Task.java:136)
        at
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)
        at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:686)

To reproduce:
- create a new project (java application with main
class)
- compile the main class (F9)
- it is successfully compiled but status of the
class is not refreshed and 'build' directory
doesn't appear in the Files view
- when you try F9 once more the above error is
printed out

Probably it happens only on Windows. On Linux it
works as I was said.

Tested in build 20040524-1220, JDK1.4.2_04, WindowsXP.
Comment 1 _ ttran 2004-05-25 09:38:45 UTC
Jesse, please reassign 
Comment 2 Jesse Glick 2004-05-25 11:42:18 UTC
Radek, I guess you removed MFS delegates for some disk drives. This
seems to have broken Ant's hack to refresh all files. Same in
o.n.c.actions.RefreshAllFilesystemsAction.

I'm not sure what the proper solution actually is. I want some bit of
safe code that will find masterfs and refresh it.
Comment 3 rmatous 2004-05-25 13:32:01 UTC
Fixed. You can't get a represented file object anyway (e.g. floppy
disk isn't inserted) and then nobody can't rely on it.  

/cvs/core/src/org/netbeans/core/actions/RefreshAllFilesystemsAction.java,v
new revision: 1.4; previous revision: 1.3

/cvs/ant/src-bridge/org/apache/tools/ant/module/bridge/impl/BridgeImpl.java,
new revision: 1.16; previous revision: 1.15
Comment 4 Jiri Skrivanek 2004-05-26 06:37:13 UTC
Verified in build 20040526-0016.