ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Header information not deciphered when reading messages from

Post new topic  Reply to topic
 Header information not deciphered when reading messages from « View previous topic :: View next topic » 
Author Message
SAnand
PostPosted: Tue Jul 04, 2006 11:05 pm    Post subject: Header information not deciphered when reading messages from Reply with quote

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.

Thanks
Back to top
View user's profile Send private message
rowles
PostPosted: Tue Jul 04, 2006 11:30 pm    Post subject: Reply with quote

Acolyte

Joined: 12 Oct 2005
Posts: 51

Have you seen this thread:

http://www.mqseries.net/phpBB2/viewtopic.php?t=30376

Its a small way below your post in this forum section.
_________________
--

Steve.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Jul 04, 2006 11:31 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Look up TARGCLIENT in the Java documentation

http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Header information not deciphered when reading messages from
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.