ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carlton Brown (JIRA)" <j...@apache.org>
Subject [jira] Created: (IVY-774) NullPointerException during resolve when resolver references undefined cache
Date Fri, 14 Mar 2008 18:56:26 GMT
NullPointerException during resolve when resolver references undefined cache
----------------------------------------------------------------------------

                 Key: IVY-774
                 URL: https://issues.apache.org/jira/browse/IVY-774
             Project: Ivy
          Issue Type: Bug
          Components: Core
    Affects Versions: 2.0.0-beta-2
         Environment: Windows/JDK1.5
            Reporter: Carlton Brown
            Priority: Minor
             Fix For: unspecified


If a resolver references a cache that is not already defined, an NPE occurs.   Such as:
<ibiblio cache="MyCache">
...
</ibiblio>

If MyCache is not defined in <caches> then you get something like this:
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] ::          UNRESOLVED DEPENDENCIES         ::
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] :: commons-lang#commons-lang;2.0: java.lang.NullPointerException at org.apache.ivy.core.resolve.IvyNode.loadData(IvyNode.java:230)
[ivy:resolve] :: junit#junit;3.8.1: java.lang.NullPointerException at org.apache.ivy.core.resolve.IvyNode.loadData(IvyNode.java:230)
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
Class org.apache.tools.ant.BuildEvent loaded from parent loader (parentFirst)

BUILD FAILED
C:\allworkspaces\ivy-poc\hellorm\hello-B\src\build-wrapper.xml:53: impossible to resolve dependencies:
	resolve failed - see output for details
	at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:315)
	at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:275)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	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.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
	at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
	at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
Caused by: resolve failed - see output for details
	at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:237)
	... 17 more
--- Nested Exception ---
resolve failed - see output for details
	at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:237)
	at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:275)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	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.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
	at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
	at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)

Total time: 3 seconds

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