Posted: Tue Jul 04, 2006 11:05 pm Post subject: Header information not deciphered when reading messages from
Newbie
Joined: 04 Jul 2006 Posts: 2
Hi All,
I need an urgent help . I am sending a javax.jms.TextMessage to a MQ. A downstream application picks up the messages from the MQ and tries to parse the xml message , but the parsing fails with the following exception :
org.xml.sax.SAXParseException: Invalid UTF-8 code. (bytes: 0xffffffb4 0x0)
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
The reason I perceive is that the downstream MQ poller is considering the JMSHeader information as a part of the xml messages that it is reading from the MQ.
The header has values like : <mcd><Msd>jms_text</Msd></mcd> etc etc.
I am using the java JMS API to create the TextMessage.Is there anyway I can get rid off the header information ? I cannot ask the downstream applications to change as they belong to a different system and are not under my control.The downstream application uses com.ibm.mq API to read messages off the queue.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum