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 API Support » Invalid character error while reading a message from Q

Post new topic  Reply to topic Goto page Previous  1, 2
 Invalid character error while reading a message from Q « View previous topic :: View next topic » 
Author Message
sretsea_12
PostPosted: Sat Dec 24, 2011 9:02 am    Post subject: Reply with quote

Newbie

Joined: 17 Dec 2011
Posts: 8

Quote:

This doesnt look like a message from MQ / XMS, more from the application
.

Am recieving this exception when i consume a message from Q

From the Point of Orgination the message gets processed through some intermediate queue and in the process its adds additional information
and finally reaches a destination queue and that Q is the source for me to consume the messages.


Quote:

Java or JMS? Able to do what? Does it do the same as the code which is generating that message?
.


API provided by IBM Webspher MQ for JAVA

Quote:

What *exactly* is the app doing when it detects the error?


Consuming the message from Q

Quote:

I would concur with an earlier poster - it sounds like someone has put the correlid into a string as its binary value, and that you are asking for trouble anyway.


Will try to speak with the team about the correlid
its always consumer has to take the trouble in integrating the application


Last edited by sretsea_12 on Sat Dec 24, 2011 9:12 am; edited 1 time in total
Back to top
View user's profile Send private message
sretsea_12
PostPosted: Sat Dec 24, 2011 9:07 am    Post subject: Reply with quote

Newbie

Joined: 17 Dec 2011
Posts: 8

Quote:

Appended how? There are other bits of the RFH2 header that need to change when "appending" NameValueData, so that it's interpreted as part of the RFH2 header, rather than the message body.


I was told information shall be processed by other enterprise application

and the same is begin consumed from the Q by many other enterprise applications

In short same information is distributed among all the application after processing is done.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Sat Dec 24, 2011 9:29 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

The point is this: You are inserting raw binary data into an XML document.

That immediately makes the XML document invalid. XML is a text-only format.

So you are creating a completely invalid XML document.

In order to create a valid XML document, you must take steps to convert any raw binary content into a text representation - for example a hex string of the bytes is a typical way to represent an MQ message or correlation ID - or doing a base64 conversion is a typical way to preserve binary content in an XML document.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » IBM MQ API Support » Invalid character error while reading a message from Q
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.