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 6.9 Beta (Build 201004200117) VM: Java HotSpot(TM) Client VM, 16.0-b13, Java(TM) SE Runtime Environment, 1.6.0_18-b07 OS: Windows XP User Comments: cappicard: Attempting to add a TopComponent to my Maven-based NetBeans Application. Stacktrace: java.lang.NullPointerException at org.netbeans.modules.apisupport.project.CreatedModifiedFilesFactory$AddModuleDependency.<init>(CreatedModifiedFilesFactory.java:466) at org.netbeans.modules.apisupport.project.CreatedModifiedFilesFactory.addModuleDependency(CreatedModifiedFilesFactory.java:122) at org.netbeans.modules.apisupport.project.CreatedModifiedFiles.addModuleDependency(CreatedModifiedFiles.java:338) at org.netbeans.modules.apisupport.project.CreatedModifiedFiles.addModuleDependency(CreatedModifiedFiles.java:349) at org.netbeans.modules.apisupport.project.ui.wizard.winsys.NewTCIterator.generateFileChanges(NewTCIterator.java:282) at org.netbeans.modules.apisupport.project.ui.wizard.winsys.NameAndLocationPanel.updateData(NameAndLocationPanel.java:99)
Created attachment 98967 [details] stacktrace
The root problem is that your project is invalid: org.codehaus.plexus.util.dag.CycleDetectedException: Edge between 'Vertex{label='com.mycompany:MavenWordEngine'}' and 'Vertex{label='com.mycompany:MavenWordEngine'}' introduces to cycle in the graph com.mycompany:MavenWordEngine --> com.mycompany:MavenWordEngine This appears to be making the Maven project lose its NbModuleProvider between the time the NewTCIterator.DataModel is constructed and the time generateFileChanges is called on it. Not sure exactly how this happens, but the NPE is coming from the call to .addModuleDependency("org.openide.windows"), and the CycleDetectedException is also produced by some call to addModuleDependency. Without knowledge of the internals of the Maven project's lookup, all I could do is make CreatedModifiedFiles fail earlier if there is no NbModuleProvider, but this is still open to a similar race condition.
Reported for 7.3.x or earlier, no new info since then -> closing as worksforme, please reopen in case you see it.