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.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)
Created attachment 83364 [details] stacktrace
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.
This issue already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=152408
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)
Created attachment 84127 [details] stacktrace
This issue already has 6 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=152408
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)
Created attachment 84148 [details] stacktrace
This issue already has 7 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=152408
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>
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.
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.
Just encountered this in 6.8. I will attach my pom.xml next.
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.
In my pom, removing the <exceptions> from the spring-context dependency causes it to work and show the graph.
(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>.
Changing back to original resolution. The Exception Reporter refiled this as Bug 181108.