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 nbms-and-javadoc-8570-on-20120122) VM: Java HotSpot(TM) Server VM, 20.1-b02, Java(TM) SE Runtime Environment, 1.6.0_26-b03 OS: Windows XP User Comments: mklaehn: The AssertionError happened after deleting the folder structure of a project outside of NB (Windows Explorer). The AssertionError is so dominant that i can only use the Exception Reporter after all Errors have been raised. Closing NB while deleting the folders does not help either. The errors are then raised during restart/opening of projects. Stacktrace: java.lang.AssertionError: nbfs://nbhost// at org.openide.filesystems.FileObject.toURI(FileObject.java:1165) at org.netbeans.modules.projectapi.SimpleFileOwnerQueryImplementation.getOwner(SimpleFileOwnerQueryImplementation.java:168) at org.netbeans.api.project.FileOwnerQuery.getOwner(FileOwnerQuery.java:104) at org.netbeans.modules.refactoring.java.RefactoringUtils.isOnSourceClasspath(RefactoringUtils.java:289) at org.netbeans.modules.refactoring.java.api.JavaRefactoringUtils.isOnSourceClasspath(JavaRefactoringUtils.java:88) at org.netbeans.modules.refactoring.java.ui.RefactoringActionsProvider.canCopy(RefactoringActionsProvider.java:398)
Created attachment 115191 [details] stacktrace
Similar to bug #207648 but I think a different code path.
core-main #ac372707e0e6
*** Bug 207701 has been marked as a duplicate of this bug. ***
Integrated into 'main-golden', will be available in build *201201260600* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/ac372707e0e6 User: Jesse Glick <jglick@netbeans.org> Log: #207690: AssertionError: nbfs://nbhost// URLs created for files on the system filesystem were syntactically malformed and could not be used as URIs. Using nbfs://nbhost/SystemFileSystem/<path> (as in older releases?) seems to help. Also have to properly escape path components; URLEncoder is only for x-www-form-urlencoded, not URLs/URIs!
*** Bug 207757 has been marked as a duplicate of this bug. ***
Created attachment 115323 [details] log from 201201260600 I'm getting a lot of these errors in 201201260600 on Windows machines, when I crate a new Mobile Application Project.
Not sure, I fixed the obvious cause for this error and wrote a test for it. Adding additional assertions which should help diagnose if it continues to happen in newer dev builds.
core-main #5a959d1133bc might fix it.
(In reply to comment #9) > core-main #5a959d1133bc might fix it. No more errors for me after this, thanks.
Haven't had that error anymore, thanks.