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 198178 - IllegalArgumentException: URI scheme is not "file"
Summary: IllegalArgumentException: URI scheme is not "file"
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-28 14:55 UTC by Vladimir Kvashin
Modified: 2011-05-03 05:25 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 178584


Attachments
stacktrace (2.88 KB, text/plain)
2011-04-28 14:55 UTC, Vladimir Kvashin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Kvashin 2011-04-28 14:55:06 UTC
Build: NetBeans IDE Dev (Build 20110428-0b8f97b14d95)
VM: Java HotSpot(TM) Server VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: SunOS

User Comments:
vkvashin: I created a project type that is able to reside on non file based fie system.
Working with such projects I've got an exception.




Stacktrace: 
java.lang.IllegalArgumentException: URI scheme is not "file"
   at java.io.File.<init>(File.java:366)
   at org.netbeans.modules.project.ui.OpenProjectList$RecentProjectList$3.run(OpenProjectList.java:1448)
   at org.openide.util.Mutex.writeAccess(Mutex.java:472)
   at org.netbeans.modules.project.ui.OpenProjectList$RecentProjectList.refresh(OpenProjectList.java:1436)
   at org.netbeans.modules.project.ui.OpenProjectList$NbProjectDeletionListener.fileDeleted(OpenProjectList.java:1740)
   at org.openide.filesystems.FCLSupport$DispatchEventWrapper.dispatchEventImpl(FCLSupport.java:148)
Comment 1 Vladimir Kvashin 2011-04-28 14:55:11 UTC
Created attachment 108001 [details]
stacktrace
Comment 2 Vladimir Kvashin 2011-04-28 16:00:55 UTC
It seems that the most simple remedy is using 
    URLMapper.findFileObject(url);
instead of
    File file = FileUtil.normalizeFile(new File(url.toURI()));
    prjDir = FileUtil.toFileObject(file);
Comment 3 Jesse Glick 2011-05-02 14:52:21 UTC
Right. core-main #7d19d2f741aa
Comment 4 Quality Engineering 2011-05-03 05:25:44 UTC
Integrated into 'main-golden', will be available in build *201105030000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/7d19d2f741aa
User: Jesse Glick <jglick@netbeans.org>
Log: #198178: IAE when working with remote projects (not file-protocol).