ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Neil Lott <neilmatthewl...@yahoo.com>
Subject Re: Null Pointer during retrieve
Date Wed, 06 Feb 2008 15:09:59 GMT
Hi Xavier,

Thanks for your help.  I downloaded Ivy from svn and am using the trunk jar.
I now have a different issue that's preventing me from running the
ivy-resolve to try out the stacktrace.

BUILD FAILED
/Users/neil/Business/SnowyRangeConsulting/projects/twc/depot/server/releases
/main/common-ivy.xml:24: overriding a previous definition of ivy:settings
with the id 'ivy.atgw.instance' is not allowed when using
override='notallowed'.
    at org.apache.ivy.ant.IvyAntSettings.execute(IvyAntSettings.java:262)
    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.j
ava: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)


Neil


On 2/6/08 12:07 AM, "Xavier Hanin" <xavier.hanin@gmail.com> wrote:

> On Feb 6, 2008 12:23 AM, Neil Lott <neil.lott@twcable.com> wrote:
> 
>> Hi everyone,
>> 
>> I have two modules in my project and I¹m having a problem resolving a
>> dependency between them.  Any ideas why the Null Pointers?
> 
> Mm, difficult to say, Ivy swallows the exception stack trace, which is
> really too bad. We have to improve that...
> 
> [some minutes later]
> 
> I've just checked in a change in Ivy to give better error reporting in the
> chain resolver, which seems to be where the exception was swallowed. You
> should now get more detailed error message in info level, and full stack
> trace in verbose mode. Is it possible for you to build Ivy from trunk and
> test your environment with this freshly build version?
> 
> Xavier
> 
> 
>> 
>> [ivy:resolve]     [SUCCESSFUL ]
>> twc#mas-coredn-ondemand#main;5.1!mas-coredn-ondemand.original.pom (1360ms)
>> [ivy:resolve] problem occured while resolving dependency:
>> twc#mas-coredn-ondemand#main;5.1 {*=[*]} with shared:
>> java.lang.NullPointerException
>> [ivy:resolve] local: no namespace defined: using system
>> [ivy:resolve]     no ivy file in cache for
>> twc#mas-coredn-ondemand#main;5.1:
>> tried
>> 
>> /Users/neil/Business/SnowyRangeConsulting/projects/twc/thirdparty/ivy/cache/
>> twc/mas-coredn-ondemand/ivy-5.1.xml
>> [ivy:resolve] local: no latest strategy defined: using default
>> [ivy:resolve]      trying
>> 
>> /Users/neil/Business/SnowyRangeConsulting/projects/twc/depot/server/releases
>> /main/repository/twc/mas-coredn-ondemand/main/5.1/mas-
>> coredn-ondemand-5.1.po
>> m
>> [ivy:resolve]         tried
>> 
>> /Users/neil/Business/SnowyRangeConsulting/projects/twc/depot/server/releases
>> /main/repository/twc/mas-coredn-ondemand/main/5.1/mas-
>> coredn-ondemand-5.1.po
>> m
>> [ivy:resolve]     local: found md file for
>> twc#mas-coredn-ondemand#main;5.1
>> [ivy:resolve]         =>
>> 
>> /Users/neil/Business/SnowyRangeConsulting/projects/twc/depot/server/releases
>> /main/repository/twc/mas-coredn-ondemand/main/5.1/mas-
>> coredn-ondemand-5.1.po
>> m (5.1)
>> [ivy:resolve]     parser = pom parser
>> [ivy:resolve]     no ivy file in cache for
>> twc#mas-coredn-ondemand#main;5.1:
>> tried
>> 
>> /Users/neil/Business/SnowyRangeConsulting/projects/twc/thirdparty/ivy/cache/
>> twc/mas-coredn-ondemand/ivy-5.1.xml
>> [ivy:resolve] downloading
>> 
>> /Users/neil/Business/SnowyRangeConsulting/projects/twc/depot/server/releases
>> /main/repository/twc/mas-coredn-ondemand/main/5.1/mas-
>> coredn-ondemand-5.1.po
>> m ...
>> [ivy:resolve]     local: downloading
>> 
>> /Users/neil/Business/SnowyRangeConsulting/projects/twc/depot/server/releases
>> /main/repository/twc/mas-coredn-ondemand/main/5.1/mas-
>> coredn-ondemand-5.1.po
>> m
>> [ivy:resolve]         to
>> 
>> /Users/neil/Business/SnowyRangeConsulting/projects/twc/thirdparty/ivy/cache/
>> twc/mas-coredn-ondemand/poms/mas-coredn-ondemand.original-5.1.pom.part
>> [ivy:resolve] sha1 file found for
>> 
>> /Users/neil/Business/SnowyRangeConsulting/projects/twc/depot/server/releases
>> /main/repository/twc/mas-coredn-ondemand/main/5.1/mas-
>> coredn-ondemand-5.1.po
>> m: checking...
>> [ivy:resolve]     local: downloading
>> 
>> /Users/neil/Business/SnowyRangeConsulting/projects/twc/depot/server/releases
>> /main/repository/twc/mas-coredn-ondemand/main/5.1/mas-
>> coredn-ondemand-5.1.po
>> m.sha1
>> [ivy:resolve]         to /tmp/ivytmp32234sha1
>> [ivy:resolve] sha1 OK for
>> 
>> /Users/neil/Business/SnowyRangeConsulting/projects/twc/depot/server/releases
>> /main/repository/twc/mas-coredn-ondemand/main/5.1/mas-
>> coredn-ondemand-5.1.po
>> m
>> [ivy:resolve]     [SUCCESSFUL ]
>> twc#mas-coredn-ondemand#main;5.1!mas-coredn-ondemand.original.pom (6ms)
>> [ivy:resolve] problem occured while resolving dependency:
>> twc#mas-coredn-ondemand#main;5.1 {*=[*]} with local:
>> java.lang.NullPointerException
>> [ivy:resolve] == resolving dependencies
>> twc#mas-coredn-btm#main;working@flicker.local-
>>> twc#mas-coredn-ondemand#main;
>> 5.1 [interface->*]
>> [ivy:resolve] loadData of twc#mas-coredn-ondemand#main;5.1 of
>> rootConf=interface
>> [ivy:resolve] Node has problem.  Skip loading
>> [ivy:resolve] problem : several problems occured while resolving
>> dependency:
>> twc#mas-coredn-ondemand#main;5.1 {*=[*]}:
>> [ivy:resolve] java.lang.NullPointerException
>> [ivy:resolve] java.lang.NullPointerException
>> 
>> So I keep seeing this:
>> 
>> [ivy:retrieve] :: problems summary ::
>> [ivy:retrieve] :::: WARNINGS
>> [ivy:retrieve]         ::::::::::::::::::::::::::::::::::::::::::::::
>> [ivy:retrieve]         ::          UNRESOLVED DEPENDENCIES         ::
>> [ivy:retrieve]         ::::::::::::::::::::::::::::::::::::::::::::::
>> [ivy:retrieve]         :: twc#mas-coredn-ondemand#main;latest.integration:
>> several problems occured while resolving dependency:
>> twc#mas-coredn-ondemand#main;latest.integration {*=[*]}:
>> [ivy:retrieve] java.lang.NullPointerException
>> [ivy:retrieve] java.lang.NullPointerException
>> [ivy:retrieve]         ::::::::::::::::::::::::::::::::::::::::::::::
>> [ivy:retrieve]
>> [ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
>> 
>> BUILD FAILED
>> 
>> /Users/neil/Business/SnowyRangeConsulting/projects/twc/depot/server/releases
>> /main/common-ivy.xml:28: impossible to resolve dependencies:
>>    resolve failed - see output for details
>>    at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:297)
>>    at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:275)
>>    at
>> org.apache.ivy.ant.IvyPostResolveTask.ensureResolved(
>> IvyPostResolveTask.java
>> :201)
>>    at
>> org.apache.ivy.ant.IvyPostResolveTask.prepareAndCheck(
>> IvyPostResolveTask.jav
>> a:147)
>>    at org.apache.ivy.ant.IvyRetrieve.doExecute(IvyRetrieve.java:45)
>>    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.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.j
>> ava: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: resolve failed - see output for details
>>    at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:219)
>>    ... 17 more
>> --- Nested Exception ---
>> resolve failed - see output for details
>>    at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:219)
>>    at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:275)
>>    at
>> org.apache.ivy.ant.IvyPostResolveTask.ensureResolved(
>> IvyPostResolveTask.java
>> :201)
>>    at
>> org.apache.ivy.ant.IvyPostResolveTask.prepareAndCheck(
>> IvyPostResolveTask.jav
>> a:147)
>>    at org.apache.ivy.ant.IvyRetrieve.doExecute(IvyRetrieve.java:45)
>>    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.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.j
>> ava: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 E-mail and any of its attachments may contain Time Warner
>> Cable proprietary information, which is privileged, confidential,
>> or subject to copyright belonging to Time Warner Cable. This E-mail
>> is intended solely for the use of the individual or entity to which
>> it is addressed. If you are not the intended recipient of this
>> E-mail, you are hereby notified that any dissemination,
>> distribution, copying, or action taken in relation to the contents
>> of and attachments to this E-mail is strictly prohibited and may be
>> unlawful. If you have received this E-mail in error, please notify
>> the sender immediately and permanently delete the original and any
>> copy of this E-mail and any printout.
>> 
> 
> 



Mime
View raw message