[ 
http://jira.codehaus.org/browse/MNG-4218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Benjamin Bentmann closed MNG-4218.
----------------------------------

         Assignee: Benjamin Bentmann
       Resolution: Fixed
    Fix Version/s: 2.2.1
                   2.1.1

Fixed in [r788378|http://svn.apache.org/viewvc?view=rev&revision=788378] and 
[r788380|http://svn.apache.org/viewvc?view=rev&revision=788380], respectively.

> NPE in AbstractArtifactResolutionException if 
> DefaultArtifactResolver.resolveTransitively is interrupted
> --------------------------------------------------------------------------------------------------------
>
>                 Key: MNG-4218
>                 URL: http://jira.codehaus.org/browse/MNG-4218
>             Project: Maven 2
>          Issue Type: Bug
>          Components: General
>    Affects Versions: 2.1.0
>         Environment: all platforms
>            Reporter: Stefan Wismer
>            Assignee: Benjamin Bentmann
>            Priority: Minor
>             Fix For: 2.1.1, 2.2.1
>
>
> If an InterruptedException occurs in 
> DefaultArtifactResolver.resolveTransitively, it is caught and an 
> ArtifactResolutionException is thrown where the Artifact parameter is null 
> (line 350):
> throw new ArtifactResolutionException( "Resolution interrupted", null, e );
> Unfortunately, AbstractArtifactResolutionException tries to access properties 
> from that null-Artifact...
> The error output is therefore hiding the actual problem:
> java.lang.NullPointerException
>       at 
> org.apache.maven.artifact.resolver.AbstractArtifactResolutionException.<init>(AbstractArtifactResolutionException.java:92)
>       at 
> org.apache.maven.artifact.resolver.ArtifactResolutionException.<init>(ArtifactResolutionException.java:57)
>       at 
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:350)
>       at 
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:304)
>       at 
> org.apache.maven.plugin.DefaultPluginManager.resolveTransitiveDependencies(DefaultPluginManager.java:1492)
>       at 
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:435)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:519)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
>       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
>       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
>       at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
>       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:597)
>       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)

-- 
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

        

Reply via email to