You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Will Sargent (JIRA)" <ji...@apache.org> on 2011/04/10 04:32:05 UTC

[jira] [Created] (IVY-1284) Ivy XML files fail with "Content is not allowed in prolog" when using Polipo proxy cache

Ivy XML files fail with "Content is not allowed in prolog" when using Polipo proxy cache
----------------------------------------------------------------------------------------

                 Key: IVY-1284
                 URL: https://issues.apache.org/jira/browse/IVY-1284
             Project: Ivy
          Issue Type: Bug
          Components: Core
    Affects Versions: 2.2.0
         Environment: MacOS 10.6.7, sbt 0.7.5, jdk1.6.0_24
            Reporter: Will Sargent
            Priority: Minor
             Fix For: 2.2.0


This is an interesting issue, and one that I'm not 100% is a result of the proxy cache, but:

1. Set up Polipo (http://www.pps.jussieu.fr/~jch/software/polipo/) out of the box using Macports (sudo port install polipo)
2. Set up the System Preferences to use the HTTP proxy to go through Polipo.
3. Delete the ~/.ivy2 directory
4. Go to the SBT project you have set up, and type "sbt update" (or I'm assuming any Ivy related network task)

Instead of getting the file you expect, you get the following:

Getting org.scala-tools.sbt sbt_2.7.7 0.7.4 ...
[Fatal Error] ivy-0.1.31.xml.original:2:1: Content is not allowed in prolog.
org.xml.sax.SAXParseException: Content is not allowed in prolog.
	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:249)
	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)
	at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:153)
	at org.apache.ivy.util.XMLHelper.parseToDom(XMLHelper.java:196)
	at org.apache.ivy.plugins.parser.m2.PomReader.<init>(PomReader.java:95)
	at org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:118)
	at org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:108)
	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager$MyModuleDescriptorProvider.provideModule(DefaultRepositoryCacheManager.java:659)
	at org.apache.ivy.core.cache.ModuleDescriptorMemoryCache.getStale(ModuleDescriptorMemoryCache.java:68)
	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager.getStaledMd(DefaultRepositoryCacheManager.java:676)
	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager.cacheModuleDescriptor(DefaultRepositoryCacheManager.java:993)
	at org.apache.ivy.plugins.resolver.BasicResolver.parse(BasicResolver.java:546)
	at org.apache.ivy.plugins.resolver.BasicResolver.getDependency(BasicResolver.java:266)
	at org.apache.ivy.plugins.resolver.IBiblioResolver.getDependency(IBiblioResolver.java:503)
	at org.apache.ivy.plugins.resolver.ChainResolver.getDependency(ChainResolver.java:104)
	at org.apache.ivy.core.resolve.IvyNode.loadData(IvyNode.java:169)
	at org.apache.ivy.core.resolve.VisitNode.loadData(VisitNode.java:287)
	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:696)
	at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:781)
	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:704)
	at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:781)
	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:704)
	at org.apache.ivy.core.resolve.ResolveEngine.getDependencies(ResolveEngine.java:576)
	at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:237)
	at xsbt.boot.Update.resolve(Update.scala:159)
	at xsbt.boot.Update.update(Update.scala:116)
	at xsbt.boot.Update.update(Update.scala:110)
	at xsbt.boot.Update.xsbt$boot$Update$$lockedApply(Update.scala:73)
	at xsbt.boot.Update$$anon$2.call(Update.scala:67)
	at xsbt.boot.Update$$anon$2.call(Update.scala:67)
	at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:63)
	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
	at xsbt.boot.Using$.withResource(Using.scala:11)
	at xsbt.boot.Using$.apply(Using.scala:10)
	at xsbt.boot.Locks$GlobalLock.withFileLock(Locks.scala:67)
	at xsbt.boot.Locks$GlobalLock.liftedTree1$1(Locks.scala:45)
	at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:45)
	at xsbt.boot.Locks$.apply(Locks.scala:31)
	at xsbt.boot.Update.apply(Update.scala:68)
	at xsbt.boot.Provider$initialize.call(Provider.scala:41)
	at xsbt.boot.Provider$initialize.call(Provider.scala:32)
	at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:63)
	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
	at xsbt.boot.Using$.withResource(Using.scala:11)
	at xsbt.boot.Using$.apply(Using.scala:10)
	at xsbt.boot.Locks$GlobalLock.withFileLock(Locks.scala:67)
	at xsbt.boot.Locks$GlobalLock.liftedTree1$1(Locks.scala:45)
	at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:45)
	at xsbt.boot.Locks$.apply(Locks.scala:31)
	at xsbt.boot.Provider$class.$init$(Provider.scala:31)
	at xsbt.boot.Launch$ScalaProvider$AppProvider.<init>(Launch.scala:100)
	at xsbt.boot.Launch$ScalaProvider.app(Launch.scala:98)
	at xsbt.boot.Launch$.run(Launch.scala:49)
	at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:42)
	at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:42)
	at xsbt.boot.Launch$.launch(Launch.scala:57)
	at xsbt.boot.Launch$.explicit(Launch.scala:42)
	at xsbt.boot.Launch$.initialized(Launch.scala:38)
	at xsbt.boot.Launch$.parsed(Launch.scala:31)
	at xsbt.boot.Launch$.configured(Launch.scala:21)
	at xsbt.boot.Launch$.apply(Launch.scala:16)
	at xsbt.boot.Launch$.apply(Launch.scala:13)
	at xsbt.boot.Boot$.runImpl(Boot.scala:24)
	at xsbt.boot.Boot$.run(Boot.scala:19)
	at xsbt.boot.Boot$.main(Boot.scala:15)
	at xsbt.boot.Boot.main(Boot.scala)
[Fatal Error] ivy-2.1.0.xml.original:2:1: Content is not allowed in prolog.
org.xml.sax.SAXParseException: Content is not allowed in prolog.
	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:249)
	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)
	at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:153)
	at org.apache.ivy.util.XMLHelper.parseToDom(XMLHelper.java:196)
	at org.apache.ivy.plugins.parser.m2.PomReader.<init>(PomReader.java:95)
	at org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:118)
	at org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:108)
	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager$MyModuleDescriptorProvider.provideModule(DefaultRepositoryCacheManager.java:659)
	at org.apache.ivy.core.cache.ModuleDescriptorMemoryCache.getStale(ModuleDescriptorMemoryCache.java:68)
	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager.getStaledMd(DefaultRepositoryCacheManager.java:676)
	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager.cacheModuleDescriptor(DefaultRepositoryCacheManager.java:993)
	at org.apache.ivy.plugins.resolver.BasicResolver.parse(BasicResolver.java:546)
	at org.apache.ivy.plugins.resolver.BasicResolver.getDependency(BasicResolver.java:266)
	at org.apache.ivy.plugins.resolver.IBiblioResolver.getDependency(IBiblioResolver.java:503)
	at org.apache.ivy.plugins.resolver.ChainResolver.getDependency(ChainResolver.java:104)
	at org.apache.ivy.core.resolve.IvyNode.loadData(IvyNode.java:169)
	at org.apache.ivy.core.resolve.VisitNode.loadData(VisitNode.java:287)
	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:696)
	at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:781)
	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:704)
	at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:781)
	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:704)
	at org.apache.ivy.core.resolve.ResolveEngine.getDependencies(ResolveEngine.java:576)
	at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:237)
	at xsbt.boot.Update.resolve(Update.scala:159)
	at xsbt.boot.Update.update(Update.scala:116)
	at xsbt.boot.Update.update(Update.scala:110)
	at xsbt.boot.Update.xsbt$boot$Update$$lockedApply(Update.scala:73)
	at xsbt.boot.Update$$anon$2.call(Update.scala:67)
	at xsbt.boot.Update$$anon$2.call(Update.scala:67)
	at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:63)
	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
	at xsbt.boot.Using$.withResource(Using.scala:11)
	at xsbt.boot.Using$.apply(Using.scala:10)
	at xsbt.boot.Locks$GlobalLock.withFileLock(Locks.scala:67)
	at xsbt.boot.Locks$GlobalLock.liftedTree1$1(Locks.scala:45)
	at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:45)
	at xsbt.boot.Locks$.apply(Locks.scala:31)
	at xsbt.boot.Update.apply(Update.scala:68)
	at xsbt.boot.Provider$initialize.call(Provider.scala:41)
	at xsbt.boot.Provider$initialize.call(Provider.scala:32)
	at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:63)
	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
	at xsbt.boot.Using$.withResource(Using.scala:11)
	at xsbt.boot.Using$.apply(Using.scala:10)
	at xsbt.boot.Locks$GlobalLock.withFileLock(Locks.scala:67)
	at xsbt.boot.Locks$GlobalLock.liftedTree1$1(Locks.scala:45)
	at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:45)
	at xsbt.boot.Locks$.apply(Locks.scala:31)
	at xsbt.boot.Provider$class.$init$(Provider.scala:31)
	at xsbt.boot.Launch$ScalaProvider$AppProvider.<init>(Launch.scala:100)
	at xsbt.boot.Launch$ScalaProvider.app(Launch.scala:98)
	at xsbt.boot.Launch$.run(Launch.scala:49)
	at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:42)
	at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:42)
	at xsbt.boot.Launch$.launch(Launch.scala:57)
	at xsbt.boot.Launch$.explicit(Launch.scala:42)
	at xsbt.boot.Launch$.initialized(Launch.scala:38)
	at xsbt.boot.Launch$.parsed(Launch.scala:31)
	at xsbt.boot.Launch$.configured(Launch.scala:21)
	at xsbt.boot.Launch$.apply(Launch.scala:16)
	at xsbt.boot.Launch$.apply(Launch.scala:13)
	at xsbt.boot.Boot$.runImpl(Boot.scala:24)
	at xsbt.boot.Boot$.run(Boot.scala:19)
	at xsbt.boot.Boot$.main(Boot.scala:15)
	at xsbt.boot.Boot.main(Boot.scala)
