jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2.x Project Info Reports Plugin
  • MPIR-24

Possible NPE in DefaultArtifactResolver

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: 2.0-beta-3
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    Ubuntu /Windows 2000

Description

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

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    DefaultArtifactResolver.java.patch
    08/Nov/05 7:48 AM
    0.6 kB
    Bernd Bohmann

Issue Links

duplicates

Bug - A problem which impairs or prevents the functions of the product. MPIR-2 Dependencies report throws NullPointerException when a transitive dependency has system scope

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.
is duplicated by

Bug - A problem which impairs or prevents the functions of the product. MPIR-3 Dependency report breaks on systemPath artifacts

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Jeff Jensen added a comment - 13/Nov/05 8:21 AM

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

Show
Jeff Jensen added a comment - 13/Nov/05 8:21 AM Is this the same as http://jira.codehaus.org/browse/MNG-1316?
Hide
Permalink
Bernd Bohmann added a comment - 13/Nov/05 9:07 AM

Yes

Show
Bernd Bohmann added a comment - 13/Nov/05 9:07 AM Yes
Hide
Permalink
Bernd Bohmann added a comment - 15/Nov/05 1:16 PM

patch included

Show
Bernd Bohmann added a comment - 15/Nov/05 1:16 PM patch included
Hide
Permalink
Carlos Sanchez added a comment - 24/Nov/05 1:28 PM

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

Show
Carlos Sanchez added a comment - 24/Nov/05 1:28 PM Dupe of MNG-1663 I don't think this patch will work
Hide
Permalink
Bernd Bohmann added a comment - 24/Nov/05 1:42 PM

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

Show
Bernd Bohmann added a comment - 24/Nov/05 1:42 PM Why I should include a patch if the patch doesn't solve the problem?
Hide
Permalink
Bernd Bohmann added a comment - 24/Nov/05 1:45 PM

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

Show
Bernd Bohmann added a comment - 24/Nov/05 1:45 PM Or can you explain me the difference between file doesn't exist or the file is null at this place?
Hide
Permalink
Carlos Sanchez added a comment - 24/Nov/05 7:04 PM

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

Show
Carlos Sanchez added a comment - 24/Nov/05 7:04 PM 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
Hide
Permalink
Bernd Bohmann added a comment - 24/Jan/06 12:28 PM

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.

Show
Bernd Bohmann added a comment - 24/Jan/06 12:28 PM 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.
Hide
Permalink
Brett Porter added a comment - 24/Jan/06 4:24 PM

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?

Show
Brett Porter added a comment - 24/Jan/06 4:24 PM 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?
Hide
Permalink
Bernd Bohmann added a comment - 24/Jan/06 5:02 PM

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

Show
Bernd Bohmann added a comment - 24/Jan/06 5:02 PM 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
Hide
Permalink
domi added a comment - 29/Jan/06 12:36 AM

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

Show
domi added a comment - 29/Jan/06 12:36 AM When is this fix within an official releade? I'think I run the latest version and still have this problem!
Hide
Permalink
Daniel Holmen added a comment - 07/Apr/06 6:39 AM

This NPE still happens for system scoped dependencies in 2.0.3. Is it fixed in the svn repository?

Show
Daniel Holmen added a comment - 07/Apr/06 6:39 AM This NPE still happens for system scoped dependencies in 2.0.3. Is it fixed in the svn repository?
Hide
Permalink
Julian Wood added a comment - 02/May/06 6:20 PM

Still not fixed as of maven 2.0.4, and yet all this issue and all its duplicates are closed, AFAICT.

Show
Julian Wood added a comment - 02/May/06 6:20 PM Still not fixed as of maven 2.0.4, and yet all this issue and all its duplicates are closed, AFAICT.

People

  • Assignee:
    Carlos Sanchez
    Reporter:
    Bernd Bohmann
Vote (5)
Watch (7)

Dates

  • Created:
    08/Nov/05 7:48 AM
    Updated:
    02/May/06 6:20 PM
    Resolved:
    24/Jan/06 5:12 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.