Incoming Messages cannot be mapped to other activity due to error 'Caused by: java.lang.IllegalArgumentException: Char 0x0 cannot be used in XML' in MQ Listen Activity of Websphere MQ Plugin for BW6.x
book
Article ID: KB0079843
calendar_today
Updated On:
Products
Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for IBM MQ
8.5.1
Description
When MQ Listen Activity of Websphere MQ Plugin for BW6.x receives a corrupted message, we will get error as 'Caused by: java.lang.IllegalArgumentException: Char 0x0 cannot be used in XML'. This error message is due to present of non ascii characters in Message body or header or in both. In BW6.x, Output is displayed using XML specification and non-ascii characters are not allowed in the XML because of which we get 'Caused by: java.lang.IllegalArgumentException: Char 0x0 cannot be used in XML' error. Due to this error we cannot map incoming messages.
Issue/Introduction
Incoming Messages cannot be mapped to other activity due to error 'Caused by: java.lang.IllegalArgumentException: Char 0x0 cannot be used in XML' in MQ Listen Activity of Websphere MQ Plugin for BW6.x
Resolution
To resolve this issue, we need to have on Websphere MQ Plugin version 8.5.1 with HF01. Also we need to set following one of two or both system environment parameters to have invalid XML characters in either the MQMD header fields or the message body replaced with the '.' character: com.tibco.bw.palette.mq.runtime.sanitizeMqmdHeaderFields=true com.tibco.bw.palette.mq.runtime.sanitizeMessageText=true