DOMParser.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.DOMParser.parse
(source)

Typical Exception Messages

  1. Premature end of file.
  2. Content is not allowed in prolog.
  3. “description”must use“</description>”end。
  4. org.xml.sax.SAXParseException: Premature end of file.
  5. White spaces are required between publicId and systemId.
  6. The markup in the document following the root element must be well-formed.
  7. Content is not allowed in trailing section.
  8. The processing instruction target matching "[xX][mM][lL]" is not allowed.
  9. Invalid byte 1 of 1-byte UTF-8 sequence.
  10. Error parsing WSDL

Specific cases

External results for this pattern (236)

  1. mcreecevia GitHub5 months ago
    Internal Server Error (500) - The server encountered an unexpected condition which prevented it from fulfilling the r equest
    Show stack trace
  2. Darius Jazayerivia JIRA5 months ago
    Invalid byte 2 of 3-byte UTF-8 sequence.
    Show stack trace
  3. bitontivia Eclipse Bugzilla5 months ago
  4. Unknown authorvia xilinx.com5 months ago
  5. Kumarvia Stack Overflow5 months ago
    javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR: Problem parsing 'http://ip:port/AppName/ServiceName'.: (http://ip:port/AppName/ServiceName%27.:) org.xml.sax.SAXParseException: The markup in the document following the root element must be well-formed.
    Show stack trace
  6. 843834via Oracle Community5 months ago
    The markup declarations contained or pointed to by the document type declaration must be well-formed.
    Show stack trace
  7. akiezunvia Eclipse Bugzilla5 months ago
    Premature end of file.
    Show stack trace