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 190588 - NullPointerException at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts
Summary: NullPointerException at org.sonatype.aether.impl.internal.DefaultArtifactReso...
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.0
Hardware: All All
: P2 normal (vote)
Assignee: Jesse Glick
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2010-09-24 19:45 UTC by Jesse Glick
Modified: 2011-03-09 05:35 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 172782


Attachments
stacktrace (3.96 KB, text/plain)
2010-09-24 19:46 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2010-09-24 19:45:59 UTC
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)
Comment 1 Jesse Glick 2010-09-24 19:46:04 UTC
Created attachment 102150 [details]
stacktrace
Comment 2 Jesse Glick 2010-09-27 08:25:28 UTC
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).
Comment 3 Jesse Glick 2010-09-27 08:32:57 UTC
core-main #659b3c8a50b2
Comment 4 Jesse Glick 2010-10-08 13:53:04 UTC
core-main #115ceec52ac5 has a fix for a related exception when trying to view the dependency graph for a project.
Comment 5 Quality Engineering 2011-03-09 05:35:58 UTC
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.