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 » MQSeries Java Client - Message Encoding

Post new topic  Reply to topic
 MQSeries Java Client - Message Encoding « View previous topic :: View next topic » 
Author Message
binnyms
PostPosted: Fri Jan 09, 2004 9:18 pm    Post subject: MQSeries Java Client - Message Encoding Reply with quote

Novice

Joined: 09 Jan 2004
Posts: 11

I am using java client to send message to MQseries. When I send it, the message reaches the MQ but data is not encoded properly in MQ. How i can rectify this problem?
Back to top
View user's profile Send private message
EddieA
PostPosted: Sat Jan 10, 2004 12:54 am    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

By:
Quote:
data is not encoded properly in MQ

Do you mean the application the GETs the message gets wrongly encoded data.

You need to make sure you have set the Format correctly on the sending application. And the receiving application must do a GET with Convert.

Remember, MQ will *only* convert mesages that are described as MQSTR, and contain only "printable" characters. All other formats will need a conversion exit to be written.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
binnyms
PostPosted: Sun Jan 11, 2004 9:23 pm    Post subject: error 2110 Reply with quote

Novice

Joined: 09 Jan 2004
Posts: 11

I am able to send data. But when I try to retrieve it , i am getting error code 2110 with a blank message<> .
Also in the server the message is coming with the text button disabled (only hexa decimal in enabled). How to convert data to MQSTR

Thanks in advance
Back to top
View user's profile Send private message
EddieA
PostPosted: Sun Jan 11, 2004 9:40 pm    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Quote:
MQRC_FORMAT_ERROR (2110)

Possible errors include:

The format name in the message is MQFMT_NONE.
A user-written exit with the name specified by the Format field in the message cannot be found.
The message contains data that is not consistent with the format definition.


Make sure you have the Format field filled in correctly, and if it is not MQSTR, then you need a conversion exit.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
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 » MQSeries Java Client - Message Encoding
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.