ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xavier Hanin" <xavier.ha...@gmail.com>
Subject Re: Null Pointer during retrieve
Date Wed, 06 Feb 2008 20:42:30 GMT
Mmm, you seem to have several problems, including some in your resolution
cache. Could you open a bug and provide more information on your settings
and module metadata with which you get this error?

Xavier

On Feb 6, 2008 4:17 PM, Neil Lott <neilmatthewlott@yahoo.com> wrote:

> Ok I got past that error, I'm not quite sure why I need to add
> override="true" as an attribute as this statement worked prior to
> installing
> the new ivy.jar
>
> <ivy:settings id="ivy.instance" file="${ivy.settings.file}"
> override="true"/>
>
> Here's the stacktrace and it looks like it happens for each configuration
>
>
> ivy:resolve]     java.lang.NullPointerException at
>
> org.apache.ivy.core.cache.DefaultRepositoryCacheManager.cacheModuleDescripto
> r(DefaultRepositoryCacheManager.java:893)
> [ivy:resolve]     java.lang.NullPointerException at
>
> org.apache.ivy.core.cache.DefaultRepositoryCacheManager.cacheModuleDescripto
> r(DefaultRepositoryCacheManager.java:893)
> [ivy:resolve] resolving dependencies for configuration 'test'
> [ivy:resolve] WARN: Error while parsing configuration resolve report
>
> /Users/neil/Business/SnowyRangeConsulting/projects/twc/thirdparty/ivy/cache/
> twc-mas-coredn-btm-test.xml
> [ivy:resolve] java.text.ParseException: failed to parse report:
>
> /Users/neil/Business/SnowyRangeConsulting/projects/twc/thirdparty/ivy/cache/
> twc-mas-coredn-btm-test.xml: null
> [ivy:resolve]     at
> org.apache.ivy.plugins.report.XmlReportParser.parse(XmlReportParser.java
> :299
> )
> [ivy:resolve]     at
> org.apache.ivy.core.report.ConfigurationResolveReport
> .<init>(ConfigurationRe
> solveReport.java:82)
> [ivy:resolve]     at
> org.apache.ivy.core.resolve.ResolveEngine.getDependencies(
> ResolveEngine.java
> :470)
> [ivy:resolve]     at
> org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:234)
> [ivy:resolve]     at
> org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:192)
> [ivy:resolve]     at org.apache.ivy.Ivy.resolve(Ivy.java:506)
> [ivy:resolve]     at
> org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:230)
> [ivy:resolve]     at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:275)
> [ivy:resolve]     at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> [ivy:resolve]     at org.apache.tools.ant.Task.perform(Task.java:364)
> [ivy:resolve]     at org.apache.tools.ant.Target.execute(Target.java:341)
> [ivy:resolve]     at
> org.apache.tools.ant.Target.performTasks(Target.java:369)
> [ivy:resolve]     at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
> [ivy:resolve]     at
> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> [ivy:resolve]     at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(
> DefaultExecutor.j
> ava:40)
> [ivy:resolve]     at
> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> [ivy:resolve]     at org.apache.tools.ant.Main.runBuild(Main.java:668)
> [ivy:resolve]     at org.apache.tools.ant.Main.startAnt(Main.java:187)
> [ivy:resolve]     at
> org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
> [ivy:resolve]     at
> org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> [ivy:resolve] Caused by: java.lang.NumberFormatException: null
> [ivy:resolve]     at java.lang.Long.parseLong(Long.java:372)
> [ivy:resolve]     at java.lang.Long.parseLong(Long.java:461)
> [ivy:resolve]     at
>
> org.apache.ivy.plugins.report.XmlReportParser$SaxXmlReportParser$1.startElem
> ent(XmlReportParser.java:192)
> [ivy:resolve]     at
> org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
> [ivy:resolve]     at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement
> (Unkno
> wn Source)
> [ivy:resolve]     at
>
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
> her.dispatch(Unknown Source)
> [ivy:resolve]     at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
> [ivy:resolve]     at
> org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> [ivy:resolve]     at
> org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> [ivy:resolve]     at org.apache.xerces.parsers.XMLParser.parse(Unknown
> Source)
> [ivy:resolve]     at
> org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> [ivy:resolve]     at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
> [ivy:resolve]     at javax.xml.parsers.SAXParser.parse(SAXParser.java:311)
> [ivy:resolve]     at
> org.apache.ivy.plugins.report.XmlReportParser$SaxXmlReportParser.parse
> (XmlRe
> portParser.java:77)
> [ivy:resolve]     at
> org.apache.ivy.plugins.report.XmlReportParser.parse(XmlReportParser.java
> :297
> )
> [ivy:resolve]     ... 19 more
> [ivy:resolve] == resolving dependencies for
> twc#mas-coredn-btm;working@flicker.local [test]
>
>
>
> On 2/6/08 8:09 AM, "Neil Lott" <neilmatthewlott@yahoo.com> wrote:
>
> > 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.
> >>>
> >>
> >>
> >
> >
>
>
>


-- 
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://ant.apache.org/ivy/
http://www.xoocode.org/

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message