[Fatal Error] ivy-0.9.94.xml.original:2:1: Content is not allowed in prolog.
org.xml.sax.SAXParseException: Content is not allowed in prolog.
	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:249)
	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)
	at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:153)
	at org.apache.ivy.util.XMLHelper.parseToDom(XMLHelper.java:196)
	at org.apache.ivy.plugins.parser.m2.PomReader.<init>(PomReader.java:95)
	at org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:118)
	at org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:108)
	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager$MyModuleDescriptorProvider.provideModule(DefaultRepositoryCacheManager.java:659)
	at org.apache.ivy.core.cache.ModuleDescriptorMemoryCache.getStale(ModuleDescriptorMemoryCache.java:68)
	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager.getStaledMd(DefaultRepositoryCacheManager.java:676)
	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager.cacheModuleDescriptor(DefaultRepositoryCacheManager.java:993)
	at org.apache.ivy.plugins.resolver.BasicResolver.parse(BasicResolver.java:546)
	at org.apache.ivy.plugins.resolver.BasicResolver.getDependency(BasicResolver.java:266)
	at org.apache.ivy.plugins.resolver.IBiblioResolver.getDependency(IBiblioResolver.java:503)
	at org.apache.ivy.plugins.resolver.ChainResolver.getDependency(ChainResolver.java:104)
	at org.apache.ivy.core.resolve.IvyNode.loadData(IvyNode.java:169)
	at org.apache.ivy.core.resolve.VisitNode.loadData(VisitNode.java:287)
	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:696)
	at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:781)
	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:704)
	at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:781)
	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:704)
	at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:781)
	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:704)
	at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:781)
	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:704)
	at org.apache.ivy.core.resolve.ResolveEngine.getDependencies(ResolveEngine.java:576)
	at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:237)
	at xsbt.boot.Update.resolve(Update.scala:159)
	at xsbt.boot.Update.update(Update.scala:116)
	at xsbt.boot.Update.update(Update.scala:110)
	at xsbt.boot.Update.xsbt$boot$Update$$lockedApply(Update.scala:73)
	at xsbt.boot.Update$$anon$2.call(Update.scala:67)
	at xsbt.boot.Update$$anon$2.call(Update.scala:67)
	at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:63)
	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
	at xsbt.boot.Using$.withResource(Using.scala:11)
	at xsbt.boot.Using$.apply(Using.scala:10)
	at xsbt.boot.Locks$GlobalLock.withFileLock(Locks.scala:67)
	at xsbt.boot.Locks$GlobalLock.liftedTree1$1(Locks.scala:45)
	at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:45)
	at xsbt.boot.Locks$.apply(Locks.scala:31)
	at xsbt.boot.Update.apply(Update.scala:68)
	at xsbt.boot.Provider$initialize.call(Provider.scala:41)
	at xsbt.boot.Provider$initialize.call(Provider.scala:32)
	at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:63)
	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
	at xsbt.boot.Using$.withResource(Using.scala:11)
	at xsbt.boot.Using$.apply(Using.scala:10)
	at xsbt.boot.Locks$GlobalLock.withFileLock(Locks.scala:67)
	at xsbt.boot.Locks$GlobalLock.liftedTree1$1(Locks.scala:45)
	at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:45)
	at xsbt.boot.Locks$.apply(Locks.scala:31)
	at xsbt.boot.Provider$class.$init$(Provider.scala:31)
	at xsbt.boot.Launch$ScalaProvider$AppProvider.<init>(Launch.scala:100)
	at xsbt.boot.Launch$ScalaProvider.app(Launch.scala:98)
	at xsbt.boot.Launch$.run(Launch.scala:49)
	at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:42)
	at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:42)
	at xsbt.boot.Launch$.launch(Launch.scala:57)
	at xsbt.boot.Launch$.explicit(Launch.scala:42)
	at xsbt.boot.Launch$.initialized(Launch.scala:38)
	at xsbt.boot.Launch$.parsed(Launch.scala:31)
	at xsbt.boot.Launch$.configured(Launch.scala:21)
	at xsbt.boot.Launch$.apply(Launch.scala:16)
	at xsbt.boot.Launch$.apply(Launch.scala:13)
	at xsbt.boot.Boot$.runImpl(Boot.scala:24)
	at xsbt.boot.Boot$.run(Boot.scala:19)
	at xsbt.boot.Boot$.main(Boot.scala:15)
	at xsbt.boot.Boot.main(Boot.scala)

Inspecting the ivy.xml file in question showed binary gibberish.  Situation resolved itself when I turned off the proxy through System Preferences, deleted the .ivy2 directory, and then ran "sbt update" again.


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (IVY-1284) Ivy XML files fail with "Content is not allowed in prolog" when using Polipo proxy cache

Posted by "Will Sargent (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-1284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13029692#comment-13029692 ] 

Will Sargent commented on IVY-1284:
-----------------------------------

sudo port unload polipo;
sudo vi /opt/local/etc/polipo/config 

dnsQueryIPv6 = no

logFile=/opt/local/var/log/polipo
logLevel=0xFF

forbiddenFile=/opt/local/etc/polipo/forbidden
forbiddenUrl=http://localhost:8123/empty.gif

localDocumentRoot=/opt/local/share/polipo/www

disableIndexing = false
disableServersList = false
#disableStatus = false
 
sudo port load polipo

So what comes out at the very end of sbt update is:

