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.
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)
Created attachment 108001 [details] stacktrace
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);
Right. core-main #7d19d2f741aa
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).