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 142939 - [65cat] ANT error on IDE/project open
Summary: [65cat] ANT error on IDE/project open
Status: RESOLVED DUPLICATE of bug 142938
Alias: None
Product: projects
Classification: Unclassified
Component: Ant Project (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Milan Kubec
URL: http://statistics.netbeans.org/analyt...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-05 15:27 UTC by ranbato
Modified: 2008-08-08 12:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ranbato 2008-08-05 15:27:49 UTC
[ BUILD # : 20080802 ]
[ JDK VERSION : 1.6.0_06 ]

Stack trace sent in on Exception #:  	86725

java.lang.AssertionError: Expecting a Project reference for
AntProjectHelper[C:\src\Java\G4AutoRegistration]

This is a new project created in this build
Comment 1 Milos Kleint 2008-08-08 09:53:26 UTC
please attach the exception stacktrace and provide steps to reproduce. what does 86725 number mean?
Comment 2 Milos Kleint 2008-08-08 12:16:38 UTC
reassigning to ant. 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.
Comment 3 Milan Kubec 2008-08-08 12:24:26 UTC

*** This issue has been marked as a duplicate of 142938 ***