[error] Error running update: sbt.ResolveException: unresolved dependency: antlr#antlr;2.7.6: java.text.ParseException: Content is not allowed in prolog.
[error] unresolved dependency: commons-collections#commons-collections;3.1: java.text.ParseException: Content is not allowed in prolog.
[error] unresolved dependency: dom4j#dom4j;1.6.1: java.text.ParseException: Content is not allowed in prolog.
[error] unresolved dependency: org.slf4j#slf4j-api;1.6.1: java.text.ParseException: Content is not allowed in prolog.
[error] unresolved dependency: javax.transaction#jta;1.1: java.text.ParseException: Content is not allowed in prolog.
[error] unresolved dependency: ch.qos.logback#logback-core;0.9.28: java.text.ParseException: Content is not allowed in prolog.
[error] unresolved dependency: joda-time#joda-time;1.6: java.text.ParseException: Content is not allowed in prolog.
[error] unresolved dependency: org.slf4j#jcl-over-slf4j;1.6.1: java.text.ParseException: Content is not allowed in prolog.
[error] unresolved dependency: org.springframework#spring-web;3.0.4.RELEASE: java.text.ParseException: Content is not allowed in prolog.
[error] unresolved dependency: org.jasypt#jasypt;1.7: java.text.ParseException: Content is not allowed in prolog.
[error] unresolved dependency: com.google.guava#guava;r07: several problems occurred while resolving dependency: com.google.guava#guava;r07 {compile=[compile(*), master(*)], runtime=[runtime(*)]}:
[error] 	java.text.ParseException: Content is not allowed in prolog.
[error] 	java.text.ParseException: Content is not allowed in prolog.
[error] unresolved dependency: com.restfb#restfb;1.6.4: java.text.ParseException: Content is not allowed in prolog.
[error] unresolved dependency: net.sf.ehcache#ehcache-core;2.4.1: java.text.ParseException: Content is not allowed in prolog.
[error] unresolved dependency: org.springframework#spring-orm;3.0.4.RELEASE: java.text.ParseException: Content is not allowed in prolog.
[error] unresolved dependency: ch.qos.logback#logback-classic;0.9.28: java.text.ParseException: Content is not allowed in prolog.
[error] unresolved dependency: org.slf4j#log4j-over-slf4j;1.6.1: java.text.ParseException: Content is not allowed in prolog.
[error] unresolved dependency: org.springframework#spring-jdbc;3.0.4.RELEASE: java.text.ParseException: Content is not allowed in prolog.
[error] unresolved dependency: cglib#cglib-nodep;2.1_3: java.text.ParseException: Content is not allowed in prolog.
[error] unresolved dependency: org.liquibase#liquibase-core;2.0.1: java.text.ParseException: Content is not allowed in prolog.
[error] unresolved dependency: org.mockito#mockito-all;1.8.0: java.text.ParseException: Content is not allowed in prolog.
[error] unresolved dependency: org.eclipse.jetty#jetty-client;7.3.1.v20110307: java.text.ParseException: Content is not allowed in prolog.
[error] unresolved dependency: junit#junit;4.7: java.text.ParseException: Content is not allowed in prolog.
[error] unresolved dependency: org.springframework#spring-test;3.0.4.RELEASE: java.text.ParseException: Content is not allowed in prolog.
[error] unresolved dependency: javax.servlet#servlet-api;2.5: java.text.ParseException: Content is not allowed in prolog.
[info] 

and what I see in the logs is:

Superseding object: http://jolbox.com/bonecp/downloads/maven/org/eclipse/jetty/jetty-io/7.3.1.v20110307/jetty-io-7.3.1.v20110307-sources.jar (404 -1 -1 (none) -> 404 -1 -1 (none))
Superseding object: http://download.java.net/maven/2/org/eclipse/jetty/jetty-io/7.3.1.v20110307/jetty-io-7.3.1.v20110307-sources.jar (404 292 -1 (none) -> 404 292 -1 (none))
Superseding object: http://download.java.net/maven/glassfish/org/eclipse/jetty/jetty-io/7.3.1.v20110307/jetty-io-7.3.1.v20110307-javadoc.jar (404 292 -1 (none) -> 404 292 -1 (none))
Superseding object: http://www.scala-tools.org/repo-releases/org/eclipse/jetty/jetty-io/7.3.1.v20110307/jetty-io-7.3.1.v20110307-javadoc.jar (404 169 -1 (none) -> 404 169 -1 (none))
Superseding object: http://jolbox.com/bonecp/downloads/maven/org/eclipse/jetty/jetty-io/7.3.1.v20110307/jetty-io-7.3.1.v20110307-javadoc.jar (404 -1 -1 (none) -> 404 -1 -1 (none))
Superseding object: http://download.java.net/maven/2/org/eclipse/jetty/jetty-io/7.3.1.v20110307/jetty-io-7.3.1.v20110307-javadoc.jar (404 292 -1 (none) -> 404 292 -1 (none))

If you want me to download a particular ivy.xml file, I don't see the URL containing "ivy" in the polipo logs.  Is there a well-known URL I can use?


