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 124985

Summary: FileUtil.toFileObject() returns null for network shared file
Product: platform Reporter: Sonali Kochar <sonali>
Component: FilesystemsAssignee: rmatous <rmatous>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 124651    

Description Sonali Kochar 2008-01-09 18:38:59 UTC
I have mapped my unix home directory to my PC and am executing the following code

File srcFile = new File("\\sm-my_building_code-01\my_user_name\temp\newPurchaseOrder.xsd");
if(f.exists() )
    System.out.println("File exists);

File f = FileUtil.normalizeFile(srcFile);
if(f.exists())
    System.out.println("normalized file exists");

FileObject source = FileUtil.toFileObject(f);

I get a null FileObject and I am unable to proceed further. This above code is used in "External XML Schema Document "
new file wizard to copy files from shared network folders to a user specified target directory.
Comment 1 Peter Pis 2008-01-11 15:04:44 UTC
Reassigning to "openide" for evaluation.
Comment 2 rmatous 2008-01-14 19:22:23 UTC
UNC path isn't considered earlier than for 7.0

*** This issue has been marked as a duplicate of 46813 ***