incubator-ivy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xavier Hanin (JIRA)" <j...@apache.org>
Subject [jira] Commented: (IVY-379) NullPointerException during resolve
Date Fri, 23 Feb 2007 10:15:05 GMT

    [ https://issues.apache.org/jira/browse/IVY-379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12475307
] 

Xavier Hanin commented on IVY-379:
----------------------------------

I've modified the code to help isolate the bug, but I think it is fixed now. Indeed I've done
refactorings on the dependency resolution algorithm, and I think it should fix the problem.


I suspect the cause of the NPE to be that the root was null. But now the root cannot be null
anymore on an IvyNode, because it is assigned at IvyNode construction and it never changes.

Therefore I let the issue open for the moment, but if nobody reproduces it with the latest
code base, I'll mark it resolved in Ivy 1.5.

> NullPointerException during resolve
> -----------------------------------
>
>                 Key: IVY-379
>                 URL: https://issues.apache.org/jira/browse/IVY-379
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.4
>         Environment: JDK 1.5 on Linux
>            Reporter: John Williams
>             Fix For: 1.5
>
>
> Sorry I can't be more specific at the moment, but here is the stack trace:
> /shared/lcc94/disk1/work/devBuilds/CC/build-generic.xml:70: The following error occurred
while executing this line:
> /shared/lcc94/disk1/work/devBuilds/CC/checkout/palantir/build/ant-support/lcc-ant-targets.xml:77:
impossible to resolve dependencies: java.lang.NullPointerException
> 	at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:541)
> 	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:418)
> 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
> 	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:585)
> 	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)
> Caused by: /shared/lcc94/disk1/work/devBuilds/CC/checkout/palantir/build/ant-support/lcc-ant-targets.xml:77:
impossible to resolve dependencies: java.lang.NullPointerException
> 	at fr.jayasoft.ivy.ant.IvyResolve.execute(IvyResolve.java:208)
> 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
> 	at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	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.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
> 	at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
> 	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
> 	... 17 more
> Caused by: java.lang.NullPointerException
> 	at fr.jayasoft.ivy.IvyNode.isEvicted(IvyNode.java:367)
> 	at fr.jayasoft.ivy.Ivy.fetchDependencies(Ivy.java:1410)
> 	at fr.jayasoft.ivy.Ivy.getDependencies(Ivy.java:1332)
> 	at fr.jayasoft.ivy.Ivy.resolve(Ivy.java:1125)
> 	at fr.jayasoft.ivy.Ivy.resolve(Ivy.java:1082)
> 	at fr.jayasoft.ivy.ant.IvyResolve.execute(IvyResolve.java:159)
> 	... 29 more
> --- Nested Exception ---
> /shared/lcc94/disk1/work/devBuilds/CC/checkout/palantir/build/ant-support/lcc-ant-targets.xml:77:
impossible to resolve dependencies: java.lang.NullPointerException
> 	at fr.jayasoft.ivy.ant.IvyResolve.execute(IvyResolve.java:208)
> 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
> 	at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	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.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
> 	at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
> 	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
> 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
> 	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:585)
> 	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)
> Caused by: java.lang.NullPointerException
> 	at fr.jayasoft.ivy.IvyNode.isEvicted(IvyNode.java:367)
> 	at fr.jayasoft.ivy.Ivy.fetchDependencies(Ivy.java:1410)
> 	at fr.jayasoft.ivy.Ivy.getDependencies(Ivy.java:1332)
> 	at fr.jayasoft.ivy.Ivy.resolve(Ivy.java:1125)
> 	at fr.jayasoft.ivy.Ivy.resolve(Ivy.java:1082)
> 	at fr.jayasoft.ivy.ant.IvyResolve.execute(IvyResolve.java:159)
> 	... 29 more
> --- Nested Exception ---
> java.lang.NullPointerException
> 	at fr.jayasoft.ivy.IvyNode.isEvicted(IvyNode.java:367)
> 	at fr.jayasoft.ivy.Ivy.fetchDependencies(Ivy.java:1410)
> 	at fr.jayasoft.ivy.Ivy.getDependencies(Ivy.java:1332)
> 	at fr.jayasoft.ivy.Ivy.resolve(Ivy.java:1125)
> 	at fr.jayasoft.ivy.Ivy.resolve(Ivy.java:1082)
> 	at fr.jayasoft.ivy.ant.IvyResolve.execute(IvyResolve.java:159)
> 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
> 	at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	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.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
> 	at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
> 	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
> 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
> 	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:585)
> 	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)

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