pombreda / ivyidea

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

Most recent version of IvyIdea ONLY - resolve fails with java.text.ParseException: [[Fatal Error] :1:1: Content is not allowed in prolog #120

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
- I know this probably won't help to repro on your side, but for us it is as 
simple as going to the new version of the plugin.  If we revert back to the 
older version everything works.

What is the expected output? What do you see instead?
- It should work for all modules, some modules it fails for (haven't been able 
to figure out what the differences are though).

What version of the product are you using? On what operating system?
- 1.4 (latest version in IntelliJ IDEA plugin repository)
- 1.3 works though

Please provide any additional information below.

Here's the stack trace (note that the version of IntelliJ IDEA is actually 
12.1.6, even though the stack trace shows a 12.1.5 bin directory):

java.text.ParseException: [[Fatal Error] :1:1: Content is not allowed in 
prolog. in 
file:/C:/Program%20Files%20(x86)/JetBrains/IntelliJ%20IDEA%2012.1.5/bin/
]: java.text.ParseException: [[Fatal Error] :1:1: Content is not allowed in 
prolog. in 
file:/C:/Program%20Files%20(x86)/JetBrains/IntelliJ%20IDEA%2012.1.5/bin/
]
java.lang.RuntimeException: java.text.ParseException: [[Fatal Error] :1:1: 
Content is not allowed in prolog. in 
file:/C:/Program%20Files%20(x86)/JetBrains/IntelliJ%20IDEA%2012.1.5/bin/
]
    at org.clarent.ivyidea.ivy.IvyUtil.parseIvyFile(IvyUtil.java:82)
    at org.clarent.ivyidea.ivy.IvyManager.getModuleDescriptor(IvyManager.java:53)
    at org.clarent.ivyidea.resolve.IntellijModuleDependencies.getModuleId(IntellijModuleDependencies.java:86)
    at org.clarent.ivyidea.resolve.IntellijModuleDependencies.fillModuleDependencies(IntellijModuleDependencies.java:71)
    at org.clarent.ivyidea.resolve.IntellijModuleDependencies.<init>(IntellijModuleDependencies.java:48)
    at org.clarent.ivyidea.resolve.DependencyResolver.resolve(DependencyResolver.java:79)
    at org.clarent.ivyidea.resolve.IntellijDependencyResolver.resolve(IntellijDependencyResolver.java:63)
    at org.clarent.ivyidea.ResolveForActiveModuleAction$1.doResolve(ResolveForActiveModuleAction.java:56)
    at org.clarent.ivyidea.intellij.task.IvyIdeaResolveBackgroundTask.run(IvyIdeaResolveBackgroundTask.java:80)
    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:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)
    at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:152)
Caused by: java.text.ParseException: [[Fatal Error] :1:1: Content is not 
allowed in prolog. in 
file:/C:/Program%20Files%20(x86)/JetBrains/IntelliJ%20IDEA%2012.1.5/bin/
]
    at org.apache.ivy.plugins.parser.AbstractModuleDescriptorParser$AbstractParser.checkErrors(AbstractModuleDescriptorParser.java:89)
    at org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParser$Parser.parse(XmlModuleDescriptorParser.java:277)
    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)
    at org.clarent.ivyidea.ivy.IvyUtil.parseIvyFile(IvyUtil.java:80)
    ... 21 more

Original issue reported on code.google.com by kevinb...@gmail.com on 25 Oct 2013 at 5:13

GoogleCodeExporter commented 9 years ago
Apologies on the version numbers of the plugin- 1.0.4 is the version that is 
working, the more recent version is not.  So ignore the 1.3 and 1.4 mentioned 
above.

Original comment by kevinb...@gmail.com on 25 Oct 2013 at 5:16

GoogleCodeExporter commented 9 years ago
What value did you specify as Ivy file in the IvyIDEA facet of the failing 
modules? It seems you did enter a directory there (or nothing at all) instead 
of a valid ivy.xml file.

Original comment by maarten....@gmail.com on 12 Nov 2013 at 11:52

GoogleCodeExporter commented 9 years ago
I had the same issue and indeed it was the problem that one of the modules 
didn't have any ivy.xml set. But I couldn't resolve for any other module 
individually not just resolve all failed.

Original comment by levent...@gmail.com on 20 Nov 2013 at 10:30

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

Original comment by maarten....@gmail.com on 4 Dec 2013 at 11:01