[
https://issues.apache.org/jira/browse/IVY-1597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16706489#comment-16706489
]
Antoine Levy-Lambert commented on IVY-1597:
-------------------------------------------
It looks like this issue is caused by Ivy downloading web pages coming from my
Internet provider when trying to resolve a dummy host name. A file called
{code:java}
build/cache/org.apache/commons-fileupload/ivy-1.0.xml.original.part{code}
{code:java}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><meta
http-equiv="refresh"
content="0;url=http://searchassist.verizon.com/main?ParticipantID=euekiz39ksg8nwp7iqj2fp5wzfwi5q76&FailedURI=http%3A%2F%2Funknown.host.comx%2Forg%2Fapache%2Fcommons-fileupload%2F1.0%2Fcommons-fileupload-1.0.pom&FailureMode=1&Implementation=&AddInType=4&Version=pywr1.0&ClientLocation=us"/><script
type="text/javascript">url="http://searchassist.verizon.com/main?ParticipantID=euekiz39ksg8nwp7iqj2fp5wzfwi5q76&FailedURI=http%3A%2F%2Funknown.host.comx%2Forg%2Fapache%2Fcommons-fileupload%2F1.0%2Fcommons-fileupload-1.0.pom&FailureMode=1&Implementation=&AddInType=4&Version=pywr1.0&ClientLocation=us";if(top.location!=location){var
w=window,d=document,e=d.documentElement,b=d.body,x=w.innerWidth||e.clientWidth||b.clientWidth,y=w.innerHeight||e.clientHeight||b.clientHeight;url+="&w="+x+"&h="+y;}window.location.replace(url);</script></head><body></body></html>{code}
> IBiblioResolverTest#testErrorReport failing
> -------------------------------------------
>
> Key: IVY-1597
> URL: https://issues.apache.org/jira/browse/IVY-1597
> Project: Ivy
> Issue Type: Bug
> Components: Core
> Reporter: Antoine Levy-Lambert
> Priority: Major
>
> When building Ivy from source I am seeing this error :
>
> |estErrorReport|Error|Already seen doctype.
>
> {{java.text.ParseException: Already seen doctype.}}
> {{at
> org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.newParserException(PomModuleDescriptorParser.java:470)}}
> {{at
> org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:326)}}
> {{at
> org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:123)}}
> {{at
> org.apache.ivy.core.cache.DefaultRepositoryCacheManager$MyModuleDescriptorProvider.provideModule(DefaultRepositoryCacheManager.java:841)}}
> {{at
> org.apache.ivy.core.cache.ModuleDescriptorMemoryCache.getStale(ModuleDescriptorMemoryCache.java:68)}}
> {{at
> org.apache.ivy.core.cache.DefaultRepositoryCacheManager.getStaledMd(DefaultRepositoryCacheManager.java:858)}}
> {{at
> org.apache.ivy.core.cache.DefaultRepositoryCacheManager.cacheModuleDescriptor(DefaultRepositoryCacheManager.java:1362)}}
> {{at
> org.apache.ivy.plugins.resolver.BasicResolver.parse(BasicResolver.java:541)}}
> {{at
> org.apache.ivy.plugins.resolver.BasicResolver.getDependency(BasicResolver.java:278)}}
> {{at
> org.apache.ivy.plugins.resolver.IBiblioResolver.getDependency(IBiblioResolver.java:554)}}
> {{at
> org.apache.ivy.plugins.resolver.IBiblioResolverTest.testErrorReport(IBiblioResolverTest.java:208)}}
> {{Caused by: org.xml.sax.SAXParseException; systemId:
> file:/Users/antoine/dev/asf/ant-ivy/build/cache/org.apache/commons-fileupload/ivy-1.0.xml.original;
> lineNumber: 2; columnNumber: 10; Already seen doctype.}}
> {{at
> com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:257)}}
> {{at
> com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339)}}
> {{at org.apache.ivy.util.XMLHelper.parseToDom(XMLHelper.java:220)}}
> {{at org.apache.ivy.plugins.parser.m2.PomReader.<init>(PomReader.java:129)}}
> {{at
> org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:140)}}|
>
>
> When running IBiblioResolverTest#testErrorReport from within IntelliJ the
> logs contain this :
>
> {noformat}
> 0 = "4 test: no namespace defined: using system"
> 1 = "4 \tno ivy file in cache for org.apache#commons-fileupload;1.0: tried
> build/cache/org.apache/commons-fileupload/ivy-1.0.xml"
> 2 = "4 \t trying
> http://unknown.host.comx/org/apache/commons-fileupload/1.0/commons-fileupload-1.0.pom"
> 3 = "3 \t\ttried
> http://unknown.host.comx/org/apache/commons-fileupload/1.0/commons-fileupload-1.0.pom"
> 4 = "3 Execution environment profile JavaSE-1.2 loaded"
> 5 = "3 Execution environment profile JavaSE-1.3 loaded"
> 6 = "3 Execution environment profile JavaSE-1.4 loaded"
> 7 = "3 Execution environment profile JavaSE-1.5 loaded"
> 8 = "3 Execution environment profile JavaSE-1.6 loaded"
> 9 = "3 Execution environment profile JavaSE-1.7 loaded"
> 10 = "3 Execution environment profile OSGi/Minimum-1.1 loaded"
> 11 = "3 Execution environment profile JavaSE-1.8 loaded"
> 12 = "3 Execution environment profile CDC-1.0/Foundation-1.0 loaded"
> 13 = "3 Execution environment profile CDC-1.1/Foundation-1.1 loaded"
> 14 = "3 Execution environment profile OSGi/Minimum-1.2 loaded"
> 15 = "3 Execution environment profile OSGi/Minimum-1.0 loaded"
> 16 = "3 \ttest: found md file for org.apache#commons-fileupload;1.0"
> 17 = "3 \t\t=>
> http://unknown.host.comx/org/apache/commons-fileupload/1.0/commons-fileupload-1.0.pom
> (1.0)"
> 18 = "4 \tparser = pom parser"
> 19 = "4 \tno ivy file in cache for org.apache#commons-fileupload;1.0: tried
> build/cache/org.apache/commons-fileupload/ivy-1.0.xml"
> 20 = "3 downloading
> http://unknown.host.comx/org/apache/commons-fileupload/1.0/commons-fileupload-1.0.pom
> ..."
> 21 = "3 \ttest: downloading
> http://unknown.host.comx/org/apache/commons-fileupload/1.0/commons-fileupload-1.0.pom"
> 22 = "4 \t\tto
> /Users/antoine/dev/asf/build/cache/org.apache/commons-fileupload/ivy-1.0.xml.original.part"
> 23 = "3 \t[SUCCESSFUL ]
> org.apache#commons-fileupload;1.0!commons-fileupload.pom(pom.original)
> (203ms)"
> 24 = "3 WARN: io problem while parsing ivy file:
> http://unknown.host.comx/org/apache/commons-fileupload/1.0/commons-fileupload-1.0.pom
> (java.net.MalformedURLException: null)"
> 25 = "4 java.net.MalformedURLException\n\tat
> java.net.URL.<init>(URL.java:627)\n\tat
> java.net.URL.<init>(URL.java:490)\n\tat
> java.net.URL.<init>(URL.java:439)\n\tat
> com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:620)\n\tat
>
> com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:1304)\n\tat
>
> com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:1270)\n\tat
>
> com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:264)\n\tat
>
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(XMLDocumentScannerImpl.java:1161)\n\tat
>
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(XMLDocumentScannerImpl.java:1045)\n\tat
>
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:959)\n\tat
>
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumen"{noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)