ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xavier Hanin (JIRA)" <j...@apache.org>
Subject [jira] Updated: (IVY-754) sftp/ssh/vfs-ftp resolver throws nullpointerexception if artifact not found
Date Thu, 28 Feb 2008 17:35:51 GMT

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

Xavier Hanin updated IVY-754:
-----------------------------

    Fix Version/s: 2.0

> sftp/ssh/vfs-ftp resolver throws nullpointerexception if artifact not found
> ---------------------------------------------------------------------------
>
>                 Key: IVY-754
>                 URL: https://issues.apache.org/jira/browse/IVY-754
>             Project: Ivy
>          Issue Type: Bug
>    Affects Versions: 2.0.0-beta-1
>         Environment: linux
>            Reporter: Tycho Lamerigts
>            Priority: Critical
>             Fix For: 2.0
>
>
> The following code dies with a nullpointerexception if the artifiact is not found (verbose
logs attached below).
>  
>    <ivy:resolve inline="true"
>                      organisation="${ivy.organisation}"
>                      module="${ivy.module}"
>                      type="jar"
>                      revision="${version-major}"
>                      transitive="false"
>                      haltonfailure="true"
>                      failureproperty="bcc-resolve-fail"
>                      settingsRef="ivy.publish.instance"
>                      resolveId="bcc-resolve"/>
> The expected behavior is to set the failureproperty and continue.
> Loading jar:file:/home/tyla/data/build-devel-trunk/dist/lib/ivy-2.0.0-beta1.jar!/org/apache/ivy/core/settings/ivy.properties
> :: loading settings :: file = /home/tyla/data/build-devel-trunk/dist/etc/ivy/ivy-publish.xml
> no default cache defined: set to /home/tyla/.ivy2/cache
> including file: /home/tyla/data/build-devel-trunk/dist/etc/ivy/ivysettings-shared.xml
> including file: /home/tyla/data/build-devel-trunk/dist/etc/ivy/ivysettings-local.xml
> including file: /home/tyla/data/build-devel-trunk/dist/etc/ivy/ivysettings-main-chain.xml
> including file: /home/tyla/data/build-devel-trunk/dist/etc/ivy/ivysettings-default-chain.xml
> settings loaded (46ms)
>         default cache: /home/tyla/.ivy/cache
>         default resolver: null
>         -- 7 resolvers:
>         default [chain] [local-chain, imc-ivy-rep-chain]
>         local-chain [chain] [local-submodules, local]
>         ivy-rep [sftp]
>         local [file]
>         imc-ivy-rep-chain [chain] [ivy-rep]
>         local-submodules [file]
>         main [chain] []
> [ivy:resolve]           tried ../[submodule]/target/system/ivy.xml
> [ivy:resolve]           tried ../[submodule]/target/system/gui.jar
> [ivy:resolve]           tried ../[submodule]/target/gui.jar
> [ivy:resolve]   local-submodules: no ivy file nor artifact found for gui#gui;13
> [ivy:resolve]           tried /home/tyla/.ivy-local-repository/gui/gui/13/ivy.xml
> [ivy:resolve]           tried /home/tyla/.ivy-local-repository/gui/gui/13/gui.jar
> [ivy:resolve]   local: no ivy file nor artifact found for gui#gui;13
> [ivy:resolve]           tried /home/svn-deliveries/gui/gui/13/release/ivy.xml
> [ivy:resolve] :: SSH :: connecting to panoramix...
> [ivy:resolve] :: SSH :: connected to panoramix!
> [ivy:resolve] :: SFTP :: connected to panoramix!
> [ivy:resolve]           tried /home/svn-deliveries/gui/gui/13/release/gui.jar
> [ivy:resolve]   ivy-rep: no ivy file nor artifact found for gui#gui;13
>        [if] Error in class net.sf.antcontrib.logic.IfTask
> BUILD FAILED
> /home/tyla/data/build-devel-trunk/dist/etc/ivy-release.xml:47: impossible to resolve
dependencies:
>         java.lang.NullPointerException
>         at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:297)
>         at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:275)
>         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>         at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
>         at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
>         at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:123)
>         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>         at org.apache.tools.ant.Target.execute(Target.java:341)
>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>         at org.apache.tools.ant.Main.runBuild(Main.java:668)
>         at org.apache.tools.ant.Main.startAnt(Main.java:187)
>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> Caused by: java.lang.NullPointerException
>         at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:152)
>         at org.apache.ivy.Ivy.resolve(Ivy.java:476)
>         at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:197)
>         ... 21 more
> --- Nested Exception ---
> java.lang.NullPointerException
>         at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:152)
>         at org.apache.ivy.Ivy.resolve(Ivy.java:476)
>         at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:197)
>         at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:275)
>         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>         at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
>         at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
>         at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:123)
>         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>         at org.apache.tools.ant.Target.execute(Target.java:341)
>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>         at org.apache.tools.ant.Main.runBuild(Main.java:668)
>         at org.apache.tools.ant.Main.startAnt(Main.java:187)
>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

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