You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WebSitemapGeneratorwsg;
// generate foo sitemapwsg = WebSitemapGenerator.builder("http://www.example.com", newFile(OUT_DIR)).fileNamePrefix("sitemap_big").gzip(true).autoValidate(true).build();
for (inti = 0; i < 49999; i++)
wsg.addUrl("http://www.example.com/foo" + i + ".html");
wsg.write();
wsg.writeSitemapsWithIndex(); // generate the sitemap_index.xml
Exception:
Exception in thread "main" java.lang.RuntimeException: Sitemap file failed to validate (bug?)
at com.redfin.sitemapgenerator.SitemapGenerator.writeSiteMap(SitemapGenerator.java:248)
at com.redfin.sitemapgenerator.SitemapGenerator.write(SitemapGenerator.java:169)
at com.redfin.sitemapgenerator.WebSitemapGenerator.write(WebSitemapGenerator.java:12)
at com.nttdata.sitemap.test.SitemapBuilderTest.main(SitemapBuilderTest.java:19)
Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Il contenuto non è consentito nel prologo.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:198)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:177)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:441)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:368)
at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1388)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:998)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:607)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:116)
The text was updated successfully, but these errors were encountered:
CODE:
Exception:
The text was updated successfully, but these errors were encountered: