You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Bernd Bohmann (JIRA)" <ji...@codehaus.org> on 2005/11/08 14:50:06 UTC

[jira] Created: (MNG-1455) Possible NPE in DefaultArtifactResolver

Possible NPE in DefaultArtifactResolver
---------------------------------------

         Key: MNG-1455
         URL: http://jira.codehaus.org/browse/MNG-1455
     Project: Maven 2
        Type: Bug
  Components: maven-artifact  
    Versions: 2.0    
 Environment: Ubuntu /Windows 2000
    Reporter: Bernd Bohmann
 Attachments: DefaultArtifactResolver.java.patch

With mvn site:site we got a NPE at org.apache.maven.aritfact.resolver.DefaultArtifactResolver.java Line 82




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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1455) Possible NPE in DefaultArtifactResolver

Posted by "Bernd Bohmann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1455?page=comments#action_51026 ] 

Bernd Bohmann commented on MNG-1455:
------------------------------------

patch included

> Possible NPE in DefaultArtifactResolver
> ---------------------------------------
>
>          Key: MNG-1455
>          URL: http://jira.codehaus.org/browse/MNG-1455
>      Project: Maven 2
>         Type: Bug
>   Components: maven-artifact
>     Versions: 2.0
>  Environment: Ubuntu /Windows 2000
>     Reporter: Bernd Bohmann
>  Attachments: DefaultArtifactResolver.java.patch
>
>
> With mvn site:site we got a NPE at org.apache.maven.aritfact.resolver.DefaultArtifactResolver.java Line 82

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1455) Possible NPE in DefaultArtifactResolver

Posted by "domi (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1455?page=comments#action_57226 ] 

domi commented on MNG-1455:
---------------------------

When is this fix within an official releade? I'think I run the latest version and still have this problem!

> Possible NPE in DefaultArtifactResolver
> ---------------------------------------
>
>          Key: MNG-1455
>          URL: http://jira.codehaus.org/browse/MNG-1455
>      Project: Maven 2
>         Type: Bug

>   Components: Artifacts and Repositories
>     Versions: 2.0
>  Environment: Ubuntu /Windows 2000
>     Reporter: Bernd Bohmann
>     Assignee: Carlos Sanchez
>  Attachments: DefaultArtifactResolver.java.patch
>
>
> With mvn site:site we got a NPE at org.apache.maven.aritfact.resolver.DefaultArtifactResolver.java Line 82

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1455) Possible NPE in DefaultArtifactResolver

Posted by "Jeff Jensen (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1455?page=comments#action_50800 ] 

Jeff Jensen commented on MNG-1455:
----------------------------------

Is this the same as http://jira.codehaus.org/browse/MNG-1316?


> Possible NPE in DefaultArtifactResolver
> ---------------------------------------
>
>          Key: MNG-1455
>          URL: http://jira.codehaus.org/browse/MNG-1455
>      Project: Maven 2
>         Type: Bug
>   Components: maven-artifact
>     Versions: 2.0
>  Environment: Ubuntu /Windows 2000
>     Reporter: Bernd Bohmann
>  Attachments: DefaultArtifactResolver.java.patch
>
>
> With mvn site:site we got a NPE at org.apache.maven.aritfact.resolver.DefaultArtifactResolver.java Line 82

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1455) Possible NPE in DefaultArtifactResolver

Posted by "Carlos Sanchez (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1455?page=comments#action_51961 ] 

Carlos Sanchez commented on MNG-1455:
-------------------------------------

AFAIK with this patch you'd get a ArtifactNotFoundException.
The problem is in the dependencies report, that shouldn't try to call that class when it's a system dependency

> Possible NPE in DefaultArtifactResolver
> ---------------------------------------
>
>          Key: MNG-1455
>          URL: http://jira.codehaus.org/browse/MNG-1455
>      Project: Maven 2
>         Type: Bug
>   Components: Artifacts and Repositories
>     Versions: 2.0
>  Environment: Ubuntu /Windows 2000
>     Reporter: Bernd Bohmann
>     Assignee: Carlos Sanchez
>  Attachments: DefaultArtifactResolver.java.patch
>
>
> With mvn site:site we got a NPE at org.apache.maven.aritfact.resolver.DefaultArtifactResolver.java Line 82

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1455) Possible NPE in DefaultArtifactResolver

Posted by "Bernd Bohmann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1455?page=comments#action_50801 ] 

Bernd Bohmann commented on MNG-1455:
------------------------------------

Yes

> Possible NPE in DefaultArtifactResolver
> ---------------------------------------
>
>          Key: MNG-1455
>          URL: http://jira.codehaus.org/browse/MNG-1455
>      Project: Maven 2
>         Type: Bug
>   Components: maven-artifact
>     Versions: 2.0
>  Environment: Ubuntu /Windows 2000
>     Reporter: Bernd Bohmann
>  Attachments: DefaultArtifactResolver.java.patch
>
>
> With mvn site:site we got a NPE at org.apache.maven.aritfact.resolver.DefaultArtifactResolver.java Line 82

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1455) Possible NPE in DefaultArtifactResolver

Posted by "Bernd Bohmann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1455?page=comments#action_56845 ] 

Bernd Bohmann commented on MNG-1455:
------------------------------------

I think it it fixed in the latest version.
But I see from time to time a message on the list NPE in DefaultArtifactResolver ..

Or is this not the method that try to resolve the artifact?r

> Possible NPE in DefaultArtifactResolver
> ---------------------------------------
>
>          Key: MNG-1455
>          URL: http://jira.codehaus.org/browse/MNG-1455
>      Project: Maven 2
>         Type: Bug

>   Components: Artifacts and Repositories
>     Versions: 2.0
>  Environment: Ubuntu /Windows 2000
>     Reporter: Bernd Bohmann
>     Assignee: Carlos Sanchez
>  Attachments: DefaultArtifactResolver.java.patch
>
>
> With mvn site:site we got a NPE at org.apache.maven.aritfact.resolver.DefaultArtifactResolver.java Line 82

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MNG-1455) Possible NPE in DefaultArtifactResolver

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1455?page=all ]
     
Brett Porter closed MNG-1455:
-----------------------------

    Resolution: Duplicate

> Possible NPE in DefaultArtifactResolver
> ---------------------------------------
>
>          Key: MNG-1455
>          URL: http://jira.codehaus.org/browse/MNG-1455
>      Project: Maven 2
>         Type: Bug

>   Components: Artifacts and Repositories
>     Versions: 2.0
>  Environment: Ubuntu /Windows 2000
>     Reporter: Bernd Bohmann
>     Assignee: Carlos Sanchez
>  Attachments: DefaultArtifactResolver.java.patch
>
>
> With mvn site:site we got a NPE at org.apache.maven.aritfact.resolver.DefaultArtifactResolver.java Line 82

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MNG-1455) Possible NPE in DefaultArtifactResolver

Posted by "Carlos Sanchez (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1455?page=all ]
     
Carlos Sanchez closed MNG-1455:
-------------------------------

     Assign To: Carlos Sanchez
    Resolution: Duplicate

Dupe of MNG-1663
I don't think this patch will work

> Possible NPE in DefaultArtifactResolver
> ---------------------------------------
>
>          Key: MNG-1455
>          URL: http://jira.codehaus.org/browse/MNG-1455
>      Project: Maven 2
>         Type: Bug
>   Components: Artifacts and Repositories
>     Versions: 2.0
>  Environment: Ubuntu /Windows 2000
>     Reporter: Bernd Bohmann
>     Assignee: Carlos Sanchez
>  Attachments: DefaultArtifactResolver.java.patch
>
>
> With mvn site:site we got a NPE at org.apache.maven.aritfact.resolver.DefaultArtifactResolver.java Line 82

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Reopened: (MNG-1455) Possible NPE in DefaultArtifactResolver

Posted by "Bernd Bohmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1455?page=all ]
     
Bernd Bohmann reopened MNG-1455:
--------------------------------


The core question is:
Can artifact.getFile() return null?
If so the patch should applied if not the reason for the null should be fixed.

 

> Possible NPE in DefaultArtifactResolver
> ---------------------------------------
>
>          Key: MNG-1455
>          URL: http://jira.codehaus.org/browse/MNG-1455
>      Project: Maven 2
>         Type: Bug

>   Components: Artifacts and Repositories
>     Versions: 2.0
>  Environment: Ubuntu /Windows 2000
>     Reporter: Bernd Bohmann
>     Assignee: Carlos Sanchez
>  Attachments: DefaultArtifactResolver.java.patch
>
>
> With mvn site:site we got a NPE at org.apache.maven.aritfact.resolver.DefaultArtifactResolver.java Line 82

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1455) Possible NPE in DefaultArtifactResolver

Posted by "Bernd Bohmann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1455?page=comments#action_51936 ] 

Bernd Bohmann commented on MNG-1455:
------------------------------------

Why I should include a patch if the patch doesn't solve the problem?









> Possible NPE in DefaultArtifactResolver
> ---------------------------------------
>
>          Key: MNG-1455
>          URL: http://jira.codehaus.org/browse/MNG-1455
>      Project: Maven 2
>         Type: Bug
>   Components: Artifacts and Repositories
>     Versions: 2.0
>  Environment: Ubuntu /Windows 2000
>     Reporter: Bernd Bohmann
>     Assignee: Carlos Sanchez
>  Attachments: DefaultArtifactResolver.java.patch
>
>
> With mvn site:site we got a NPE at org.apache.maven.aritfact.resolver.DefaultArtifactResolver.java Line 82

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1455) Possible NPE in DefaultArtifactResolver

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1455?page=comments#action_56838 ] 

Brett Porter commented on MNG-1455:
-----------------------------------

the patch should *not* be applied. The file should not be null once the artifact is resolved.

Does the problem still exist with the latest project-info-reports-plugin where the bug we seem to be tracking is fixed?

> Possible NPE in DefaultArtifactResolver
> ---------------------------------------
>
>          Key: MNG-1455
>          URL: http://jira.codehaus.org/browse/MNG-1455
>      Project: Maven 2
>         Type: Bug

>   Components: Artifacts and Repositories
>     Versions: 2.0
>  Environment: Ubuntu /Windows 2000
>     Reporter: Bernd Bohmann
>     Assignee: Carlos Sanchez
>  Attachments: DefaultArtifactResolver.java.patch
>
>
> With mvn site:site we got a NPE at org.apache.maven.aritfact.resolver.DefaultArtifactResolver.java Line 82

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1455) Possible NPE in DefaultArtifactResolver

Posted by "Bernd Bohmann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1455?page=comments#action_51938 ] 

Bernd Bohmann commented on MNG-1455:
------------------------------------

Or can you explain me the difference between file doesn't exist or the file is null at this place?

> Possible NPE in DefaultArtifactResolver
> ---------------------------------------
>
>          Key: MNG-1455
>          URL: http://jira.codehaus.org/browse/MNG-1455
>      Project: Maven 2
>         Type: Bug
>   Components: Artifacts and Repositories
>     Versions: 2.0
>  Environment: Ubuntu /Windows 2000
>     Reporter: Bernd Bohmann
>     Assignee: Carlos Sanchez
>  Attachments: DefaultArtifactResolver.java.patch
>
>
> With mvn site:site we got a NPE at org.apache.maven.aritfact.resolver.DefaultArtifactResolver.java Line 82

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org