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.5 RC1 (Build 200810171318) VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_05-b13 OS: Windows XP, 5.1, x86 User Comments: nvarun: Deleted Maven project created using command line.. Stacktrace: java.lang.NullPointerException at org.netbeans.modules.maven.nodes.SourcesNodeFactory$NList.node(SourcesNodeFactory.java:99) at org.netbeans.modules.maven.nodes.SourcesNodeFactory$NList.node(SourcesNodeFactory.java:79) at org.netbeans.spi.project.ui.support.NodeFactorySupport$DelegateChildren.createNodes(NodeFactorySupport.java:142) at org.netbeans.spi.project.ui.support.NodeFactorySupport$DelegateChildren.createNodes(NodeFactorySupport.java:120) at org.openide.nodes.Children$Keys$KE.nodes(Children.java:1596) at org.openide.nodes.ChildrenArray.nodesFor(ChildrenArray.java:168)
Created attachment 73295 [details] stacktrace
I would suggest deleting from the IDE's UI.
Yes, I did that, I have deleted the project from IDE's UI, though the project was initially created from CLI using External Maven.
ok, sorry I misunderstood you..
Build: NetBeans IDE Dev (Build 200902011401) VM: Java HotSpot(TM) Server VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03 OS: Linux, 2.6.27-11-generic, i386 User Comments: deleted maven artifact project Stacktrace: java.lang.NullPointerException at org.netbeans.modules.maven.nodes.SourcesNodeFactory$NList.node(SourcesNodeFactory.java:100) at org.netbeans.modules.maven.nodes.SourcesNodeFactory$NList.node(SourcesNodeFactory.java:80) at org.netbeans.spi.project.ui.support.NodeFactorySupport$DelegateChildren.createNodes(NodeFactorySupport.java:142) at org.netbeans.spi.project.ui.support.NodeFactorySupport$DelegateChildren.createNodes(NodeFactorySupport.java:120) at org.openide.nodes.Children$Keys$KE.nodes(Children.java:1602) at org.openide.nodes.ChildrenArray.nodesFor(ChildrenArray.java:168)
Created attachment 76442 [details] stacktrace
Build: NetBeans IDE 6.7 Beta (Build 200904230001) VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03 OS: Linux, 2.6.27-7-generic, i386 User Comments: Deleted Maven Project Stacktrace: java.lang.NullPointerException at org.netbeans.modules.maven.nodes.SourcesNodeFactory$NList.node(SourcesNodeFactory.java:100) at org.netbeans.modules.maven.nodes.SourcesNodeFactory$NList.node(SourcesNodeFactory.java:80) at org.netbeans.spi.project.ui.support.NodeFactorySupport$DelegateChildren.createNodes(NodeFactorySupport.java:142) at org.netbeans.spi.project.ui.support.NodeFactorySupport$DelegateChildren.createNodes(NodeFactorySupport.java:120) at org.openide.nodes.Children$Keys$KE.nodes(Children.java:1609) at org.openide.nodes.ChildrenArray.nodesFor(ChildrenArray.java:168)
Created attachment 80878 [details] stacktrace
Build: NetBeans IDE Dev (Build 200904220201) VM: Java HotSpot(TM) 64-Bit Server VM, 1.6.0_07-b06-57, Java(TM) SE Runtime Environment, 1.6.0_07-b06-153 OS: Mac OS X, 10.5.6, x86_64 User Comments: Updated the pom file of a Maven project Stacktrace: java.lang.NullPointerException at org.netbeans.modules.maven.nodes.SourcesNodeFactory$NList.node(SourcesNodeFactory.java:100) at org.netbeans.modules.maven.nodes.SourcesNodeFactory$NList.node(SourcesNodeFactory.java:80) at org.netbeans.spi.project.ui.support.NodeFactorySupport$DelegateChildren.createNodes(NodeFactorySupport.java:142) at org.netbeans.spi.project.ui.support.NodeFactorySupport$DelegateChildren.createNodes(NodeFactorySupport.java:120) at org.openide.nodes.Children$Keys$KE.nodes(Children.java:1609) at org.openide.nodes.ChildrenArray.nodesFor(ChildrenArray.java:168)
Created attachment 80889 [details] stacktrace
Can't reproduce with mentioned use cases. Reporters,could you please verify issue is still valid?
I think it's highly random
Build: NetBeans IDE Dev (Build 200905190201) VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03 OS: Windows XP, 5.1, x86 User Comments: changed ArtifactID and Name in maven project properties Stacktrace: java.lang.NullPointerException at org.netbeans.modules.maven.nodes.SourcesNodeFactory$NList.node(SourcesNodeFactory.java:100) at org.netbeans.modules.maven.nodes.SourcesNodeFactory$NList.node(SourcesNodeFactory.java:80) at org.netbeans.spi.project.ui.support.NodeFactorySupport$DelegateChildren.createNodes(NodeFactorySupport.java:142) at org.netbeans.spi.project.ui.support.NodeFactorySupport$DelegateChildren.createNodes(NodeFactorySupport.java:120) at org.openide.nodes.Children$Keys$KE.nodes(Children.java:1609) at org.openide.nodes.ChildrenArray.nodesFor(ChildrenArray.java:156)
Created attachment 82488 [details] stacktrace
Can't reproduce with any of described steps on Vista or Mac.Add please more info or some reproducible steps,otherwise it's random P2 max.
I can always reproduce it with following steps: go to property of a maven app (I created a new one and also used mavencalc from samples); change ArtifactID to a new one with spaces; press OK ->NPE
Well,the spaces are the main reason in your case - context control when renaming is bad. This is,however, already filed as iossue 159066,concerning all problems with spaces in project names and so. I will add dependency to that issue and leave this opened for original causes. *** This issue has been marked as a duplicate of 159066 ***
Ups,my fault,sorry.
well, the described steps (change artifactid to one with spaces in customizer) doesn't seem to cause an exception for me, I just get a "broken" project, which is correct..
I'm also unable to reproduce the NPE in this case, however number of user reports indicate,that it's still thrown in various random cases and should be fixed anyway.I'll lower the priority,however,for it's random nature and no general 100% reproducible case exists.
do you (any one of the reporters) have the sources of the project outside of the project directory? the problem is that the source folder doesn't somehow belong to any project (while the node factory was clearly created with a project attached) The mystery is why is it happening, could be a deeper problem in filesystems or project infrastructure/threading.. Given the number of reports I will attempt to silently overcome the problem and hope for the best. For a proper investigation we would need some reliable steps to reproduce..
http://hg.netbeans.org/main/rev/b84be1c4fb63 does check for null in the current project owner and will just return null from the method which in turn results in no visible node for the sources. Which is probably correct, or at least less harmful.
and again it happens to me when I delete GroupID in project properties and press OK; In both cases (spaces in ArtifactID and empty GroupID) I get exception and <Badly Formed Project>. That happens with a newly created project and with calculator sample as well...
I also get <badly formed project> and exception, but not NPE from this issue,rather something different and only in IDE log. This is, however, connected with issue 159066 and not with this one.
Integrated into 'main-golden', will be available in build *200905220201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/b84be1c4fb63 User: Milos Kleint <mkleint@netbeans.org> Log: #152418 if the owner project for source group is null according to FOQ, just look the other way and pretend there's no sources.. The root cause of the issue is unknown, might be some data inconsistency in projects or filesystems, or it might be connected with external source roots..