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 66837 - AssertionError after changing CNB in project.xml
Summary: AssertionError after changing CNB in project.xml
Status: RESOLVED WORKSFORME
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-14 18:44 UTC by _ tboudreau
Modified: 2005-12-11 00:14 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 _ tboudreau 2005-10-14 18:44:17 UTC
Yes, you probably shouldn't do it (but if you make a second copy of a module for
a more advanced version of a tutorial, well you have to do something).

Probably could be a little more graceful about this, since project.xml is
user-editable...

Love the error message, though.


java.lang.AssertionError: Cannot find myself
	at
org.netbeans.modules.apisupport.project.NbModuleProject.createEvaluator(NbModuleProject.java:314)
	at
org.netbeans.modules.apisupport.project.NbModuleProject.access$600(NbModuleProject.java:93)
	at
org.netbeans.modules.apisupport.project.NbModuleProject$2.run(NbModuleProject.java:545)
	at org.openide.util.Mutex.writeAccess(Mutex.java:352)
	at
org.netbeans.modules.apisupport.project.NbModuleProject.evaluator(NbModuleProject.java:542)
	at
org.netbeans.modules.apisupport.project.NbModuleProject.getClassesDirectory(NbModuleProject.java:594)
	at
org.netbeans.modules.apisupport.project.queries.ClassPathProviderImpl.findClassPath(ClassPathProviderImpl.java:80)
	at
org.netbeans.modules.java.project.ProjectClassPathProvider.findClassPath(ProjectClassPathProvider.java:38)
	at org.netbeans.api.java.classpath.ClassPath.getClassPath(ClassPath.java:445)
	at org.netbeans.modules.java.JavaNode.resolveIcons(JavaNode.java:573)
Comment 1 _ tboudreau 2005-10-14 18:45:26 UTC
Makes my want to buy the apisupport module a weekend at a meditation retreat or
something...
Comment 2 Jesse Glick 2005-10-14 19:06:48 UTC
How do you reproduce exactly?
Comment 3 _ tboudreau 2005-10-15 10:34:24 UTC
cd platform/samples
cp -R paint-application paint-application-2

Edit manifests for everything, fixing cnbs in project.xml and manifest to be
$WHATEVERMODULE2 (so the build won't fail complaining about duplicate modules),
but forget to do it for paint-application/Paint/nbproject/project.xml

Open paint-application-2

See the complaint when you try to build it, and fix
paint-application/Paint/nbproject/project.xml in the editor in NB.
Comment 4 Jesse Glick 2005-12-11 00:14:54 UTC
1. The assertion message you mention no longer exists, so the behavior cannot be
the same any more; hopefully better.

2. I cannot decipher your steps to reproduce, too vague. If you can still see
something like this, please reopen with precise instructions - what files you
edited and how.