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 196044 - NullPointerException at org.sonatype.aether.impl.internal.DefaultMetadataResolver.resolve
Summary: NullPointerException at org.sonatype.aether.impl.internal.DefaultMetadataReso...
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.0
Hardware: All All
: P1 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on: 197210
Blocks:
  Show dependency tree
 
Reported: 2011-02-26 15:09 UTC by ehsavoie
Modified: 2011-03-30 02:03 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 177066


Attachments
stacktrace (3.86 KB, text/plain)
2011-02-26 15:09 UTC, ehsavoie
Details
stacktrace (4.01 KB, text/plain)
2011-03-02 07:07 UTC, rcasha
Details
stacktrace (3.96 KB, text/plain)
2011-03-04 05:28 UTC, rcasha
Details
stacktrace (3.73 KB, text/plain)
2011-03-07 21:51 UTC, Jesse Glick
Details
stacktrace (6.91 KB, text/plain)
2011-03-08 08:09 UTC, Martin Fousek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ehsavoie 2011-02-26 15:09:35 UTC
Build: NetBeans IDE Dev (Build 201102260001)
VM: Java HotSpot(TM) 64-Bit Server VM, 19.1-b02, Java(TM) SE Runtime Environment, 1.6.0_24-b07
OS: Linux

Stacktrace: 
java.lang.NullPointerException
   at org.sonatype.aether.impl.internal.DefaultMetadataResolver.resolve(DefaultMetadataResolver.java:283)
   at org.sonatype.aether.impl.internal.DefaultMetadataResolver.resolveMetadata(DefaultMetadataResolver.java:177)
   at org.apache.maven.repository.internal.DefaultVersionResolver.resolveVersion(DefaultVersionResolver.java:211)
   at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:276)
   at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:220)
   at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:197)
Comment 1 ehsavoie 2011-02-26 15:09:39 UTC
Created attachment 106476 [details]
stacktrace
Comment 2 Exceptions Reporter 2011-03-01 20:22:14 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=177066
Comment 3 rcasha 2011-03-02 07:07:15 UTC
Created attachment 106618 [details]
stacktrace

opening a maven project (RichFaces example from svn)
Comment 4 ehsavoie 2011-03-02 07:52:53 UTC
This is a blocking bug as I can't open any maven project : which means every projects :(
Comment 5 ehsavoie 2011-03-03 17:14:24 UTC
I thik this is due to the fact that we have migrated our Nexus to 1.9 which provides only Maven 3 metadata
Comment 6 rcasha 2011-03-04 05:28:15 UTC
Created attachment 106694 [details]
stacktrace

I had just opened NB for the first time after upgrading. Several projects were open.
Comment 7 Jesse Glick 2011-03-07 21:51:52 UTC
Created attachment 106799 [details]
stacktrace

Trying to reproduce bug #192257; edited a pom.xml with a snapshot repo defn.
Comment 8 Martin Fousek 2011-03-08 08:09:53 UTC
Created attachment 106811 [details]
stacktrace

1, new project -> Maven
2, from archetype - default maven repository
3, chosen  Simple Web application
4, next
-> NPE appears (reproducible also for another archetypes)
Comment 9 Jesse Glick 2011-03-08 12:45:16 UTC
(Why was this filed in third-party??)

I already fixed this in e0f7845ef448. marfous's exception looks distinct but I cannot reproduce it; could make a maven-archetype-webapp:1.0 without problem.
Comment 10 ehsavoie 2011-03-08 14:36:04 UTC
The bu appeared after migrating to Sonatype Nexus 1.9 which provide only Maven 3.x metadata (not retro compatible).
It needs to download the maven metadata to be proudced, before that all is working fine