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.
This issue was reported manually by jglick. It already has 1 duplicates Build: NetBeans IDE Dev (Build 100924-5fcf1ed733b6) VM: Java HotSpot(TM) Client VM, 17.0-b16, Java(TM) SE Runtime Environment, 1.6.0_21-b06 OS: Linux User Comments: jglick: Add to Quick Start project: <dependency> <groupId>com.jamonapi</groupId> <artifactId>jamon</artifactId> <version>2.4</version> </dependency> then build, and on Dependencies > jamon-2.4.jar right-click and select View Artifact Details. Related to missing POM; see bug #190215. Stacktrace: java.lang.NullPointerException at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:200) at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:190) at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:251) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:217) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:232) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:239)
Created attachment 102150 [details] stacktrace
Easily reproducible just by trying to open any artifact from Maven Repository Browser. Regression perhaps from use of Aether? RepositorySystemSession is null, because DefaultMavenProjectBuilder.injectSession gets null from legacySupport.getSession() (I think).
core-main #659b3c8a50b2
core-main #115ceec52ac5 has a fix for a related exception when trying to view the dependency graph for a project.
Integrated into 'main-golden', will be available in build *201103090000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/e0f7845ef448 User: Jesse Glick <jglick@netbeans.org> Log: Another Aether NPE like #195045, #190588, and others. Providing a utility method to fix this more simply. Cannot be fully automatic since it must be done in the active thread.