[ https://issues.apache.org/jira/browse/IVY-1597?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Antoine Levy-Lambert closed IVY-1597. ------------------------------------- Resolution: Fixed > 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)