title: Solr DIH and SAXParseException Content is not allowed in prolog
body: <p>I'm new to Solr and trying to index the file system, using Solr's DIH. Funny thing is, it worked just fine - for a little while. Now the DIH won't initialize and I keep getting a SAXParseException: Content is not allowed in prolog. </p>
  
  <p>Any ideas?
  I'm using Solr 3.6.0 on Debian. And I checked the config file with a hex editor but found nothing.</p>
  
  <p>Here's the data-config.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;dataConfig&gt;
  &lt;dataSource type="BinFileDataSource" name="bin"/&gt;
  &lt;document&gt;      
      &lt;entity name="files"
          processor="FileListEntityProcessor"
          fileName=".*.(pdf)|(doc)|(docx)|(ppt)|(pptx)"
          baseDir="/mnt/C"
          rootEntity="false"
          dataSource="null"
          recursive="true"
          onError="skip"&gt;
          &lt;field name="id" column="fileAbsolutePath"/&gt;
          &lt;field name="lastModified" column="fileLastModified"/&gt;
          &lt;entity name="f"
              processor="TikaEntityProcessor"
              url="${files.fileAbsolutePath}"
              dataSource="bin"
              format="text"
              onError="skip"&gt;
              &lt;field name="fileName" column="file"/&gt;
              &lt;field name="author" column="Author" meta="true"/&gt;
              &lt;field name="title" column="title" meta="true"/&gt;
              &lt;field name="text" column="text"/&gt;
          &lt;/entity&gt;
      &lt;/entity&gt;
  &lt;/document&gt;
  &lt;/dataConfig&gt;
  </code></pre>
  
  <p>And the error:</p>
  
  <pre><code>org.apache.solr.handler.dataimport.DataImportHandlerException: Exception occurred while initializing context
  at org.apache.solr.handler.dataimport.DataImporter.loadDataConfig(DataImporter.java:231)
  at org.apache.solr.handler.dataimport.DataImporter.&lt;init&gt;(DataImporter.java:119)
  at org.apache.solr.handler.dataimport.DataImportHandler.handleRequestBody(DataImportHandler.java:168)
  at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
  at org.apache.solr.core.SolrCore.execute(SolrCore.java:1376)
  at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:365)
  at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:260)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
  at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
  at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
  at java.lang.Thread.run(Thread.java:679) Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.
  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:391)
  at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1404)
  at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1014)
  at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:625)
  at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:488)
  at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:819)
  at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:748)
  at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)
  at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:239)
  at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:288)
  at org.apache.solr.handler.dataimport.DataImporter.loadDataConfig(DataImporter.java:216)
  ... 18 more
  </code></pre>