> Ivy XML files fail with "Content is not allowed in prolog" when using Polipo proxy cache
> ----------------------------------------------------------------------------------------
>
>                 Key: IVY-1284
>                 URL: https://issues.apache.org/jira/browse/IVY-1284
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.2.0
>         Environment: MacOS 10.6.7, sbt 0.7.5, jdk1.6.0_24
>            Reporter: Will Sargent
>            Priority: Minor
>             Fix For: 2.2.0
>
>
> This is an interesting issue, and one that I'm not 100% is a result of the proxy cache, but:
> 1. Set up Polipo (http://www.pps.jussieu.fr/~jch/software/polipo/) out of the box using Macports (sudo port install polipo)
> 2. Set up the System Preferences to use the HTTP proxy to go through Polipo.
> 3. Delete the ~/.ivy2 directory
> 4. Go to the SBT project you have set up, and type "sbt update" (or I'm assuming any Ivy related network task)
> Instead of getting the file you expect, you get the following:
> Getting org.scala-tools.sbt sbt_2.7.7 0.7.4 ...
> [Fatal Error] ivy-0.1.31.xml.original:2:1: Content is not allowed in prolog.
> org.xml.sax.SAXParseException: Content is not allowed in prolog.
> 	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:249)
> 	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)
> 	at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:153)
> 	at org.apache.ivy.util.XMLHelper.parseToDom(XMLHelper.java:196)
> 	at org.apache.ivy.plugins.parser.m2.PomReader.<init>(PomReader.java:95)
> 	at org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:118)
> 	at org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:108)
> 	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager$MyModuleDescriptorProvider.provideModule(DefaultRepositoryCacheManager.java:659)
> 	at org.apache.ivy.core.cache.ModuleDescriptorMemoryCache.getStale(ModuleDescriptorMemoryCache.java:68)
> 	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager.getStaledMd(DefaultRepositoryCacheManager.java:676)
> 	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager.cacheModuleDescriptor(DefaultRepositoryCacheManager.java:993)
> 	at org.apache.ivy.plugins.resolver.BasicResolver.parse(BasicResolver.java:546)
> 	at org.apache.ivy.plugins.resolver.BasicResolver.getDependency(BasicResolver.java:266)
> 	at org.apache.ivy.plugins.resolver.IBiblioResolver.getDependency(IBiblioResolver.java:503)
> 	at org.apache.ivy.plugins.resolver.ChainResolver.getDependency(ChainResolver.java:104)
> 	at org.apache.ivy.core.resolve.IvyNode.loadData(IvyNode.java:169)
> 	at org.apache.ivy.core.resolve.VisitNode.loadData(VisitNode.java:287)
> 	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:696)
> 	at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:781)
> 	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:704)
> 	at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:781)
> 	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:704)
> 	at org.apache.ivy.core.resolve.ResolveEngine.getDependencies(ResolveEngine.java:576)
> 	at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:237)
> 	at xsbt.boot.Update.resolve(Update.scala:159)
> 	at xsbt.boot.Update.update(Update.scala:116)
> 	at xsbt.boot.Update.update(Update.scala:110)
> 	at xsbt.boot.Update.xsbt$boot$Update$$lockedApply(Update.scala:73)
> 	at xsbt.boot.Update$$anon$2.call(Update.scala:67)
> 	at xsbt.boot.Update$$anon$2.call(Update.scala:67)
> 	at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:63)
> 	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
> 	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
> 	at xsbt.boot.Using$.withResource(Using.scala:11)
> 	at xsbt.boot.Using$.apply(Using.scala:10)
> 	at xsbt.boot.Locks$GlobalLock.withFileLock(Locks.scala:67)
> 	at xsbt.boot.Locks$GlobalLock.liftedTree1$1(Locks.scala:45)
> 	at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:45)
> 	at xsbt.boot.Locks$.apply(Locks.scala:31)
> 	at xsbt.boot.Update.apply(Update.scala:68)
> 	at xsbt.boot.Provider$initialize.call(Provider.scala:41)
> 	at xsbt.boot.Provider$initialize.call(Provider.scala:32)
> 	at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:63)
> 	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
> 	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
> 	at xsbt.boot.Using$.withResource(Using.scala:11)
> 	at xsbt.boot.Using$.apply(Using.scala:10)
> 	at xsbt.boot.Locks$GlobalLock.withFileLock(Locks.scala:67)
> 	at xsbt.boot.Locks$GlobalLock.liftedTree1$1(Locks.scala:45)
> 	at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:45)
> 	at xsbt.boot.Locks$.apply(Locks.scala:31)
> 	at xsbt.boot.Provider$class.$init$(Provider.scala:31)
> 	at xsbt.boot.Launch$ScalaProvider$AppProvider.<init>(Launch.scala:100)
> 	at xsbt.boot.Launch$ScalaProvider.app(Launch.scala:98)
> 	at xsbt.boot.Launch$.run(Launch.scala:49)
> 	at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:42)
> 	at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:42)
> 	at xsbt.boot.Launch$.launch(Launch.scala:57)
> 	at xsbt.boot.Launch$.explicit(Launch.scala:42)
> 	at xsbt.boot.Launch$.initialized(Launch.scala:38)
> 	at xsbt.boot.Launch$.parsed(Launch.scala:31)
> 	at xsbt.boot.Launch$.configured(Launch.scala:21)
> 	at xsbt.boot.Launch$.apply(Launch.scala:16)
> 	at xsbt.boot.Launch$.apply(Launch.scala:13)
> 	at xsbt.boot.Boot$.runImpl(Boot.scala:24)
> 	at xsbt.boot.Boot$.run(Boot.scala:19)
> 	at xsbt.boot.Boot$.main(Boot.scala:15)
> 	at xsbt.boot.Boot.main(Boot.scala)
> [Fatal Error] ivy-2.1.0.xml.original:2:1: Content is not allowed in prolog.
> org.xml.sax.SAXParseException: Content is not allowed in prolog.
> 	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:249)
> 	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)
> 	at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:153)
> 	at org.apache.ivy.util.XMLHelper.parseToDom(XMLHelper.java:196)
> 	at org.apache.ivy.plugins.parser.m2.PomReader.<init>(PomReader.java:95)
> 	at org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:118)
> 	at org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:108)
> 	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager$MyModuleDescriptorProvider.provideModule(DefaultRepositoryCacheManager.java:659)
> 	at org.apache.ivy.core.cache.ModuleDescriptorMemoryCache.getStale(ModuleDescriptorMemoryCache.java:68)
> 	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager.getStaledMd(DefaultRepositoryCacheManager.java:676)
> 	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager.cacheModuleDescriptor(DefaultRepositoryCacheManager.java:993)
> 	at org.apache.ivy.plugins.resolver.BasicResolver.parse(BasicResolver.java:546)
> 	at org.apache.ivy.plugins.resolver.BasicResolver.getDependency(BasicResolver.java:266)
> 	at org.apache.ivy.plugins.resolver.IBiblioResolver.getDependency(IBiblioResolver.java:503)
> 	at org.apache.ivy.plugins.resolver.ChainResolver.getDependency(ChainResolver.java:104)
> 	at org.apache.ivy.core.resolve.IvyNode.loadData(IvyNode.java:169)
> 	at org.apache.ivy.core.resolve.VisitNode.loadData(VisitNode.java:287)
> 	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:696)
> 	at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:781)
> 	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:704)
> 	at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:781)
> 	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:704)
> 	at org.apache.ivy.core.resolve.ResolveEngine.getDependencies(ResolveEngine.java:576)
> 	at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:237)
> 	at xsbt.boot.Update.resolve(Update.scala:159)
> 	at xsbt.boot.Update.update(Update.scala:116)
> 	at xsbt.boot.Update.update(Update.scala:110)
> 	at xsbt.boot.Update.xsbt$boot$Update$$lockedApply(Update.scala:73)
> 	at xsbt.boot.Update$$anon$2.call(Update.scala:67)
> 	at xsbt.boot.Update$$anon$2.call(Update.scala:67)
> 	at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:63)
> 	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
> 	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
> 	at xsbt.boot.Using$.withResource(Using.scala:11)
> 	at xsbt.boot.Using$.apply(Using.scala:10)
> 	at xsbt.boot.Locks$GlobalLock.withFileLock(Locks.scala:67)
> 	at xsbt.boot.Locks$GlobalLock.liftedTree1$1(Locks.scala:45)
> 	at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:45)
> 	at xsbt.boot.Locks$.apply(Locks.scala:31)
> 	at xsbt.boot.Update.apply(Update.scala:68)
> 	at xsbt.boot.Provider$initialize.call(Provider.scala:41)
> 	at xsbt.boot.Provider$initialize.call(Provider.scala:32)
> 	at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:63)
> 	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
> 	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
> 	at xsbt.boot.Using$.withResource(Using.scala:11)
> 	at xsbt.boot.Using$.apply(Using.scala:10)
> 	at xsbt.boot.Locks$GlobalLock.withFileLock(Locks.scala:67)
> 	at xsbt.boot.Locks$GlobalLock.liftedTree1$1(Locks.scala:45)
> 	at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:45)
> 	at xsbt.boot.Locks$.apply(Locks.scala:31)
> 	at xsbt.boot.Provider$class.$init$(Provider.scala:31)
> 	at xsbt.boot.Launch$ScalaProvider$AppProvider.<init>(Launch.scala:100)
> 	at xsbt.boot.Launch$ScalaProvider.app(Launch.scala:98)
> 	at xsbt.boot.Launch$.run(Launch.scala:49)
> 	at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:42)
> 	at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:42)
> 	at xsbt.boot.Launch$.launch(Launch.scala:57)
> 	at xsbt.boot.Launch$.explicit(Launch.scala:42)
> 	at xsbt.boot.Launch$.initialized(Launch.scala:38)
> 	at xsbt.boot.Launch$.parsed(Launch.scala:31)
> 	at xsbt.boot.Launch$.configured(Launch.scala:21)
> 	at xsbt.boot.Launch$.apply(Launch.scala:16)
> 	at xsbt.boot.Launch$.apply(Launch.scala:13)
> 	at xsbt.boot.Boot$.runImpl(Boot.scala:24)
> 	at xsbt.boot.Boot$.run(Boot.scala:19)
> 	at xsbt.boot.Boot$.main(Boot.scala:15)
> 	at xsbt.boot.Boot.main(Boot.scala)
> [Fatal Error] ivy-0.9.94.xml.original:2:1: Content is not allowed in prolog.
> org.xml.sax.SAXParseException: Content is not allowed in prolog.
> 	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:249)
> 	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)
> 	at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:153)
> 	at org.apache.ivy.util.XMLHelper.parseToDom(XMLHelper.java:196)
> 	at org.apache.ivy.plugins.parser.m2.PomReader.<init>(PomReader.java:95)
> 	at org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:118)
> 	at org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:108)
> 	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager$MyModuleDescriptorProvider.provideModule(DefaultRepositoryCacheManager.java:659)
> 	at org.apache.ivy.core.cache.ModuleDescriptorMemoryCache.getStale(ModuleDescriptorMemoryCache.java:68)
> 	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager.getStaledMd(DefaultRepositoryCacheManager.java:676)
> 	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager.cacheModuleDescriptor(DefaultRepositoryCacheManager.java:993)
> 	at org.apache.ivy.plugins.resolver.BasicResolver.parse(BasicResolver.java:546)
> 	at org.apache.ivy.plugins.resolver.BasicResolver.getDependency(BasicResolver.java:266)
> 	at org.apache.ivy.plugins.resolver.IBiblioResolver.getDependency(IBiblioResolver.java:503)
> 	at org.apache.ivy.plugins.resolver.ChainResolver.getDependency(ChainResolver.java:104)
> 	at org.apache.ivy.core.resolve.IvyNode.loadData(IvyNode.java:169)
> 	at org.apache.ivy.core.resolve.VisitNode.loadData(VisitNode.java:287)
> 	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:696)
> 	at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:781)
> 	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:704)
> 	at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:781)
> 	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:704)
> 	at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:781)
> 	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:704)
> 	at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:781)
> 	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:704)
> 	at org.apache.ivy.core.resolve.ResolveEngine.getDependencies(ResolveEngine.java:576)
> 	at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:237)
> 	at xsbt.boot.Update.resolve(Update.scala:159)
> 	at xsbt.boot.Update.update(Update.scala:116)
> 	at xsbt.boot.Update.update(Update.scala:110)
> 	at xsbt.boot.Update.xsbt$boot$Update$$lockedApply(Update.scala:73)
> 	at xsbt.boot.Update$$anon$2.call(Update.scala:67)
> 	at xsbt.boot.Update$$anon$2.call(Update.scala:67)
> 	at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:63)
> 	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
> 	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
> 	at xsbt.boot.Using$.withResource(Using.scala:11)
> 	at xsbt.boot.Using$.apply(Using.scala:10)
> 	at xsbt.boot.Locks$GlobalLock.withFileLock(Locks.scala:67)
> 	at xsbt.boot.Locks$GlobalLock.liftedTree1$1(Locks.scala:45)
> 	at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:45)
> 	at xsbt.boot.Locks$.apply(Locks.scala:31)
> 	at xsbt.boot.Update.apply(Update.scala:68)
> 	at xsbt.boot.Provider$initialize.call(Provider.scala:41)
> 	at xsbt.boot.Provider$initialize.call(Provider.scala:32)
> 	at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:63)
> 	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
> 	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
> 	at xsbt.boot.Using$.withResource(Using.scala:11)
> 	at xsbt.boot.Using$.apply(Using.scala:10)
> 	at xsbt.boot.Locks$GlobalLock.withFileLock(Locks.scala:67)
> 	at xsbt.boot.Locks$GlobalLock.liftedTree1$1(Locks.scala:45)
> 	at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:45)
> 	at xsbt.boot.Locks$.apply(Locks.scala:31)
> 	at xsbt.boot.Provider$class.$init$(Provider.scala:31)
> 	at xsbt.boot.Launch$ScalaProvider$AppProvider.<init>(Launch.scala:100)
> 	at xsbt.boot.Launch$ScalaProvider.app(Launch.scala:98)
> 	at xsbt.boot.Launch$.run(Launch.scala:49)
> 	at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:42)
> 	at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:42)
> 	at xsbt.boot.Launch$.launch(Launch.scala:57)
> 	at xsbt.boot.Launch$.explicit(Launch.scala:42)
> 	at xsbt.boot.Launch$.initialized(Launch.scala:38)
> 	at xsbt.boot.Launch$.parsed(Launch.scala:31)
> 	at xsbt.boot.Launch$.configured(Launch.scala:21)
> 	at xsbt.boot.Launch$.apply(Launch.scala:16)
> 	at xsbt.boot.Launch$.apply(Launch.scala:13)
> 	at xsbt.boot.Boot$.runImpl(Boot.scala:24)
> 	at xsbt.boot.Boot$.run(Boot.scala:19)
> 	at xsbt.boot.Boot$.main(Boot.scala:15)
> 	at xsbt.boot.Boot.main(Boot.scala)
> Inspecting the ivy.xml file in question showed binary gibberish.  Situation resolved itself when I turned off the proxy through System Preferences, deleted the .ivy2 directory, and then ran "sbt update" again.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (IVY-1284) Ivy XML files fail with "Content is not allowed in prolog" when using Polipo proxy cache

Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-1284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13022921#comment-13022921 ] 

Maarten Coene commented on IVY-1284:
------------------------------------

What happens if you use a tool like wget to download the ivy.xml file using your proxy?
Could you also attach the HTTP headers when downloading the ivy.xml file in this case?

> Ivy XML files fail with "Content is not allowed in prolog" when using Polipo proxy cache
> ----------------------------------------------------------------------------------------
>
>                 Key: IVY-1284
>                 URL: https://issues.apache.org/jira/browse/IVY-1284
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.2.0
>         Environment: MacOS 10.6.7, sbt 0.7.5, jdk1.6.0_24
>            Reporter: Will Sargent
>            Priority: Minor
>             Fix For: 2.2.0
>
>
> This is an interesting issue, and one that I'm not 100% is a result of the proxy cache, but:
> 1. Set up Polipo (http://www.pps.jussieu.fr/~jch/software/polipo/) out of the box using Macports (sudo port install polipo)
> 2. Set up the System Preferences to use the HTTP proxy to go through Polipo.
> 3. Delete the ~/.ivy2 directory
> 4. Go to the SBT project you have set up, and type "sbt update" (or I'm assuming any Ivy related network task)
> Instead of getting the file you expect, you get the following:
> Getting org.scala-tools.sbt sbt_2.7.7 0.7.4 ...
> [Fatal Error] ivy-0.1.31.xml.original:2:1: Content is not allowed in prolog.
> org.xml.sax.SAXParseException: Content is not allowed in prolog.
> 	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:249)
> 	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)
> 	at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:153)
> 	at org.apache.ivy.util.XMLHelper.parseToDom(XMLHelper.java:196)
> 	at org.apache.ivy.plugins.parser.m2.PomReader.<init>(PomReader.java:95)
> 	at org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:118)
> 	at org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:108)
> 	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager$MyModuleDescriptorProvider.provideModule(DefaultRepositoryCacheManager.java:659)
> 	at org.apache.ivy.core.cache.ModuleDescriptorMemoryCache.getStale(ModuleDescriptorMemoryCache.java:68)
> 	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager.getStaledMd(DefaultRepositoryCacheManager.java:676)
> 	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager.cacheModuleDescriptor(DefaultRepositoryCacheManager.java:993)
> 	at org.apache.ivy.plugins.resolver.BasicResolver.parse(BasicResolver.java:546)
> 	at org.apache.ivy.plugins.resolver.BasicResolver.getDependency(BasicResolver.java:266)
> 	at org.apache.ivy.plugins.resolver.IBiblioResolver.getDependency(IBiblioResolver.java:503)
> 	at org.apache.ivy.plugins.resolver.ChainResolver.getDependency(ChainResolver.java:104)
> 	at org.apache.ivy.core.resolve.IvyNode.loadData(IvyNode.java:169)
> 	at org.apache.ivy.core.resolve.VisitNode.loadData(VisitNode.java:287)
> 	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:696)
> 	at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:781)
> 	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:704)
> 	at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:781)
> 	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:704)
> 	at org.apache.ivy.core.resolve.ResolveEngine.getDependencies(ResolveEngine.java:576)
> 	at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:237)
> 	at xsbt.boot.Update.resolve(Update.scala:159)
> 	at xsbt.boot.Update.update(Update.scala:116)
> 	at xsbt.boot.Update.update(Update.scala:110)
> 	at xsbt.boot.Update.xsbt$boot$Update$$lockedApply(Update.scala:73)
> 	at xsbt.boot.Update$$anon$2.call(Update.scala:67)
> 	at xsbt.boot.Update$$anon$2.call(Update.scala:67)
> 	at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:63)
> 	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
> 	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
> 	at xsbt.boot.Using$.withResource(Using.scala:11)
> 	at xsbt.boot.Using$.apply(Using.scala:10)
> 	at xsbt.boot.Locks$GlobalLock.withFileLock(Locks.scala:67)
> 	at xsbt.boot.Locks$GlobalLock.liftedTree1$1(Locks.scala:45)
> 	at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:45)
> 	at xsbt.boot.Locks$.apply(Locks.scala:31)
> 	at xsbt.boot.Update.apply(Update.scala:68)
> 	at xsbt.boot.Provider$initialize.call(Provider.scala:41)
> 	at xsbt.boot.Provider$initialize.call(Provider.scala:32)
> 	at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:63)
> 	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
> 	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
> 	at xsbt.boot.Using$.withResource(Using.scala:11)
> 	at xsbt.boot.Using$.apply(Using.scala:10)
> 	at xsbt.boot.Locks$GlobalLock.withFileLock(Locks.scala:67)
> 	at xsbt.boot.Locks$GlobalLock.liftedTree1$1(Locks.scala:45)
> 	at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:45)
> 	at xsbt.boot.Locks$.apply(Locks.scala:31)
> 	at xsbt.boot.Provider$class.$init$(Provider.scala:31)
> 	at xsbt.boot.Launch$ScalaProvider$AppProvider.<init>(Launch.scala:100)
> 	at xsbt.boot.Launch$ScalaProvider.app(Launch.scala:98)
> 	at xsbt.boot.Launch$.run(Launch.scala:49)
> 	at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:42)
> 	at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:42)
> 	at xsbt.boot.Launch$.launch(Launch.scala:57)
> 	at xsbt.boot.Launch$.explicit(Launch.scala:42)
> 	at xsbt.boot.Launch$.initialized(Launch.scala:38)
> 	at xsbt.boot.Launch$.parsed(Launch.scala:31)
> 	at xsbt.boot.Launch$.configured(Launch.scala:21)
> 	at xsbt.boot.Launch$.apply(Launch.scala:16)
> 	at xsbt.boot.Launch$.apply(Launch.scala:13)
> 	at xsbt.boot.Boot$.runImpl(Boot.scala:24)
> 	at xsbt.boot.Boot$.run(Boot.scala:19)
> 	at xsbt.boot.Boot$.main(Boot.scala:15)
> 	at xsbt.boot.Boot.main(Boot.scala)
> [Fatal Error] ivy-2.1.0.xml.original:2:1: Content is not allowed in prolog.
> org.xml.sax.SAXParseException: Content is not allowed in prolog.
> 	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:249)
> 	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)
> 	at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:153)
> 	at org.apache.ivy.util.XMLHelper.parseToDom(XMLHelper.java:196)
> 	at org.apache.ivy.plugins.parser.m2.PomReader.<init>(PomReader.java:95)
> 	at org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:118)
> 	at org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:108)
> 	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager$MyModuleDescriptorProvider.provideModule(DefaultRepositoryCacheManager.java:659)
> 	at org.apache.ivy.core.cache.ModuleDescriptorMemoryCache.getStale(ModuleDescriptorMemoryCache.java:68)
> 	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager.getStaledMd(DefaultRepositoryCacheManager.java:676)
> 	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager.cacheModuleDescriptor(DefaultRepositoryCacheManager.java:993)
> 	at org.apache.ivy.plugins.resolver.BasicResolver.parse(BasicResolver.java:546)
> 	at org.apache.ivy.plugins.resolver.BasicResolver.getDependency(BasicResolver.java:266)
> 	at org.apache.ivy.plugins.resolver.IBiblioResolver.getDependency(IBiblioResolver.java:503)
> 	at org.apache.ivy.plugins.resolver.ChainResolver.getDependency(ChainResolver.java:104)
> 	at org.apache.ivy.core.resolve.IvyNode.loadData(IvyNode.java:169)
> 	at org.apache.ivy.core.resolve.VisitNode.loadData(VisitNode.java:287)
> 	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:696)
> 	at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:781)
> 	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:704)
> 	at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:781)
> 	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:704)
> 	at org.apache.ivy.core.resolve.ResolveEngine.getDependencies(ResolveEngine.java:576)
> 	at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:237)
> 	at xsbt.boot.Update.resolve(Update.scala:159)
> 	at xsbt.boot.Update.update(Update.scala:116)
> 	at xsbt.boot.Update.update(Update.scala:110)
> 	at xsbt.boot.Update.xsbt$boot$Update$$lockedApply(Update.scala:73)
> 	at xsbt.boot.Update$$anon$2.call(Update.scala:67)
> 	at xsbt.boot.Update$$anon$2.call(Update.scala:67)
> 	at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:63)
> 	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
> 	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
> 	at xsbt.boot.Using$.withResource(Using.scala:11)
> 	at xsbt.boot.Using$.apply(Using.scala:10)
> 	at xsbt.boot.Locks$GlobalLock.withFileLock(Locks.scala:67)
> 	at xsbt.boot.Locks$GlobalLock.liftedTree1$1(Locks.scala:45)
> 	at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:45)
> 	at xsbt.boot.Locks$.apply(Locks.scala:31)
> 	at xsbt.boot.Update.apply(Update.scala:68)
> 	at xsbt.boot.Provider$initialize.call(Provider.scala:41)
> 	at xsbt.boot.Provider$initialize.call(Provider.scala:32)
> 	at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:63)
> 	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
> 	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
> 	at xsbt.boot.Using$.withResource(Using.scala:11)
> 	at xsbt.boot.Using$.apply(Using.scala:10)
> 	at xsbt.boot.Locks$GlobalLock.withFileLock(Locks.scala:67)
> 	at xsbt.boot.Locks$GlobalLock.liftedTree1$1(Locks.scala:45)
> 	at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:45)
> 	at xsbt.boot.Locks$.apply(Locks.scala:31)
> 	at xsbt.boot.Provider$class.$init$(Provider.scala:31)
> 	at xsbt.boot.Launch$ScalaProvider$AppProvider.<init>(Launch.scala:100)
> 	at xsbt.boot.Launch$ScalaProvider.app(Launch.scala:98)
> 	at xsbt.boot.Launch$.run(Launch.scala:49)
> 	at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:42)
> 	at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:42)
> 	at xsbt.boot.Launch$.launch(Launch.scala:57)
> 	at xsbt.boot.Launch$.explicit(Launch.scala:42)
> 	at xsbt.boot.Launch$.initialized(Launch.scala:38)
> 	at xsbt.boot.Launch$.parsed(Launch.scala:31)
> 	at xsbt.boot.Launch$.configured(Launch.scala:21)
> 	at xsbt.boot.Launch$.apply(Launch.scala:16)
> 	at xsbt.boot.Launch$.apply(Launch.scala:13)
> 	at xsbt.boot.Boot$.runImpl(Boot.scala:24)
> 	at xsbt.boot.Boot$.run(Boot.scala:19)
> 	at xsbt.boot.Boot$.main(Boot.scala:15)
> 	at xsbt.boot.Boot.main(Boot.scala)
> [Fatal Error] ivy-0.9.94.xml.original:2:1: Content is not allowed in prolog.
> org.xml.sax.SAXParseException: Content is not allowed in prolog.
> 	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:249)
> 	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)
> 	at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:153)
> 	at org.apache.ivy.util.XMLHelper.parseToDom(XMLHelper.java:196)
> 	at org.apache.ivy.plugins.parser.m2.PomReader.<init>(PomReader.java:95)
> 	at org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:118)
> 	at org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:108)
> 	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager$MyModuleDescriptorProvider.provideModule(DefaultRepositoryCacheManager.java:659)
> 	at org.apache.ivy.core.cache.ModuleDescriptorMemoryCache.getStale(ModuleDescriptorMemoryCache.java:68)
> 	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager.getStaledMd(DefaultRepositoryCacheManager.java:676)
> 	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager.cacheModuleDescriptor(DefaultRepositoryCacheManager.java:993)
> 	at org.apache.ivy.plugins.resolver.BasicResolver.parse(BasicResolver.java:546)
> 	at org.apache.ivy.plugins.resolver.BasicResolver.getDependency(BasicResolver.java:266)
> 	at org.apache.ivy.plugins.resolver.IBiblioResolver.getDependency(IBiblioResolver.java:503)
> 	at org.apache.ivy.plugins.resolver.ChainResolver.getDependency(ChainResolver.java:104)
> 	at org.apache.ivy.core.resolve.IvyNode.loadData(IvyNode.java:169)
> 	at org.apache.ivy.core.resolve.VisitNode.loadData(VisitNode.java:287)
> 	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:696)
> 	at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:781)
> 	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:704)
> 	at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:781)
> 	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:704)
> 	at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:781)
> 	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:704)
> 	at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:781)
> 	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:704)
> 	at org.apache.ivy.core.resolve.ResolveEngine.getDependencies(ResolveEngine.java:576)
> 	at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:237)
> 	at xsbt.boot.Update.resolve(Update.scala:159)
> 	at xsbt.boot.Update.update(Update.scala:116)
> 	at xsbt.boot.Update.update(Update.scala:110)
> 	at xsbt.boot.Update.xsbt$boot$Update$$lockedApply(Update.scala:73)
> 	at xsbt.boot.Update$$anon$2.call(Update.scala:67)
> 	at xsbt.boot.Update$$anon$2.call(Update.scala:67)
> 	at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:63)
> 	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
> 	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
> 	at xsbt.boot.Using$.withResource(Using.scala:11)
> 	at xsbt.boot.Using$.apply(Using.scala:10)
> 	at xsbt.boot.Locks$GlobalLock.withFileLock(Locks.scala:67)
> 	at xsbt.boot.Locks$GlobalLock.liftedTree1$1(Locks.scala:45)
> 	at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:45)
> 	at xsbt.boot.Locks$.apply(Locks.scala:31)
> 	at xsbt.boot.Update.apply(Update.scala:68)
> 	at xsbt.boot.Provider$initialize.call(Provider.scala:41)
> 	at xsbt.boot.Provider$initialize.call(Provider.scala:32)
> 	at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:63)
> 	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
> 	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
> 	at xsbt.boot.Using$.withResource(Using.scala:11)
> 	at xsbt.boot.Using$.apply(Using.scala:10)
> 	at xsbt.boot.Locks$GlobalLock.withFileLock(Locks.scala:67)
> 	at xsbt.boot.Locks$GlobalLock.liftedTree1$1(Locks.scala:45)
> 	at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:45)
> 	at xsbt.boot.Locks$.apply(Locks.scala:31)
> 	at xsbt.boot.Provider$class.$init$(Provider.scala:31)
> 	at xsbt.boot.Launch$ScalaProvider$AppProvider.<init>(Launch.scala:100)
> 	at xsbt.boot.Launch$ScalaProvider.app(Launch.scala:98)
> 	at xsbt.boot.Launch$.run(Launch.scala:49)
> 	at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:42)
> 	at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:42)
> 	at xsbt.boot.Launch$.launch(Launch.scala:57)
> 	at xsbt.boot.Launch$.explicit(Launch.scala:42)
> 	at xsbt.boot.Launch$.initialized(Launch.scala:38)
> 	at xsbt.boot.Launch$.parsed(Launch.scala:31)
> 	at xsbt.boot.Launch$.configured(Launch.scala:21)
> 	at xsbt.boot.Launch$.apply(Launch.scala:16)
> 	at xsbt.boot.Launch$.apply(Launch.scala:13)
> 	at xsbt.boot.Boot$.runImpl(Boot.scala:24)
> 	at xsbt.boot.Boot$.run(Boot.scala:19)
> 	at xsbt.boot.Boot$.main(Boot.scala:15)
> 	at xsbt.boot.Boot.main(Boot.scala)
> Inspecting the ivy.xml file in question showed binary gibberish.  Situation resolved itself when I turned off the proxy through System Preferences, deleted the .ivy2 directory, and then ran "sbt update" again.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (IVY-1284) Ivy XML files fail with "Content is not allowed in prolog" when using Polipo proxy cache

Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-1284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13030916#comment-13030916 ] 

