Skip to main content

Tibco BW Error: The markup in the document following the root element must be well-formed


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

Popular posts from this blog

Tibco Rendezvous (RV): Transport and More

Transport: It is the mechanism for sending and delivering messages. There are three main parameters in Tibco RV for transport: network, daemon and service. Service is specific to programs. Multiple programs may be running on a network. Each program has a different service. There can be many services running under a daemon for different programs. Network parameter specifies the interface for multicast communication from a program. A specific network should be selected for  outbound multicast Rendezvous communications. Daemon specifies the port where RV daemon runs. RV communicates through this daemon and hence remote daemon must be specified to support network communications. Tibrvsend and Tibrvlisten: Every Tibco RV installation provides these two utilities for sending and receiving messages on any multicast network. Sample for testing these utilities: tibrvlisten.exe -service 7576 -network 10.21.6.38 -daemon tcp:7500 "TEST" tibrvsend.exe -s...

Tibco Rendezvous (RV): Features and More

Features of Tibco RV: Decoupling and Data Independence : In RV the applications are loosely coupled and RV has self-describing data that makes it easy for the applications to share data. Location Transparency : RV is based upon subject based addressing. The data/messages are sent and received over subject; hence the programs can communicate without knowing the network details. Architectural Emphasis on Information Sources and Destinations : RV provides efficient solutions for developing distributed system by emphasis on identifying sources and destinations of information. Reliable Delivery: RV provides reliable delivery of messages and without the need of network details. The information like network details and packet transfer are hidden. Certified Message Delivery: Some applications require more assurance for message delivery. For this RV provides Certified Message (CM) delivery which sends the confirmation for the messages received. Distribu...

Tibco Rendezvous (RV): Intro

When I started working on Tibco RV, I used to get stuck on many things. Small, big but the main problem was that I couldn’t find much online as a resolution. Information was limited and distributed. So here’s my try to bring all that I know to one place about RV and provide solutions to as many issues as possible. Intro: For large enterprises, the most fundamental need is the data transfer from one system to another. The messaging model used must be efficient, reliable and scalable. Tibco RV is used by applications running on distributed platforms to exchange data for Enterprise Application Integration (EAI). Tibco Rendezvous has more than 2000 customer installations and is the leading messaging system for real-time and broad data distribution.  Tibco RV is used in Replay Service, Reuters Wireless Delivery System, Reuters Market Data System and Internet Finance Platform. Tibco RV is used by distributed applications for communicating data. It provides both point-to-...