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 200810040600) VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc2-b31 OS: Windows XP, 5.1, x86 User Comments: wobster: just tried to run a configuration for a recently compiled project. sid21177: 1.created project with includes filter on source 2.could not select a main class in run menu (shows no classes found) 3.put in the name of the main class manually 4. tried to run the project, it compiles fine GUEST: Try to run a project. Note that if i dont use the default platform i dont have the dialog displayed and nothing at all happen. wobster: just tried to run a configuration for a recently compiled project. Stacktrace: java.lang.AssertionError: File: C:\projects\hits-frontend-4.0\GUI\source Path Type: classpath/boot Owner: ClassPathProviders: org.netbeans.modules.java.project.ProjectClassPathProvider@2d6dd0 org.netbeans.modules.java.platform.classpath.PlatformClassPathProvider@849ddc org.netbeans.modules.java.j2seplatform.libraries.J2SELibraryClassPathProvider@981140 org.netbeans.modules.java.j2seplatform.platformdefinition.DefaultClassPathProvider@194b24b at org.netbeans.modules.java.j2seproject.J2SEActionProvider.isSetMainClass(J2SEActionProvider.java:1236) at org.netbeans.modules.java.j2seproject.J2SEActionProvider.getTargetNames(J2SEActionProvider.java:583) at org.netbeans.modules.java.j2seproject.J2SEActionProvider$4.run(J2SEActionProvider.java:379) at org.netbeans.api.java.source.ui.ScanDialog.runWhenScanFinished(ScanDialog.java:150) at org.netbeans.modules.java.j2seproject.J2SEActionProvider.invokeAction(J2SEActionProvider.java:489) at org.netbeans.modules.groovy.support.LookupMergerSupport$MergedActionProvider.invokeAction(LookupMergerSupport.java:110)
Created attachment 71244 [details] stacktrace
The C:\projects\hits-frontend-4.0\GUI\source is a project source root, right? Is the C:\projects\hits-frontend-4.0\GUI a project folder or is it an project with external source root? Can you reproduce this problem? The thing is that no SPI is able to find out the boot classpath for the given source root. It can be either caused by wrong project setup or a problem in the FileOwnerQuery. Thanks
FYI: I haven't seen the problem in recent versions of NetBeans so far.
OK. Feel free to reopen if you are able to reproduce it. Thanks.
Reopening - reproduced in NetBeans IDE Dev (Build 200812180001) http://statistics.netbeans.org/exceptions/detail.do?id=105870
This issue already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=105870
Build: NetBeans IDE Dev (Build 200904011705) VM: Java HotSpot(TM) Client VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03 OS: Windows XP, 5.1, x86 User Comments: This error occure when i want to run a java application project Stacktrace: java.lang.AssertionError: File: C:\Documents and Settings\a\workspaceEclipseDouran\sa_studentInfo\src Path Type: classpath/boot Owner: ClassPathProviders: org.netbeans.modules.java.project.ProjectClassPathProvider@d7430b org.netbeans.modules.csl.core.ProjectClassPathProvider@72c006 org.netbeans.modules.java.platform.classpath.PlatformClassPathProvider@19d06aa org.netbeans.modules.java.j2seplatform.libraries.J2SELibraryClassPathProvider@20b80a org.netbeans.modules.java.j2seplatform.platformdefinition.DefaultClassPathProvider@12d51c org.netbeans.modules.javascript.editing.JsClassPathProvider@655184 at org.netbeans.modules.java.j2seproject.J2SEActionProvider.isSetMainClass(J2SEActionProvider.java:1224) at org.netbeans.modules.java.j2seproject.J2SEActionProvider.getTargetNames(J2SEActionProvider.java:576) at org.netbeans.modules.java.j2seproject.J2SEActionProvider$4.run(J2SEActionProvider.java:378) at org.netbeans.api.java.source.ui.ScanDialog.runWhenScanFinished(ScanDialog.java:150) at org.netbeans.modules.java.j2seproject.J2SEActionProvider.invokeAction(J2SEActionProvider.java:482) at org.netbeans.modules.project.ui.actions.MainProjectAction.actionPerformed(MainProjectAction.java:150)
Created attachment 80476 [details] stacktrace
From the attached debug messages it seems as a problem of project's FileOwnerQuery. java.lang.AssertionError: File: C:\Documents and Settings\a\workspaceEclipseDouran\sa_studentInfo\src Path Type: classpath/boot Owner: ClassPathProviders: org.netbeans.modules.java.project.ProjectClassPathProvider@d7430b .... The FileOwnerQuery returned null for source root C:\Documents and Settings\a\workspaceEclipseDouran\sa_studentInfo\src => ProjectClassProvider was not used.
*** Issue 151883 has been marked as a duplicate of this issue. ***
*** Issue 153084 has been marked as a duplicate of this issue. ***
tzezula: can you elabore more on what the problem is? I didn't understand your last comment. All the reports seem to come from j2se projects (no exception found). Thanks.
most exception logs I've found contain similar entries before the exception occurs: what do they mean? ADVERTENCIA [org.netbeans.modules.java.source.indexing.JavaIndex]: Ignoring root with no ClassPath: C:\Users\Natalia E. Blanco\Desktop\n9_agenda\source ADVERTENCIA [org.netbeans.modules.java.source.parsing.JavacParser]: ClassPath identity changed for C:\Users\Natalia E. Blanco\Desktop\n9_agenda\source\uniandes\cupi2\agenda\interfaz\InterfazAgenda.java, class path owner: null
>The FileOwnerQuery returned null for source root C:\Documents and Settings\a\workspaceEclipseDouran\sa_studentInfo\src => ProjectClassProvider was not used. I've tried to explain that the source roots registered to the FOQ do not work in some cases. Which causes that ProjectClassPathProvider returns no CP for external source root. >most exception logs I've found contain similar entries before the exception occurs: what do they mean? The same, the FOQ do not work.
*** Bug 176380 has been marked as a duplicate of this bug. ***
This issue already has 204 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=105870
Definitely not P1 (no data lost, crash of the IDE). I will add more logging to find out why the FileOwnerQuery does not find the external root in some cases. Unfortunately there is no reproducable test case.
Tomasi, I guess any logging you have introduced recently does not help us yet because there are no reports from recent builds, right? Any clue what could be the cause? Or a potential fix? If not, we need to waive it for 6.8 and work on investigation more deeply after 6.8.
244 dups so far ... there are also reports from 6.8 so expect with additional logging. Could you guys look at it once more and re-evaluate ? Thanks a lot.
This bug already has 250 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=105870
reassigning to tzezula. I'm still not clear how this is a generic infra problem. All reports are still from j2se project only. Are there any related issues that have the same root cause with different threadstacks?
OK, I can reevaluate but the problem is in generic infrastructure as it was shown and explained several times in this issue and log. The problem is that FileOwnerQuery does not work in some cases for external source root. The stack trace is irrelevant as it was also explained above (the problem is that FOQ returns null for project source root). Why J2SEProject? 1) It's mostly configured with external source roots unlike others. 2) It has about 70% of NB project types.
fixed in jet-main 39b46be59ff5. I've changed the J2SEActionProvider not to depend on SimpleFOQImpl. But missing CP for project root signals even bigger problem. So I kept there the assertion and added more logging. There will be the AssertionError (when assertions are enabled) but the run action will continue to work.
Integrated into 'main-golden', will be available in build *201002090200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/39b46be59ff5 User: Tomas Zezula <tzezula@netbeans.org> Log: #149306:AssertionError: File: C:\projects\hits-frontend-4.0\GUI\source Path Type