You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Nicolas Lalevée (JIRA)" <ji...@apache.org> on 2008/01/15 18:09:34 UTC

[jira] Created: (IVY-701) NPE while resolving dependencies

NPE while resolving dependencies
--------------------------------

                 Key: IVY-701
                 URL: https://issues.apache.org/jira/browse/IVY-701
             Project: Ivy
          Issue Type: Bug
          Components: Core
    Affects Versions: 2.0.0-beta-2
            Reporter: Nicolas Lalevée


I have build the trunk of Ivy today in order to be used in IvyDE : svn revision 611768
And a resolve threw a NPE : 
{noformat}
com.company#project;latest.development: java.lang.NullPointerException at org.apache.ivy.plugins.resolver.AbstractResourceResolver.findResource(AbstractResourceResolver.java:161)
{noformat}

With the command line, with ant, I still use Ivy1.4, and it works.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (IVY-701) NPE while resolving dependencies

Posted by "Nicolas Lalevée (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12559389#action_12559389 ] 

Nicolas Lalevée commented on IVY-701:
-------------------------------------

I have just changed the ivy.conf used by eclipse so it use a specific cache, unrelated to the cache used by our command line build which use Ivy1.4. It works like a charm, and some strange behavior disappeared : in the resolved dependencies there were the same library retrieved twice with two different versions.

> NPE while resolving dependencies
> --------------------------------
>
>                 Key: IVY-701
>                 URL: https://issues.apache.org/jira/browse/IVY-701
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-beta-2
>            Reporter: Nicolas Lalevée
>            Assignee: Xavier Hanin
>
> I have build the trunk of Ivy today in order to be used in IvyDE : svn revision 611768
> And a resolve threw a NPE : 
> {noformat}
> com.company#project;latest.development: java.lang.NullPointerException at org.apache.ivy.plugins.resolver.AbstractResourceResolver.findResource(AbstractResourceResolver.java:161)
> {noformat}
> With the command line, with ant, I still use Ivy1.4, and it works.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (IVY-701) NPE while resolving dependencies

Posted by "Xavier Hanin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12559149#action_12559149 ] 

Xavier Hanin commented on IVY-701:
----------------------------------

I've just checked in what should fix the NPE. I haven't found an easy way to add a unit test to reproduce the problem though, so my fix is based on code analysis only. Could you try out the latest trunk version and tell me if you still get the NPE or not?

> NPE while resolving dependencies
> --------------------------------
>
>                 Key: IVY-701
>                 URL: https://issues.apache.org/jira/browse/IVY-701
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-beta-2
>            Reporter: Nicolas Lalevée
>            Assignee: Xavier Hanin
>
> I have build the trunk of Ivy today in order to be used in IvyDE : svn revision 611768
> And a resolve threw a NPE : 
> {noformat}
> com.company#project;latest.development: java.lang.NullPointerException at org.apache.ivy.plugins.resolver.AbstractResourceResolver.findResource(AbstractResourceResolver.java:161)
> {noformat}
> With the command line, with ant, I still use Ivy1.4, and it works.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (IVY-701) NPE while resolving dependencies

Posted by "Xavier Hanin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Xavier Hanin reassigned IVY-701:
--------------------------------

    Assignee: Xavier Hanin

> NPE while resolving dependencies
> --------------------------------
>
>                 Key: IVY-701
>                 URL: https://issues.apache.org/jira/browse/IVY-701
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-beta-2
>            Reporter: Nicolas Lalevée
>            Assignee: Xavier Hanin
>
> I have build the trunk of Ivy today in order to be used in IvyDE : svn revision 611768
> And a resolve threw a NPE : 
> {noformat}
> com.company#project;latest.development: java.lang.NullPointerException at org.apache.ivy.plugins.resolver.AbstractResourceResolver.findResource(AbstractResourceResolver.java:161)
> {noformat}
> With the command line, with ant, I still use Ivy1.4, and it works.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (IVY-701) NPE while resolving dependencies

Posted by "Nicolas Lalevée (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12559384#action_12559384 ] 

