google-code-export / ivyidea

Automatically exported from code.google.com/p/ivyidea
1 stars 0 forks source link

NullPointerException doing "Resolve for all modules" #97

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
IntelliJ 11.1.1, IvyIDEA 1.0.2

1. I tried configuring my project the way the Getting Started page told me to.
2. Tools -> IvyIDEA -> Resolve for all modules.

null
java.lang.NullPointerException
    at org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParser$Parser.configureModuleInheritanceRepository(XmlModuleDescriptorParser.java:246)
    at org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParser$Parser.<init>(XmlModuleDescriptorParser.java:233)
    at org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParser.newParser(XmlModuleDescriptorParser.java:142)
    at org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParser.parseDescriptor(XmlModuleDescriptorParser.java:112)
    at org.apache.ivy.plugins.parser.AbstractModuleDescriptorParser.parseDescriptor(AbstractModuleDescriptorParser.java:48)
    at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:184)
    at org.apache.ivy.Ivy.resolve(Ivy.java:503)
    at org.clarent.ivyidea.resolve.DependencyResolver.resolve(Unknown Source)
    at org.clarent.ivyidea.resolve.IntellijDependencyResolver$1.run(Unknown Source)
    at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:860)
    at org.clarent.ivyidea.resolve.IntellijDependencyResolver.resolve(Unknown Source)
    at org.clarent.ivyidea.ResolveForAllModulesAction$1.doResolve(Unknown Source)
    at org.clarent.ivyidea.intellij.task.IvyIdeaResolveBackgroundTask.run(Unknown Source)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:469)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:178)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:218)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:169)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl$8.run(ProgressManagerImpl.java:378)
    at com.intellij.openapi.application.impl.ApplicationImpl$6.run(ApplicationImpl.java:434)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:680)
    at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:145)

Original issue reported on code.google.com by kan...@cakoose.com on 2 May 2012 at 9:03

GoogleCodeExporter commented 9 years ago
ok, this seems to be a bug in Ivy caused by a resolver without a name.
Could you check your ivysettings.xml that every resolver has a name attribute?

Original comment by maarten....@gmail.com on 2 May 2012 at 9:34

GoogleCodeExporter commented 9 years ago
Yep, that was the problem.

Original comment by kan...@cakoose.com on 2 May 2012 at 9:41