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 242107 - NullPointerException at org.netbeans.modules.maven.nodes.ModulesNode$ModulesChildFactory.createNodeForKey
Summary: NullPointerException at org.netbeans.modules.maven.nodes.ModulesNode$ModulesC...
Status: RESOLVED DUPLICATE of bug 245785
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on: 243427 243446
Blocks:
  Show dependency tree
 
Reported: 2014-02-19 16:28 UTC by skygo
Modified: 2014-07-18 09:35 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 207786


Attachments
stacktrace (1.75 KB, text/plain)
2014-02-19 16:28 UTC, skygo
Details
stacktrace (1.75 KB, text/plain)
2014-05-29 07:15 UTC, Exceptions Reporter
Details
stacktrace (1.75 KB, text/plain)
2014-06-09 10:07 UTC, asafm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description skygo 2014-02-19 16:28:45 UTC
Build: NetBeans IDE Dev (Build 201402190001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b69, Java(TM) SE Runtime Environment, 1.8.0-b129
OS: Windows 8

User Comments:
skygo: Navigating and editing maven project. No precise idea of trigger.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.maven.nodes.ModulesNode$ModulesChildFactory.createNodeForKey(ModulesNode.java:193)
   at org.netbeans.modules.maven.nodes.ModulesNode$ModulesChildFactory.createNodeForKey(ModulesNode.java:141)
   at org.openide.nodes.ChildFactory.createNodesForKey(ChildFactory.java:120)
   at org.openide.nodes.AsynchChildren.createNodes(AsynchChildren.java:160)
   at org.openide.nodes.Children$Keys$KE.nodes(Children.java:1662)
   at org.openide.nodes.ChildrenArray.nodesFor(ChildrenArray.java:149)
Comment 1 skygo 2014-02-19 16:28:46 UTC
Created attachment 145407 [details]
stacktrace
Comment 2 Milos Kleint 2014-02-20 07:01:51 UTC
very weird. apparently
prj.getLookup().lookup(LogicalViewProvider.class); returned null which is close to impossible with maven projects (LVP is supposed to be always in the project lookup)
Comment 3 Quality Engineering 2014-03-13 02:47:47 UTC
Integrated into 'main-silver', will be available in build *201403130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/2515b54844e7
User: Milos Kleint <mkleint@netbeans.org>
Log: #242107 assert added
Comment 4 Exceptions Reporter 2014-04-07 06:34:38 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=207786
Comment 5 Milos Kleint 2014-04-07 06:39:10 UTC
likely related to issue 243446 and issue 243427
Comment 6 Milos Kleint 2014-04-07 06:55:03 UTC
jtulach, just fyi that something weird started happening with (maven) project lookup starting mid february. Items that should always be in the lookup are no longer there, random and rare. could it be related to some generic lookup changes? any other similar issues in other areas?
Comment 7 Exceptions Reporter 2014-05-29 07:15:42 UTC
Created attachment 147493 [details]
stacktrace

Running huge maven project and we got this exception huge meaning 1gb of source code including jboss binaries
Comment 8 asafm 2014-06-09 10:07:44 UTC
Created attachment 147616 [details]
stacktrace

Started Netbeans with several maven projects opened.
Comment 9 Tomas Stupka 2014-07-09 13:25:25 UTC
> jtulach, just fyi that something weird started happening with (maven) project lookup starting mid february. 
> Items that should always be in the lookup are no longer there, random and rare. could it be related to some generic lookup changes? 
> any other similar issues in other areas?
see also issue #245181
Comment 10 Exceptions Reporter 2014-07-17 19:07:24 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=207786
Comment 11 Tomas Stupka 2014-07-18 09:35:24 UTC

*** This bug has been marked as a duplicate of bug 245785 ***