Issue: An error occurred while parsing: The markup in the document following the root element must be well-formed
******************************************************************************************************************************************
Complete Error:
<?xml version = "1.0" encoding = "UTF-8"?>
<ns0:ErrorReport xmlns:ns0 = "http://www.tibco.com/pe/EngineTypes">
<StackTrace>Job-24000 Error in [Processes/Offer/NewOfferAdd.process/Parse XML]
An error occurred while parsing: The markup in the document following the root element must be well-formed..
at com.tibco.plugin.xml.XMLParseActivity.for(Unknown Source)
at com.tibco.plugin.xml.XMLParseActivity.eval(Unknown Source)
at com.tibco.pe.plugin.Activity.eval(Unknown Source)
at com.tibco.pe.core.TaskImpl.eval(Unknown Source)
at com.tibco.pe.core.Job.a(Unknown Source)
at com.tibco.pe.core.Job.k(Unknown Source)
at com.tibco.pe.core.JobDispatcher$JobCourier.a(Unknown Source)
at com.tibco.pe.core.JobDispatcher$JobCourier.run(Unknown Source)
caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 15848; The markup in the document following the root element must be well-formed.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at com.tibco.xml.datamodel.parse.DefaultXiParser.parse(DefaultXiParser.java:120)
at com.tibco.plugin.xml.XMLParseActivity.for(Unknown Source)
at com.tibco.plugin.xml.XMLParseActivity.eval(Unknown Source)
at com.tibco.pe.plugin.Activity.eval(Unknown Source)
at com.tibco.pe.core.TaskImpl.eval(Unknown Source)
at com.tibco.pe.core.Job.a(Unknown Source)
at com.tibco.pe.core.Job.k(Unknown Source)
at com.tibco.pe.core.JobDispatcher$JobCourier.a(Unknown Source)
at com.tibco.pe.core.JobDispatcher$JobCourier.run(Unknown Source)
</StackTrace>
<Msg>An error occurred while parsing: The markup in the document following the root element must be well-formed..</Msg>
<FullClass>com.tibco.plugin.xml.XMLParseException</FullClass>
<Class>XMLParseException</Class>
<ProcessStack>Processes/Offer/NewOfferAdd.process/Parse XML</ProcessStack>
<MsgCode>BW-XML-100005</MsgCode>
<Data>
<ns1:XMLParseException xmlns:ns1 = "http://schemas.tibco.com/bw/plugins/xml/5.0/xmlExceptions">
<msg>An error occurred while parsing: The markup in the document following the root element must be well-formed..</msg>
<msgCode>BW-XML-100005</msgCode>
</ns1:XMLParseException>
</Data>
</ns0:ErrorReport>
******************************************************************************************************************************************
Resolution:
The parse xml is getting an invalid xml to parse. Check that the xml is correct, properly formatted and it has proper tags (with start and closing tags).
In my case there is a GV in which complete xml structure is there with data in repeating format. I corrected (removed) the spacing between the tags and it started working fine.
******************************************************************************************************************************************
Details:
The error defines the xml should be properly formatted. It also gives details of the line number and column number so you can identify where the problem is.
******************************************************************************************************************************************
Note: If you see this error in any other case then do share the details with me . :-)
******************************************************************************************************************************************
Comments
Post a Comment