maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brett Porter (JIRA)" <j...@codehaus.org>
Subject [jira] Commented: (WAGON-105) NPE at org.apache.maven.wagon.repository.Repository.hashCode(Repository.java:241)
Date Wed, 02 Apr 2008 06:49:58 GMT

    [ http://jira.codehaus.org/browse/WAGON-105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=129454#action_129454
] 

Brett Porter commented on WAGON-105:
------------------------------------

while the issue will be fixed in Maven itself, Wagon should guard against such a situation
(if something is required for a hashcode, the repository should require it in the constructor)

> NPE  at org.apache.maven.wagon.repository.Repository.hashCode(Repository.java:241)
> ----------------------------------------------------------------------------------
>
>                 Key: WAGON-105
>                 URL: http://jira.codehaus.org/browse/WAGON-105
>             Project: wagon
>          Issue Type: Bug
>         Environment: maven 2.0.9 RC6, 
>            Reporter: David J. M. Karlsen
>            Priority: Blocker
>
> [INFO] ------------------------------------------------------------------------
> [INFO] Building portal-core
> [INFO]    task-segment: [clean, install]
> [INFO] ------------------------------------------------------------------------
> [INFO] [clean:clean]
> [INFO] Deleting directory /tmp/portal-trunks/portal-core/target
> Downloading: http://repo.sandsli.dnb.no/px/repository/public/opensymphony/quartz/1.6.0/quartz-1.6.0.pom
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] null
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.NullPointerException
>         at org.apache.maven.wagon.repository.Repository.hashCode(Repository.java:241)
>         at java.util.HashMap.put(HashMap.java:418)
>         at java.util.HashSet.add(HashSet.java:194)
>         at java.util.AbstractCollection.addAll(AbstractCollection.java:318)
>         at java.util.HashSet.<init>(HashSet.java:100)
>         at org.apache.maven.artifact.resolver.AbstractArtifactResolutionException.constructMessageBase(AbstractArtifactResolutionException.java:188)
>         at org.apache.maven.artifact.resolver.AbstractArtifactResolutionException.<init>(AbstractArtifactResolutionException.java:67)
>         at org.apache.maven.artifact.resolver.ArtifactNotFoundException.<init>(ArtifactNotFoundException.java:55)
>         at org.apache.maven.artifact.resolver.ArtifactNotFoundException.<init>(ArtifactNotFoundException.java:48)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:212)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:74)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:545)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:249)
>         at org.apache.maven.project.artifact.MavenMetadataSource.retrieve(MavenMetadataSource.java:105)
>         at org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(DefaultArtifactCollector.java:380)
>         at org.apache.maven.artifact.resolver.DefaultArtifactCollector.collect(DefaultArtifactCollector.java:76)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:300)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:288)
>         at org.apache.maven.plugin.DefaultPluginManager.resolveTransitiveDependencies(DefaultPluginManager.java:1415)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:405)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 1 minute 42 seconds
> [INFO] Finished at: Wed Apr 02 08:45:24 CEST 2008
> [INFO] Final Memory: 24M/376M
> [INFO] ------------------------------------------------------------------------
> /tmp/portal-trunks $ java -version
> java version "1.5.0_06"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
> Java HotSpot(TM) Server VM (build 1.5.0_06-b05, mixed mode)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message