ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Kurpick (Created) (JIRA)" <>
Subject [jira] [Created] (IVY-1343) NullPointerExeption in AbstractOSGiResolver
Date Tue, 17 Apr 2012 06:51:19 GMT
NullPointerExeption in AbstractOSGiResolver

                 Key: IVY-1343
             Project: Ivy
          Issue Type: Bug
          Components: Core
    Affects Versions: 2.3.0-RC1, 2.3.0, trunk
         Environment: Ubuntu 2.6.32-25-generic-pae,
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Server VM (build 20.1-b02, mixed mode)

Apache Ant version 1.8.0 compiled on April 9 2010
            Reporter: Thomas Kurpick
            Priority: Critical

A NullPointerException is thrown, if I try to resolve a dependency after I cleared the cache.

Steps to reproduce:

1. create a ivysettings.xml with a chain including a ibiblio and an updatesite as resolver.
2. create a dependency to a artifact that can be found with the ibiblio resolver.
3. call ivy retrieve

actual result:
 - no dependency is resolved and retrieved and a NullPointerException is thrown

expected result:
 - dependency is resolved and retrieved from ibiblio

See also the attached patch and test case.

problem occurred while resolving dependency:;4.0.1 {compile=[*, !sources,
!javadoc]} with p2-repos: java.lang.NullPointerException
	at org.apache.ivy.osgi.repo.AbstractOSGiResolver.findIvyFileRef(
	at org.apache.ivy.plugins.resolver.BasicResolver.getDependency(
	at org.apache.ivy.plugins.resolver.ChainResolver.getDependency(
	at org.apache.ivy.core.resolve.IvyNode.loadData(
	at org.apache.ivy.core.resolve.VisitNode.loadData(
	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(
	at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(
	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(
	at org.apache.ivy.core.resolve.ResolveEngine.getDependencies(
	at org.apache.ivy.core.resolve.ResolveEngine.resolve(
	at org.apache.ivy.core.resolve.ResolveEngine.resolve(
	at org.apache.ivy.Ivy.resolve(
	at org.apache.ivy.Main.main(

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message