Maarten Coene commented on IVY-1284:
------------------------------------

Since you are using maven repositories, Ivy will look for a POM file instead of an IVY file. I guess it goes wrong there, could you take a look in your ivy-cache and open the "commons-collections-3.1.xml.original" file to see it is a valid maven POM file?

> Ivy XML files fail with "Content is not allowed in prolog" when using Polipo proxy cache
> ----------------------------------------------------------------------------------------
>
>                 Key: IVY-1284
>                 URL: https://issues.apache.org/jira/browse/IVY-1284
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.2.0
>         Environment: MacOS 10.6.7, sbt 0.7.5, jdk1.6.0_24
>            Reporter: Will Sargent
>            Priority: Minor
>             Fix For: 2.2.0
>
>
> This is an interesting issue, and one that I'm not 100% is a result of the proxy cache, but:
> 1. Set up Polipo (http://www.pps.jussieu.fr/~jch/software/polipo/) out of the box using Macports (sudo port install polipo)
> 2. Set up the System Preferences to use the HTTP proxy to go through Polipo.
> 3. Delete the ~/.ivy2 directory
> 4. Go to the SBT project you have set up, and type "sbt update" (or I'm assuming any Ivy related network task)
> Instead of getting the file you expect, you get the following:
> Getting org.scala-tools.sbt sbt_2.7.7 0.7.4 ...
> [Fatal Error] ivy-0.1.31.xml.original:2:1: Content is not allowed in prolog.
> org.xml.sax.SAXParseException: Content is not allowed in prolog.
> 	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:249)
> 	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)
> 	at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:153)
> 	at org.apache.ivy.util.XMLHelper.parseToDom(XMLHelper.java:196)
> 	at org.apache.ivy.plugins.parser.m2.PomReader.<init>(PomReader.java:95)
> 	at org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:118)
> 	at org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:108)
> 	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager$MyModuleDescriptorProvider.provideModule(DefaultRepositoryCacheManager.java:659)
> 	at org.apache.ivy.core.cache.ModuleDescriptorMemoryCache.getStale(ModuleDescriptorMemoryCache.java:68)
> 	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager.getStaledMd(DefaultRepositoryCacheManager.java:676)
> 	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager.cacheModuleDescriptor(DefaultRepositoryCacheManager.java:993)
> 	at org.apache.ivy.plugins.resolver.BasicResolver.parse(BasicResolver.java:546)
> 	at org.apache.ivy.plugins.resolver.BasicResolver.getDependency(BasicResolver.java:266)
> 	at org.apache.ivy.plugins.resolver.IBiblioResolver.getDependency(IBiblioResolver.java:503)
> 	at org.apache.ivy.plugins.resolver.ChainResolver.getDependency(ChainResolver.java:104)
> 	at org.apache.ivy.core.resolve.IvyNode.loadData(IvyNode.java:169)
> 	at org.apache.ivy.core.resolve.VisitNode.loadData(VisitNode.java:287)
> 	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:696)
> 	at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:781)
> 	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:704)
> 	at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:781)
> 	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:704)
> 	at org.apache.ivy.core.resolve.ResolveEngine.getDependencies(ResolveEngine.java:576)
> 	at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:237)
> 	at xsbt.boot.Update.resolve(Update.scala:159)
> 	at xsbt.boot.Update.update(Update.scala:116)
> 	at xsbt.boot.Update.update(Update.scala:110)
> 	at xsbt.boot.Update.xsbt$boot$Update$$lockedApply(Update.scala:73)
> 	at xsbt.boot.Update$$anon$2.call(Update.scala:67)
> 	at xsbt.boot.Update$$anon$2.call(Update.scala:67)
> 	at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:63)
> 	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
> 	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
> 	at xsbt.boot.Using$.withResource(Using.scala:11)
> 	at xsbt.boot.Using$.apply(Using.scala:10)
> 	at xsbt.boot.Locks$GlobalLock.withFileLock(Locks.scala:67)
> 	at xsbt.boot.Locks$GlobalLock.liftedTree1$1(Locks.scala:45)
> 	at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:45)
> 	at xsbt.boot.Locks$.apply(Locks.scala:31)
> 	at xsbt.boot.Update.apply(Update.scala:68)
> 	at xsbt.boot.Provider$initialize.call(Provider.scala:41)
> 	at xsbt.boot.Provider$initialize.call(Provider.scala:32)
> 	at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:63)
> 	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
> 	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
> 	at xsbt.boot.Using$.withResource(Using.scala:11)
> 	at xsbt.boot.Using$.apply(Using.scala:10)
> 	at xsbt.boot.Locks$GlobalLock.withFileLock(Locks.scala:67)
> 	at xsbt.boot.Locks$GlobalLock.liftedTree1$1(Locks.scala:45)
> 	at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:45)
> 	at xsbt.boot.Locks$.apply(Locks.scala:31)
> 	at xsbt.boot.Provider$class.$init$(Provider.scala:31)
> 	at xsbt.boot.Launch$ScalaProvider$AppProvider.<init>(Launch.scala:100)
> 	at xsbt.boot.Launch$ScalaProvider.app(Launch.scala:98)
> 	at xsbt.boot.Launch$.run(Launch.scala:49)
> 	at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:42)
> 	at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:42)
> 	at xsbt.boot.Launch$.launch(Launch.scala:57)
> 	at xsbt.boot.Launch$.explicit(Launch.scala:42)
> 	at xsbt.boot.Launch$.initialized(Launch.scala:38)
> 	at xsbt.boot.Launch$.parsed(Launch.scala:31)
> 	at xsbt.boot.Launch$.configured(Launch.scala:21)
> 	at xsbt.boot.Launch$.apply(Launch.scala:16)
> 	at xsbt.boot.Launch$.apply(Launch.scala:13)
> 	at xsbt.boot.Boot$.runImpl(Boot.scala:24)
> 	at xsbt.boot.Boot$.run(Boot.scala:19)
> 	at xsbt.boot.Boot$.main(Boot.scala:15)
> 	at xsbt.boot.Boot.main(Boot.scala)
> [Fatal Error] ivy-2.1.0.xml.original:2:1: Content is not allowed in prolog.
> org.xml.sax.SAXParseException: Content is not allowed in prolog.
> 	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:249)
> 	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)
> 	at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:153)
> 	at org.apache.ivy.util.XMLHelper.parseToDom(XMLHelper.java:196)
> 	at org.apache.ivy.plugins.parser.m2.PomReader.<init>(PomReader.java:95)
> 	at org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:118)
> 	at org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:108)
> 	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager$MyModuleDescriptorProvider.provideModule(DefaultRepositoryCacheManager.java:659)
> 	at org.apache.ivy.core.cache.ModuleDescriptorMemoryCache.getStale(ModuleDescriptorMemoryCache.java:68)
> 	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager.getStaledMd(DefaultRepositoryCacheManager.java:676)
> 	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager.cacheModuleDescriptor(DefaultRepositoryCacheManager.java:993)
> 	at org.apache.ivy.plugins.resolver.BasicResolver.parse(BasicResolver.java:546)
> 	at org.apache.ivy.plugins.resolver.BasicResolver.getDependency(BasicResolver.java:266)
> 	at org.apache.ivy.plugins.resolver.IBiblioResolver.getDependency(IBiblioResolver.java:503)
> 	at org.apache.ivy.plugins.resolver.ChainResolver.getDependency(ChainResolver.java:104)
> 	at org.apache.ivy.core.resolve.IvyNode.loadData(IvyNode.java:169)
> 	at org.apache.ivy.core.resolve.VisitNode.loadData(VisitNode.java:287)
> 	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:696)
> 	at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:781)
> 	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:704)
> 	at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:781)
> 	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:704)
> 	at org.apache.ivy.core.resolve.ResolveEngine.getDependencies(ResolveEngine.java:576)
> 	at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:237)
> 	at xsbt.boot.Update.resolve(Update.scala:159)
> 	at xsbt.boot.Update.update(Update.scala:116)
> 	at xsbt.boot.Update.update(Update.scala:110)
> 	at xsbt.boot.Update.xsbt$boot$Update$$lockedApply(Update.scala:73)
> 	at xsbt.boot.Update$$anon$2.call(Update.scala:67)
> 	at xsbt.boot.Update$$anon$2.call(Update.scala:67)
> 	at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:63)
> 	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
> 	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
> 	at xsbt.boot.Using$.withResource(Using.scala:11)
> 	at xsbt.boot.Using$.apply(Using.scala:10)
> 	at xsbt.boot.Locks$GlobalLock.withFileLock(Locks.scala:67)
> 	at xsbt.boot.Locks$GlobalLock.liftedTree1$1(Locks.scala:45)
> 	at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:45)
> 	at xsbt.boot.Locks$.apply(Locks.scala:31)
> 	at xsbt.boot.Update.apply(Update.scala:68)
> 	at xsbt.boot.Provider$initialize.call(Provider.scala:41)
> 	at xsbt.boot.Provider$initialize.call(Provider.scala:32)
> 	at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:63)
> 	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
> 	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
> 	at xsbt.boot.Using$.withResource(Using.scala:11)
> 	at xsbt.boot.Using$.apply(Using.scala:10)
> 	at xsbt.boot.Locks$GlobalLock.withFileLock(Locks.scala:67)
> 	at xsbt.boot.Locks$GlobalLock.liftedTree1$1(Locks.scala:45)
> 	at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:45)
> 	at xsbt.boot.Locks$.apply(Locks.scala:31)
> 	at xsbt.boot.Provider$class.$init$(Provider.scala:31)
> 	at xsbt.boot.Launch$ScalaProvider$AppProvider.<init>(Launch.scala:100)
> 	at xsbt.boot.Launch$ScalaProvider.app(Launch.scala:98)
> 	at xsbt.boot.Launch$.run(Launch.scala:49)
> 	at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:42)
> 	at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:42)
> 	at xsbt.boot.Launch$.launch(Launch.scala:57)
> 	at xsbt.boot.Launch$.explicit(Launch.scala:42)
> 	at xsbt.boot.Launch$.initialized(Launch.scala:38)
> 	at xsbt.boot.Launch$.parsed(Launch.scala:31)
> 	at xsbt.boot.Launch$.configured(Launch.scala:21)
> 	at xsbt.boot.Launch$.apply(Launch.scala:16)
> 	at xsbt.boot.Launch$.apply(Launch.scala:13)
> 	at xsbt.boot.Boot$.runImpl(Boot.scala:24)
> 	at xsbt.boot.Boot$.run(Boot.scala:19)
> 	at xsbt.boot.Boot$.main(Boot.scala:15)
> 	at xsbt.boot.Boot.main(Boot.scala)
> [Fatal Error] ivy-0.9.94.xml.original:2:1: Content is not allowed in prolog.
> org.xml.sax.SAXParseException: Content is not allowed in prolog.
> 	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:249)
> 	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)
> 	at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:153)
> 	at org.apache.ivy.util.XMLHelper.parseToDom(XMLHelper.java:196)
> 	at org.apache.ivy.plugins.parser.m2.PomReader.<init>(PomReader.java:95)
> 	at org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:118)
> 	at org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:108)
> 	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager$MyModuleDescriptorProvider.provideModule(DefaultRepositoryCacheManager.java:659)
> 	at org.apache.ivy.core.cache.ModuleDescriptorMemoryCache.getStale(ModuleDescriptorMemoryCache.java:68)
> 	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager.getStaledMd(DefaultRepositoryCacheManager.java:676)
> 	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager.cacheModuleDescriptor(DefaultRepositoryCacheManager.java:993)
> 	at org.apache.ivy.plugins.resolver.BasicResolver.parse(BasicResolver.java:546)
> 	at org.apache.ivy.plugins.resolver.BasicResolver.getDependency(BasicResolver.java:266)
> 	at org.apache.ivy.plugins.resolver.IBiblioResolver.getDependency(IBiblioResolver.java:503)
> 	at org.apache.ivy.plugins.resolver.ChainResolver.getDependency(ChainResolver.java:104)
> 	at org.apache.ivy.core.resolve.IvyNode.loadData(IvyNode.java:169)
> 	at org.apache.ivy.core.resolve.VisitNode.loadData(VisitNode.java:287)
> 	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:696)
> 	at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:781)
> 	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:704)
> 	at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:781)
> 	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:704)
> 	at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:781)
> 	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:704)
> 	at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:781)
> 	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:704)
> 	at org.apache.ivy.core.resolve.ResolveEngine.getDependencies(ResolveEngine.java:576)
> 	at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:237)
> 	at xsbt.boot.Update.resolve(Update.scala:159)
> 	at xsbt.boot.Update.update(Update.scala:116)
> 	at xsbt.boot.Update.update(Update.scala:110)
> 	at xsbt.boot.Update.xsbt$boot$Update$$lockedApply(Update.scala:73)
> 	at xsbt.boot.Update$$anon$2.call(Update.scala:67)
> 	at xsbt.boot.Update$$anon$2.call(Update.scala:67)
> 	at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:63)
> 	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
> 	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
> 	at xsbt.boot.Using$.withResource(Using.scala:11)
> 	at xsbt.boot.Using$.apply(Using.scala:10)
> 	at xsbt.boot.Locks$GlobalLock.withFileLock(Locks.scala:67)
> 	at xsbt.boot.Locks$GlobalLock.liftedTree1$1(Locks.scala:45)
> 	at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:45)
> 	at xsbt.boot.Locks$.apply(Locks.scala:31)
> 	at xsbt.boot.Update.apply(Update.scala:68)
> 	at xsbt.boot.Provider$initialize.call(Provider.scala:41)
> 	at xsbt.boot.Provider$initialize.call(Provider.scala:32)
> 	at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:63)
> 	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
> 	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:67)
> 	at xsbt.boot.Using$.withResource(Using.scala:11)
> 	at xsbt.boot.Using$.apply(Using.scala:10)
> 	at xsbt.boot.Locks$GlobalLock.withFileLock(Locks.scala:67)
> 	at xsbt.boot.Locks$GlobalLock.liftedTree1$1(Locks.scala:45)
> 	at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:45)
> 	at xsbt.boot.Locks$.apply(Locks.scala:31)
> 	at xsbt.boot.Provider$class.$init$(Provider.scala:31)
> 	at xsbt.boot.Launch$ScalaProvider$AppProvider.<init>(Launch.scala:100)
> 	at xsbt.boot.Launch$ScalaProvider.app(Launch.scala:98)
> 	at xsbt.boot.Launch$.run(Launch.scala:49)
> 	at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:42)
> 	at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:42)
> 	at xsbt.boot.Launch$.launch(Launch.scala:57)
> 	at xsbt.boot.Launch$.explicit(Launch.scala:42)
> 	at xsbt.boot.Launch$.initialized(Launch.scala:38)
> 	at xsbt.boot.Launch$.parsed(Launch.scala:31)
> 	at xsbt.boot.Launch$.configured(Launch.scala:21)
> 	at xsbt.boot.Launch$.apply(Launch.scala:16)
> 	at xsbt.boot.Launch$.apply(Launch.scala:13)
> 	at xsbt.boot.Boot$.runImpl(Boot.scala:24)
> 	at xsbt.boot.Boot$.run(Boot.scala:19)
> 	at xsbt.boot.Boot$.main(Boot.scala:15)
> 	at xsbt.boot.Boot.main(Boot.scala)
> Inspecting the ivy.xml file in question showed binary gibberish.  Situation resolved itself when I turned off the proxy through System Preferences, deleted the .ivy2 directory, and then ran "sbt update" again.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira