Invalid message content, DTD is not allowed

Invalid message content, DTD is not allowed

book

Article ID: KB0077621

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks 5.14.0 , 5.13.1

Description

User will run into this issue if they are using a xml containing the DOCTYPE tag as shown below and using BW 5.14.0 or 5.13.1.
<!DOCTYPE cXML SYSTEM "http://tibco.com/schemas/cXML/1.1.1/cXML.dtd">

For XML Payload, ActiveMatrix BusinessWorks BW 5.14.0 / 5.13.1 does not support the DOCTYPE declaration by default.
You can refer to the BW 5.14.0 / 5.13.1 release notes for more information. 

Issue/Introduction

"caused by: java.io.IOException: Invalid message content, DTD is not allowed" exception thrown while invoking an HTTP Service.

Environment

Product: TIBCO ActiveMatrix BusinessWorks Version: 5.14.0 , 5.13.1 OS: All Supported Operating Systems

Resolution

To enable DTD, set the property, bw.plugin.disableDTD to false.

You can set this property in <application>.tra or in bwengine.tra.
The main difference is the scope of the modification.

Note: Properties added through the bwengine.tra will be deployed to every bw engines deployed.
Whereas properties added through the <application>.tra will be valid only for that particular application, if you redeploy the application, the property will be removed and you will have to manually add it again.