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 166808 - NullPointerException at org.netbeans.modules.maven.graph.ArtifactWidget.<init>
Summary: NullPointerException at org.netbeans.modules.maven.graph.ArtifactWidget.<init>
Status: RESOLVED WORKSFORME
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: David Simonek
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-09 19:30 UTC by coding
Modified: 2010-02-23 18:07 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 152408


Attachments
stacktrace (906 bytes, text/plain)
2009-06-09 19:30 UTC, coding
Details
stacktrace (906 bytes, text/plain)
2009-06-29 12:02 UTC, Exceptions Reporter
Details
stacktrace (906 bytes, text/plain)
2009-06-29 20:53 UTC, summersb
Details
pom which produces this exception (5.82 KB, text/xml)
2010-02-23 16:53 UTC, malfunction84
Details

Note You need to log in before you can comment on or make changes to this bug.
Description coding 2009-06-09 19:30:32 UTC
Build: NetBeans IDE 6.7 RC2 (Build 200906042131)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.0-b16, Java(TM) SE Runtime Environment, 1.6.0_14-b08
OS: Linux, 2.6.28-12-generic, amd64

User Comments:
coding: not sure when it happened, sorry



Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.maven.graph.ArtifactWidget.<init>(ArtifactWidget.java:124)
        at org.netbeans.modules.maven.graph.DependencyGraphScene.attachNodeWidget(DependencyGraphScene.java:184)
        at org.netbeans.modules.maven.graph.DependencyGraphScene.attachNodeWidget(DependencyGraphScene.java:95)
        at org.netbeans.api.visual.graph.GraphScene.addNode(GraphScene.java:97)
        at org.netbeans.modules.maven.graph.GraphConstructor.endVisit(GraphConstructor.java:129)
        at org.apache.maven.shared.dependency.tree.DependencyNode.accept(DependencyNode.java:317)
Comment 1 coding 2009-06-09 19:30:47 UTC
Created attachment 83364 [details]
stacktrace
Comment 2 coding 2009-06-10 18:05:24 UTC
I'm not absolutely sure about this but I am guessing it has something to do with my war maven project that has war
dependencies.
Comment 3 Exceptions Reporter 2009-06-18 09:47:00 UTC
This issue already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=152408
Comment 4 Exceptions Reporter 2009-06-29 12:01:51 UTC
Build: NetBeans IDE 6.7 (Build 200906241340)
VM: Java HotSpot(TM) Client VM, 14.0-b16, Java(TM) SE Runtime Environment, 1.6.0_14-b08
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.maven.graph.ArtifactWidget.<init>(ArtifactWidget.java:124)
        at org.netbeans.modules.maven.graph.DependencyGraphScene.attachNodeWidget(DependencyGraphScene.java:184)
        at org.netbeans.modules.maven.graph.DependencyGraphScene.attachNodeWidget(DependencyGraphScene.java:95)
        at org.netbeans.api.visual.graph.GraphScene.addNode(GraphScene.java:97)
        at org.netbeans.modules.maven.graph.GraphConstructor.endVisit(GraphConstructor.java:129)
        at org.apache.maven.shared.dependency.tree.DependencyNode.accept(DependencyNode.java:317)
Comment 5 Exceptions Reporter 2009-06-29 12:02:06 UTC
Created attachment 84127 [details]
stacktrace
Comment 6 Exceptions Reporter 2009-06-29 12:02:35 UTC
This issue already has 6 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=152408
Comment 7 summersb 2009-06-29 20:52:58 UTC
Build: NetBeans IDE 6.7 (Build 200906241340)
VM: Java HotSpot(TM) 64-Bit Server VM, 11.3-b02-83, Java(TM) SE Runtime Environment, 1.6.0_13-b03-211
OS: Mac OS X, 10.5.7, x86_64

User Comments: 
viewing a pom dependency graph	

Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.maven.graph.ArtifactWidget.<init>(ArtifactWidget.java:124)
        at org.netbeans.modules.maven.graph.DependencyGraphScene.attachNodeWidget(DependencyGraphScene.java:184)
        at org.netbeans.modules.maven.graph.DependencyGraphScene.attachNodeWidget(DependencyGraphScene.java:95)
        at org.netbeans.api.visual.graph.GraphScene.addNode(GraphScene.java:97)
        at org.netbeans.modules.maven.graph.GraphConstructor.endVisit(GraphConstructor.java:129)
        at org.apache.maven.shared.dependency.tree.DependencyNode.accept(DependencyNode.java:317)
Comment 8 summersb 2009-06-29 20:53:02 UTC
Created attachment 84148 [details]
stacktrace
Comment 9 Exceptions Reporter 2009-06-29 20:53:07 UTC
This issue already has 7 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=152408
Comment 10 summersb 2009-06-29 21:08:03 UTC
Corrected error by moving these dependencies to the bottom of my dependency list
		<dependency>
			<groupId>org.apache.poi</groupId>
			<artifactId>poi</artifactId>
			<version>3.1-FINAL</version>
		</dependency>
		<dependency>
			<groupId>org.apache.poi</groupId>
			<artifactId>poi-contrib</artifactId>
			<version>3.1-FINAL</version>
		</dependency>
		<dependency>
			<groupId>org.apache.poi</groupId>
			<artifactId>poi-scratchpad</artifactId>
			<version>3.1-FINAL</version>
		</dependency>
Comment 11 David Simonek 2009-07-21 16:21:56 UTC
Hello reporters,
Is any of you able to reproduce this issue or is it just random? I'm not able to reproduce and error indicates null
value when shouldn't be. Please if you have any pom file or example project on which you can reproduce, please attach it.
Also, how you invoked graph view? Thanks.
Comment 12 David Simonek 2009-07-24 12:28:34 UTC
No info from reporters for several days - as I think of it, it is probable that this issue was fixed along with my
changes to graph updating and exclusion after 6.7. All reports are from older builds, that would support my theory.

I'm going to close this for now, please reopen if problem persists with reproducible set of steps, thanks.
Comment 13 malfunction84 2010-02-23 16:52:07 UTC
Just encountered this in 6.8.  I will attach my pom.xml next.
Comment 14 malfunction84 2010-02-23 16:53:34 UTC
Created attachment 94441 [details]
pom which produces this exception

To generate the error, I right-clicked the project and selected "Show Dependency Graph" in the menu.
Comment 15 malfunction84 2010-02-23 16:57:51 UTC
In my pom, removing the <exceptions> from the spring-context dependency causes it to work and show the graph.
Comment 16 malfunction84 2010-02-23 17:01:38 UTC
(In reply to comment #15)
> In my pom, removing the <exceptions> from the spring-context dependency causes
> it to work and show the graph.

Sorry, I meant <exclusions>.
Comment 17 malfunction84 2010-02-23 18:07:42 UTC
Changing back to original resolution.  The Exception Reporter refiled this as Bug 181108.