Support Article
Connect MQ issue
SA-21334
Summary
User reported that they were seeing special characters being appended in XML messages which was placed in MQ queue using Connect-MQ rule.
Error Messages
2016-02-24 06:07:50,319 [5956] ERROR Drs.Queue.ConnectQueue - GetMQMessage <> System.Xml.XmlException: Name cannot begin with the '<' character, hexadecimal value 0x3C. Line 1, position 2.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ParseQName(Boolean isQName, Int32 startOffset, Int32& colonPos)
Checked the messages available in MQ queue using MQ monitor
<!-- Hold --> Client for Java<<InvestOneDataRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <MessageId>FFD-DRV-99498-03032016-014725</MessageId> <Requests> </Requests> </InvestOneDataRequest>
Not sure how '<' character gets amended at the start of the XML message.
Steps to Reproduce
Post the XML message to MQ using Connect MQ
Root Cause
When sending message to MQ it is appending special character to the request - ''Client for Java<" which is resulting in message being rejected.
Resolution
Suggested below change by Engineering team to resolve the issue.
- Search for invokemqconnector
- Open the InvokeMQConnector
- Search for the line reqMsg.writeInt(stringVal.length());
- Comment the line. Append // to the line
- Save the activity. And execute the activity.
Published April 1, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.