[ https://issues.apache.org/jira/browse/IVY-995?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maarten Coene resolved IVY-995. ------------------------------- Resolution: Fixed Fix Version/s: 2.0 Thanks for the report. I've committed a fix into SVN (2.0.0 branch) Maarten > Nullpointer at PomModuleDescriptorBuilder.addDependency > ------------------------------------------------------- > > Key: IVY-995 > URL: https://issues.apache.org/jira/browse/IVY-995 > Project: Ivy > Issue Type: Bug > Components: Core > Affects Versions: 2.0-RC2 > Environment: jdk 1.5.0_13 > ant 1.7.1 > osx 10.5.5 > Reporter: lalyos > Assignee: Maarten Coene > Fix For: 2.0 > > > While iwas trying to resolve a new dependency on > <dependency name="jwebunit-htmlunit-plugin" > org="net.sourceforge.jwebunit" rev="1.5" conf="test->default"/> > i got the following nullpointer exception: > [ivy:retrieve] public3: found md file for > net.sourceforge.jwebunit#jwebunit-htmlunit-plugin;1.5 > [ivy:retrieve] => > http://repo1.maven.org/maven2/net/sourceforge/jwebunit/jwebunit-htmlunit-plugin/1.5/jwebunit-htmlunit-plugin-1.5.pom > (1.5) > [ivy:retrieve] downloading > http://repo1.maven.org/maven2/net/sourceforge/jwebunit/jwebunit-htmlunit-plugin/1.5/jwebunit-htmlunit-plugin-1.5.pom > ... > [ivy:retrieve] public3: downloading > http://repo1.maven.org/maven2/net/sourceforge/jwebunit/jwebunit-htmlunit-plugin/1.5/jwebunit-htmlunit-plugin-1.5.pom > [ivy:retrieve] public3: downloading > http://repo1.maven.org/maven2/net/sourceforge/jwebunit/jwebunit-htmlunit-plugin/1.5/jwebunit-htmlunit-plugin-1.5.pom.sha1 > [ivy:retrieve] sha1 OK for > http://repo1.maven.org/maven2/net/sourceforge/jwebunit/jwebunit-htmlunit-plugin/1.5/jwebunit-htmlunit-plugin-1.5.pom > [ivy:retrieve] [SUCCESSFUL ] > net.sourceforge.jwebunit#jwebunit-htmlunit-plugin;1.5!jwebunit-htmlunit-plugin.pom(pom.original) > (588ms) > [ivy:retrieve] default: Checking cache for: dependency: > net.sourceforge.jwebunit#jwebunit;1.5 {} > [ivy:retrieve] default: module revision found in cache: > net.sourceforge.jwebunit#jwebunit;1.5 > [ivy:retrieve] problem occured while resolving dependency: > net.sourceforge.jwebunit#jwebunit-htmlunit-plugin;1.5 {test=[default]} with > public3: java.lang.NullPointerException > [ivy:retrieve] at > org.apache.ivy.plugins.parser.m2.PomModuleDescriptorBuilder.addDependency(PomModuleDescriptorBuilder.java:291) > [ivy:retrieve] at > org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:235) > [ivy:retrieve] at > org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:105) > [ivy:retrieve] at > org.apache.ivy.core.cache.DefaultRepositoryCacheManager$MyModuleDescriptorProvider.provideModule(DefaultRepositoryCacheManager.java:633) > [ivy:retrieve] at > org.apache.ivy.core.cache.ModuleDescriptorMemoryCache.getStale(ModuleDescriptorMemoryCache.java:68) > [ivy:retrieve] at > org.apache.ivy.core.cache.DefaultRepositoryCacheManager.getStaledMd(DefaultRepositoryCacheManager.java:650) > [ivy:retrieve] at > org.apache.ivy.core.cache.DefaultRepositoryCacheManager.cacheModuleDescriptor(DefaultRepositoryCacheManager.java:939) > [ivy:retrieve] at > org.apache.ivy.plugins.resolver.BasicResolver.parse(BasicResolver.java:538) > [ivy:retrieve] at > org.apache.ivy.plugins.resolver.BasicResolver.getDependency(BasicResolver.java:261) > [ivy:retrieve] at > org.apache.ivy.plugins.resolver.IBiblioResolver.getDependency(IBiblioResolver.java:500) > [ivy:retrieve] at > org.apache.ivy.plugins.resolver.ChainResolver.getDependency(ChainResolver.java:126) > [ivy:retrieve] at > org.apache.ivy.plugins.resolver.ChainResolver.getDependency(ChainResolver.java:126) > [ivy:retrieve] at > org.apache.ivy.plugins.resolver.ChainResolver.getDependency(ChainResolver.java:126) > [ivy:retrieve] at > org.apache.ivy.core.resolve.IvyNode.loadData(IvyNode.java:169) > [ivy:retrieve] at > org.apache.ivy.core.resolve.VisitNode.loadData(VisitNode.java:271) > [ivy:retrieve] at > org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:671) > [ivy:retrieve] at > org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:757) > [ivy:retrieve] at > org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:679) > [ivy:retrieve] at > org.apache.ivy.core.resolve.ResolveEngine.getDependencies(ResolveEngine.java:551) > [ivy:retrieve] at > org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:235) > [ivy:retrieve] at > org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:193) > [ivy:retrieve] at org.apache.ivy.Ivy.resolve(Ivy.java:502) > [ivy:retrieve] at > org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:234) > [ivy:retrieve] at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277) > [ivy:retrieve] at > org.apache.ivy.ant.IvyPostResolveTask.ensureResolved(IvyPostResolveTask.java:207) > [ivy:retrieve] at > org.apache.ivy.ant.IvyPostResolveTask.prepareAndCheck(IvyPostResolveTask.java:154) > [ivy:retrieve] at > org.apache.ivy.ant.IvyRetrieve.doExecute(IvyRetrieve.java:49) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.