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 200808021401) VM: Java HotSpot(TM) Client VM, 10.0-b22, Java(TM) SE Runtime Environment, 1.6.0_06-b02 OS: Windows XP, 5.1, x86 User Comments: Opened IDE Stacktrace: java.lang.AssertionError: Expecting a Project reference for AntProjectHelper[C:\src\Java\G4AutoRegistration] at org.netbeans.modules.project.ant.AntBasedProjectFactorySingleton.getProjectFor(AntBasedProjectFactorySingleton.java:235) at org.netbeans.spi.project.support.ant.SourcesHelper.getProject(SourcesHelper.java:465) at org.netbeans.spi.project.support.ant.SourcesHelper.remarkExternalRoots(SourcesHelper.java:523) at org.netbeans.spi.project.support.ant.SourcesHelper.registerExternalRoots(SourcesHelper.java:516) at org.netbeans.modules.web.project.WebSources$2.run(WebSources.java:146) at org.openide.util.Mutex.leaveImpl(Mutex.java:902)
Created attachment 66602 [details] stacktrace
Please provide more details about the issue. - Is it reproducible for you? - Did you somehow modify or delete some projects outside of IDE or when the IDE was not running? - Is 'C:\src\Java\G4AutoRegistration' valid NetBeans project? - Are you able to open project 'C:\src\Java\G4AutoRegistration' separately?
Created attachment 66825 [details] Zipped Project with issue
I have attached the project. It was created fresh with a daily from last week. It was working for a day or two and then entered this state. I removed the build and dist folders to reduce the size (6MB) but they are there from the last time I was able to open it. I was working on in one day, saved and shut down, and was unable to enter it the next morning.
Thanks for the info.
*** Issue 142939 has been marked as a duplicate of this issue. ***
Preevaluation from Milos: It seems to be related to line 197 in AntBasedProjectFactorySingleton AntProjectHelper helper = HELPER_CALLBACK.createHelper(projectDirectory, projectXml, state, provider); Project project = provider.createProject(helper); project2Helper.put(project, new WeakReference<AntProjectHelper>(helper)); synchronized (helper2Project) { helper2Project.put(helper, new WeakReference<Project>(project)); } the helper2project map is populated after provider.createProjects(helper), I guess under some circumstances some other code can access the Factory singleton from code spawned by provider.createProject(helper) content.
I think there is another bug in ant/project similar if not identical to this one.
*** This issue has been marked as a duplicate of 146852 ***