underspecified / ivyidea

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

ParseExceptions when using the <extends> feature together with ivy branches configured through settings files #113

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a settings file that specifies a defaultBranch
2. Create two modules A and B, where B uses the <extends> element to refer to A
3. Publish A to an ivy repository
4. Use IvyIDEA to resolve the dependencies of B

What is the expected output? What do you see instead?
IvyIDEA should find the dependencies of B. Instead it throws ParseExceptions.

What version of the product are you using? On what operating system?
1.0.4

Please provide any additional information below.
The root cause is an inappropriate current Ivy engine in the current 
IvyContext. I've attached a patch that rectifies this. This patch is based on 
subversion revision 262.

Original issue reported on code.google.com by willem.verstraeten on 24 Apr 2013 at 1:30

Attachments:

GoogleCodeExporter commented 9 years ago
For reference, the exception I get is :

java.lang.RuntimeException: java.text.ParseException: Problem occurred while 
parsing ivy file: Unable to parse included ivy file for 
com.luciad.product#common;latest.integration in 
file:/home/willemv/development/luciad/LMAP_DEVELOPMENT/product/LuciadMap/ASTERIX
/ivy.xml
        at org.clarent.ivyidea.ivy.IvyUtil.parseIvyFile(Unknown Source)
        at org.clarent.ivyidea.resolve.IntellijModuleDependencies.fillModuleDependencies(Unknown Source)
        at org.clarent.ivyidea.resolve.IntellijModuleDependencies.<init>(Unknown Source)
        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:940)
        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:495)
        at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:185)
        at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:226)
        at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:175)
        at com.intellij.openapi.progress.impl.ProgressManagerImpl$8.run(ProgressManagerImpl.java:400)
        at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:454)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
        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:895)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
        at java.lang.Thread.run(Thread.java:662)
        at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:152)
Caused by: java.text.ParseException: Problem occurred while parsing ivy file: 
Unable to parse included ivy file for 
com.luciad.product#common;latest.integration in 
file:/home/willemv/development/luciad/LMAP_DEVELOPMENT/product/LuciadMap/ASTERIX
/ivy.xml
        at org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParser$Parser.parse(XmlModuleDescriptorParser.java:278)
        at org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParser.parseDescriptor(XmlModuleDescriptorParser.java:117)
        at org.apache.ivy.plugins.parser.ModuleDescriptorParserRegistry.parseDescriptor(ModuleDescriptorParserRegistry.java:88)
        at org.apache.ivy.plugins.parser.AbstractModuleDescriptorParser.parseDescriptor(AbstractModuleDescriptorParser.java:48)
        ... 22 more
Caused by: java.text.ParseException: Unable to parse included ivy file for 
com.luciad.product#common;latest.integration
        at org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParser$Parser.startElement(XmlModuleDescriptorParser.java:363)
        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
        at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
        at org.apache.ivy.util.XMLHelper.parse(XMLHelper.java:146)
        at org.apache.ivy.util.XMLHelper.parse(XMLHelper.java:109)
        at org.apache.ivy.util.XMLHelper.parse(XMLHelper.java:99)
        at org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParser$Parser.parse(XmlModuleDescriptorParser.java:253)
        ... 25 more
Caused by: java.text.ParseException: Unable to parse included ivy file for 
com.luciad.product#common;latest.integration
        at org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParser$Parser.extendsStarted(XmlModuleDescriptorParser.java:438)
        at org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParser$Parser.startElement(XmlModuleDescriptorParser.java:304)
        ... 40 more

Original comment by willem.verstraeten on 24 Apr 2013 at 1:42

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r267.

Original comment by maarten....@gmail.com on 3 Sep 2013 at 7:23