incubator-ivy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles Scokart (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (IVY-618) NPE in case of eviction
Date Mon, 08 Oct 2007 14:20:51 GMT

     [ https://issues.apache.org/jira/browse/IVY-618?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Gilles Scokart resolved IVY-618.
--------------------------------

    Resolution: Fixed

I have added a unit test that triggered to problem and a fix for it.
The fix doesn't roolback the change in IVY-603.  It just handle the case where the desriptors
are not loaded by reporting a "?" for the status.

> NPE in case of eviction
> -----------------------
>
>                 Key: IVY-618
>                 URL: https://issues.apache.org/jira/browse/IVY-618
>             Project: Ivy
>          Issue Type: Bug
>    Affects Versions: 2.0.0-beta-1
>            Reporter: Gilles Scokart
>            Priority: Blocker
>             Fix For: 2.0.0-beta-1
>
>
> Since the fix of IVY-603, we have NPE in some cases when we have evicted modules.
> (I have slightly updated the code to have a more precise trace)
> java.lang.NullPointerException: getDescriptor() is null for [ junit | junit | 3.8.1 ]
>         at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:256)
>         at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:193)
>         at org.apache.ivy.Ivy.resolve(Ivy.java:256)
>         at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:212)
>         at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:281)
>         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:615)
>         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
>         at org.apache.tools.ant.Task.perform(Task.java:348)
>         at org.apache.tools.ant.Target.execute(Target.java:357)
>         at org.apache.tools.ant.Target.performTasks(Target.java:385)
>         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
>         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
>         at org.apache.tools.ant.Main.runBuild(Main.java:698)
>         at org.apache.tools.ant.Main.startAnt(Main.java:199)
>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
> Reverting the change done to ResolveEngine.java in IVY-603 seems to fix the regression.
 But the right fix might be to fill the descriptor even when the module is evicted...

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


Mime
View raw message