AbstractSAXParser.parse() has thrown a SAXParseException

org.xml.sax.SAXParseException
Javadoc
Encapsulate an XML parse error or warning.
This module, both source code and documentation, is in the Public Domain, and comes with NO WARRANTY. See http://www.saxproject.org for further information.

This exception may include information for locating the error in the original XML document, as if it came from a {@link Locator} object. Note that although the application will receive a SAXParseException as the argument to the handlers in the {@link org.xml.sax.ErrorHandler ErrorHandler} interface, the application is not actually required to throw the exception; instead, it can simply read the information in it and take a different action.

Since this exception is a subclass of {@link org.xml.sax.SAXException SAXException}, it inherits the ability to wrap another exception.

@since SAX 1.0 @author David Megginson @version 2.0.1 (sax2r2) @see org.xml.sax.SAXException @see org.xml.sax.Locator @see org.xml.sax.ErrorHandler
at org.apache.xerces.parsers.AbstractSAXParser.parse
(source)

Typical Exception Messages

  1. Premature end of file.
  2. Content is not allowed in prolog.
  3. The content of elements must consist of well-formed character data or markup.
  4. The processing instruction target matching "[xX][mM][lL]" is not allowed.
  5. XML document structures must start and end within the same entity.
  6. Content is not allowed in trailing section.
  7. The entity name must immediately follow the '&' in the entity reference.
  8. The processing instruction target matching "[xX][mM][lL]" is not allowed.
  9. Content is not
  10. The markup in the document following the root element must be well-formed.

Specific cases

External results for this pattern (184)

  1. GoogleCodeExportervia GitHub3 months ago
    The element type "table:table-cell" must be terminated by the matching end-tag "</table:table-cell>".
    Show stack trace
  2. mgilbertnzvia GitHub5 months ago
    The element type "text:p" must be terminated by the matching end-tag "</text:p>".
    Show stack trace
  3. Vincent Massolvia XWiki.org JIRA5 months ago
  4. Ecaterina Moraru (Valica)via XWiki.org JIRA5 months ago
  5. Vincent Massolvia XWiki.org JIRA5 months ago
    Error number 0 in 4: Failed to convert document to syntax [xwiki/2.1] Wrapped Exception: Error number 0 in 4: Failed to convert document to syntax [XWiki 2.1] Wrapped Exception: Error number 0 in 4: Failed to parse content of syntax [markdown/1.0] Wrapped Exception: Failed to parse input source
    Show stack trace
  6. Carine M.via XWiki.org JIRA5 months ago
    The string "--" is not permitted within comments.
    Show stack trace
  7. Unknown authorvia univ-angers.fr5 months ago
    The content of element type "id" is incomplete, it must match "(nom,prenom)".
    Show stack trace
  8. Unknown authorvia free.fr5 months ago
    N3SourceFromXML_Gloze.extractXMLNamespaces(): 15:03:31 [AWT-EventQueue-0] [error] AWT-EventQueue-0: Could not load from URL http://eulergui.sourceforge.net/examples# 15:03:31 [AWT-EventQueue-0] [error] AWT-EventQueue-0: reason: White spaces are required between publicId and systemId. 15:03:31 [AWT-EventQueue-0] [error] AWT-EventQueue-0: cause: null
    Show stack trace
  9. jeffolsonvia Jenkins JIRA5 months ago
    The entity name must immediately follow the '&' in the entity reference.
    Show stack trace
  10. 523150via Oracle Community5 months ago
    Content is not allowed in prolog.
    Show stack trace