hibou edited comment on IVY-701 at 1/16/08 12:17 AM:
---------------------------------------------------------------

Updated Ivy to the revision 612380. Now I have :
{noformat}
com.joost#openrdf-adapter;latest.development: not found
{noformat}

So it seems that Ivy2 is not fully backward compatible with Ivy1. Maybe this topic may deserve a specific page in the doc ?

      was (Author: hibou):
    Updated Ivy to the revision 612380. Now I have :
{{noformat}}
com.joost#openrdf-adapter;latest.development: not found
{{noformat}}

So it seems that Ivy2 is not fully backward compatible with Ivy1. Maybe this topic may deserve a specific page in the doc ?
  
> NPE while resolving dependencies
> --------------------------------
>
>                 Key: IVY-701
>                 URL: https://issues.apache.org/jira/browse/IVY-701
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-beta-2
>            Reporter: Nicolas Lalevée
>            Assignee: Xavier Hanin
>
> I have build the trunk of Ivy today in order to be used in IvyDE : svn revision 611768
> And a resolve threw a NPE : 
> {noformat}
> com.company#project;latest.development: java.lang.NullPointerException at org.apache.ivy.plugins.resolver.AbstractResourceResolver.findResource(AbstractResourceResolver.java:161)
> {noformat}
> With the command line, with ant, I still use Ivy1.4, and it works.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (IVY-701) NPE while resolving dependencies

Posted by "Nicolas Lalevée (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12559384#action_12559384 ] 

Nicolas Lalevée commented on IVY-701:
-------------------------------------

Updated Ivy to the revision 612380. Now I have :
{{noformat}}
com.joost#openrdf-adapter;latest.development: not found
{{noformat}}

So it seems that Ivy2 is not fully backward compatible with Ivy1. Maybe this topic may deserve a specific page in the doc ?

> NPE while resolving dependencies
> --------------------------------
>
>                 Key: IVY-701
>                 URL: https://issues.apache.org/jira/browse/IVY-701
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-beta-2
>            Reporter: Nicolas Lalevée
>            Assignee: Xavier Hanin
>
> I have build the trunk of Ivy today in order to be used in IvyDE : svn revision 611768
> And a resolve threw a NPE : 
> {noformat}
> com.company#project;latest.development: java.lang.NullPointerException at org.apache.ivy.plugins.resolver.AbstractResourceResolver.findResource(AbstractResourceResolver.java:161)
> {noformat}
> With the command line, with ant, I still use Ivy1.4, and it works.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (IVY-701) NPE while resolving dependencies

Posted by "Xavier Hanin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12559141#action_12559141 ] 

Xavier Hanin commented on IVY-701:
----------------------------------

The cache structure has changed between 1.4 and 2.0, so I don't recommend sharing the cache between the two. But this shouldn't end up in a NPE in any case, so the bug is valid.

> NPE while resolving dependencies
> --------------------------------
>
>                 Key: IVY-701
>                 URL: https://issues.apache.org/jira/browse/IVY-701
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-beta-2
>            Reporter: Nicolas Lalevée
>
> I have build the trunk of Ivy today in order to be used in IvyDE : svn revision 611768
> And a resolve threw a NPE : 
> {noformat}
> com.company#project;latest.development: java.lang.NullPointerException at org.apache.ivy.plugins.resolver.AbstractResourceResolver.findResource(AbstractResourceResolver.java:161)
> {noformat}
> With the command line, with ant, I still use Ivy1.4, and it works.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (IVY-701) NPE while resolving dependencies

Posted by "Xavier Hanin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Xavier Hanin resolved IVY-701.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0-beta-2

OK, so now the error is slightly better (anything is better than NPE :-)), and I guess that with debug level messages you would have more details, helping to diagnose the problem comes from using the same cache for Ivy 1.x and 2.x.

So the only remaining issue IMO is to document the cache incompatibility.

> NPE while resolving dependencies
> --------------------------------
>
>                 Key: IVY-701
>                 URL: https://issues.apache.org/jira/browse/IVY-701
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-beta-2
>            Reporter: Nicolas Lalevée
>            Assignee: Xavier Hanin
>             Fix For: 2.0.0-beta-2
>
>
> I have build the trunk of Ivy today in order to be used in IvyDE : svn revision 611768
> And a resolve threw a NPE : 
> {noformat}
> com.company#project;latest.development: java.lang.NullPointerException at org.apache.ivy.plugins.resolver.AbstractResourceResolver.findResource(AbstractResourceResolver.java:161)
> {noformat}
> With the command line, with ant, I still use Ivy1.4, and it works.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (IVY-701) NPE while resolving dependencies

Posted by "Nicolas Lalevée (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12559122#action_12559122 ] 

Nicolas Lalevée commented on IVY-701:
-------------------------------------

Or is this my fault is trying to use both Ivy 1.4 and Ivy 2 on the same cache ?

> NPE while resolving dependencies
> --------------------------------
>
>                 Key: IVY-701
>                 URL: https://issues.apache.org/jira/browse/IVY-701
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-beta-2
>            Reporter: Nicolas Lalevée
>
> I have build the trunk of Ivy today in order to be used in IvyDE : svn revision 611768
> And a resolve threw a NPE : 
> {noformat}
> com.company#project;latest.development: java.lang.NullPointerException at org.apache.ivy.plugins.resolver.AbstractResourceResolver.findResource(AbstractResourceResolver.java:161)
> {noformat}
> With the command line, with ant, I still use Ivy1.4, and it works.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (IVY-701) NPE while resolving dependencies

Posted by "Nicolas Lalevée (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12559384#action_12559384 ] 

hibou edited comment on IVY-701 at 1/16/08 12:24 AM:
---------------------------------------------------------------

Updated Ivy to the revision 612380. Now I have :
{noformat}
com.company#project;latest.development: not found
{noformat}

So it seems that Ivy2 is not fully backward compatible with Ivy1. Maybe this topic may deserve a specific page in the doc ?

      was (Author: hibou):
    Updated Ivy to the revision 612380. Now I have :
{noformat}
com.joost#openrdf-adapter;latest.development: not found
{noformat}

So it seems that Ivy2 is not fully backward compatible with Ivy1. Maybe this topic may deserve a specific page in the doc ?
  
> NPE while resolving dependencies
> --------------------------------
>
>                 Key: IVY-701
>                 URL: https://issues.apache.org/jira/browse/IVY-701
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-beta-2
>            Reporter: Nicolas Lalevée
>            Assignee: Xavier Hanin
>
> I have build the trunk of Ivy today in order to be used in IvyDE : svn revision 611768
> And a resolve threw a NPE : 
> {noformat}
> com.company#project;latest.development: java.lang.NullPointerException at org.apache.ivy.plugins.resolver.AbstractResourceResolver.findResource(AbstractResourceResolver.java:161)
> {noformat}
> With the command line, with ant, I still use Ivy1.4, and it works.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (IVY-701) NPE while resolving dependencies

Posted by "Nicolas Lalevée (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12559396#action_12559396 ] 

Nicolas Lalevée commented on IVY-701:
-------------------------------------

Hum, bad news, it is in fact still behaving strangely, I will create another issue with more details.

> NPE while resolving dependencies
> --------------------------------
>
>                 Key: IVY-701
>                 URL: https://issues.apache.org/jira/browse/IVY-701
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-beta-2
>            Reporter: Nicolas Lalevée
>            Assignee: Xavier Hanin
>             Fix For: 2.0.0-beta-2
>
>
> I have build the trunk of Ivy today in order to be used in IvyDE : svn revision 611768
> And a resolve threw a NPE : 
> {noformat}
> com.company#project;latest.development: java.lang.NullPointerException at org.apache.ivy.plugins.resolver.AbstractResourceResolver.findResource(AbstractResourceResolver.java:161)
> {noformat}
> With the command line, with ant, I still use Ivy1.4, and it works.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.