Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.5
    • Fix Version/s: 0.6
    • Component/s: parser
    • Labels:
      None

      Description

      As of r881342, I encounter the following error when trying to parse the "HTML" from <http://www.nheri.org/> with the AutoDetectParser. (I will attach my example.) It works fine if I use the HtmlParser explicitly.

      org.apache.tika.exception.TikaException: TIKA-237: Illegal SAXException from org.apache.tika.parser.xml.DcXMLParser@45d64c37
      at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:130)
      at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:101)
      at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:114)
      at org.cdlib.was.tikaIndexer.parser$.main(Parser.scala:18)
      at org.cdlib.was.tikaIndexer.parser.main(Parser.scala)
      Caused by: org.xml.sax.SAXParseException: The markup in the document following the root element must be well-formed.
      at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
      at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174)
      at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388)
      at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1414)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$TrailingMiscDriver.next(XMLDocumentScannerImpl.java:1422)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
      at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
      at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
      at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
      at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
      at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
      at javax.xml.parsers.SAXParser.parse(SAXParser.java:198)
      at org.apache.tika.parser.xml.XMLParser.parse(XMLParser.java:72)
      at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:120)

      1. nheri.html
        27 kB
        Erik Hetzner

        Issue Links

          Activity

          Erik Hetzner created issue -
          Erik Hetzner made changes -
          Field Original Value New Value
          Attachment nheri.html [ 12425285 ]
          Chris A. Mattmann made changes -
          Affects Version/s 0.5 [ 12314095 ]
          Affects Version/s 0.6 [ 12314358 ]
          Assignee Chris A. Mattmann [ chrismattmann ]
          Fix Version/s 0.6 [ 12314358 ]
          Component/s parser [ 12312047 ]
          Chris A. Mattmann made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Chris A. Mattmann made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Chris A. Mattmann made changes -
          Link This issue is related to TIKA-367 [ TIKA-367 ]
          Chris A. Mattmann made changes -
          Link This issue is related to TIKA-1129 [ TIKA-1129 ]
          Tim Allison made changes -
          Link This issue relates to TIKA-1139 [ TIKA-1139 ]

            People

            • Assignee:
              Chris A. Mattmann
              Reporter:
              Erik Hetzner
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development