IBM Support

Generating a report from a Rational DOORS module fails with XMLStreamException in Rational Publishing Engine

Troubleshooting


Problem

Attempts to generate a report from a Rational DOORS module aborts with javax.xml.stream.XMLStreamException error message in IBM Rational Publishing Engine (RPE).

Symptom

A report generation in RPE can fail with the following errors:


CRRPE3107I XML Source: file:/C:/Users/MyUser/AppData/Local/Temp/RPE/temp/tmpDOORS/13917820354180/doorsXML13917820354180.xml

CRRPE1064I Error in engine javax.xml.stream.XMLStreamException: The element type "drml" does not match the expected end-tag "</ul>".



CRRPE3011E Error in engine javax.xml.stream.XMLStreamException: The element type "drml" does not match the expected end-tag "</ul>".
CRRPE1064I Aborting engine execution...
  ‘javax.xml.stream.XMLStreamException: the element type "blockquote" does not match the expected end-tag "</drml>"’ error message in the console window.

There may be variations in parts of the error message. For example:


Message: Error in engine javax.xml.stream.XMLStreamException:
The element type 'ul' does not match the expected end-tag '</blockquote>'



Error in French:


CRRPE3107I Source XML :
file:/C:/Users/MyUser/AppData/Local/Temp/RPE/temp/tmpDOORS/130253235335
00/doorsXML13025323533500.xml
CRRPE1064I Erreur dans le moteur

javax.xml.stream.XMLStreamException: Balise de fin "</ul>" non
concordante pour le type d'élément "drml".

CRRPE3011E Erreur dans le moteur
javax.xml.stream.XMLStreamException: Balise de fin "</ul>" non
concordante pour le type d'élément "drml".
CRRPE1064I Exécution de labandon du moteur...

Cause

The root cause of the problem is the presence of rich text information in the Rational DOORS module data. This results in Rational DOORS not generating a valid EXtensible Markup Language (XML) file for RPE to process.

Usually this happens when you have Rich Text Format (RTF) tables or bullet lists that have been copied and pasted into Rational DOORS object text. Currently RTF tables are not supported in Rational DOORS. You can verify this by exporting the contents to Microsoft Word directly from Rational DOORS without using RPE. After exporting to Microsoft Word you will lose all the table boarders.

This problem has been reported in a number of APARS for various releases:
PM17384: unable to export particular object using RPE
This is resolved in DOORS 9.3.0.2
PM71011: DOORS 9.4 DRML CREATES INCORRECT XML
Fixes are available in
Rational DOORS and Rational DOORS Web Access 9.5.2
Rational DOORS and DOORS Web Access Fix Pack 1 (9.5.2.1) for 9.5.2

Resolving The Problem

To resolve the problem you should apply the most relevant fixes specified above.

WORKAROUND.

If this is not possible then you can try identifying the problem data from the XML file generated and then fix the source data in Rational DOORS.

Using the Rational DOORS XML file created, you will be able to narrow down the objects which are causing this issue.

Please follow the steps below to find out the problem objects which holds the rich text information:

  1. Open the XML file created using Microsoft Internet Explorer.
    For example: In the first error detailed above this would be
    C:\Users\MyUser\AppData\Local\Temp\RPE\temp\tmpDOORS\13917820354180\doorsXML13917820354180.xml


    If you cannot get the XML file then see: How to get the XML data used by RPE

  2. Navigate through the file using Internet Explorer till you find an error message similar to the one below:

    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    --------------------------------------------------------------------------------
    End tag 'blockquote' does not match the start tag 'drml'. Error processing resource 'file:///C:/Documents and Settings/Admi...
                       <attribute name="Object Text"><drml></blockquote>PRP
                       
    Reference No:                <br />...


  3. Open the xml file in any editor.

  4. Search for ‘Reference No’ as indicated in the above error message. Note: The error message may be different for your situation.

  5. Search for ‘blockquote’ in the same line or downward direction.
    The issue is generally caused by End tag 'blockquote' does not match the start tag 'drml'. That is <blockquote> and </blockquote> tags are being inserted in the incorrect order in the XML and the generated XML file will contain errors.

  6. Search for a line where </blockquote> appears first and then <blockquote>.
    Normally <blockquote> tag should end with </blockquote>.

  7. Note of the object identifier or object text information which is available in the XML file.

  8. Edit the object in the Rational DOORS module and remove any invalid rich text information pertaining to that object.

  9. Regenerate the report in RPE.



Note: There may be more than one object with problems so you may have to re-iterate this process a number of times to resolve all of them.

[{"Product":{"code":"SSUBFB","label":"IBM Engineering Lifecycle Optimization - Publishing"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General Information","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"1.1.1;1.1.1.1;1.1.1.2;1.1.2;1.1.2.1;1.1.2.2;1.2;1.2.0.1;1.2.1;1.2.1.1","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Publishing Engine

Document Information

Modified date:
16 June 2018

UID

swg21427811