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 » Sporadic 2110 error code

Post new topic  Reply to topic
 Sporadic 2110 error code « View previous topic :: View next topic » 
Author Message
cecil
PostPosted: Wed Nov 22, 2006 3:45 pm    Post subject: Sporadic 2110 error code Reply with quote

Newbie

Joined: 17 Oct 2006
Posts: 3
Location: SF Bay Area

I am using MQ 6.0.1 on both XP and Redhat Linux. The C code I am using has been modeled from amqsgetc.c . Most of the time the put/get works properly, but in the last few days there have been a series of 2110 errors. What is going on?

2110 is a format error. Since we are passing short ASCII strings, we are using the amqsget.c form of:
md = {MQMD_DEFAULT};
for the message descriptor.

I am a noobie to MQ and would appreciate suggestions.
Back to top
View user's profile Send private message
wschutz
PostPosted: Wed Nov 22, 2006 4:33 pm    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

Is the "putting" program setting md.Format to MQFMT_STRING? If you are passing ascii string around, you need to set the format field to tell MQ how to convert the message.....
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
Nigelg
PostPosted: Thu Nov 23, 2006 1:54 am    Post subject: Reply with quote

Grand Master

Joined: 02 Aug 2004
Posts: 1046

Wayne s probably right, you have tried to convert a msg where MQMD.Format is blank.

This is described in the WMQ Messages manual...

Quote:

2110 (X'083E')MQRC_FORMAT_ERROR
Explanation:

An MQGET call was issued with the MQGMO_CONVERT option specified in the GetMsgOpts parameter, but the message cannot be converted successfully due to an error associated with the message format. 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.

_________________
MQSeries.net helps those who help themselves..
Back to top
View user's profile Send private message
cecil
PostPosted: Mon Nov 27, 2006 10:42 am    Post subject: Reply with quote

Newbie

Joined: 17 Oct 2006
Posts: 3
Location: SF Bay Area

Thanks, that seemed to clear it up. Strange that I was getting the error only sometimes. Most of the messages, >99%, seemed to work fine.
Back to top
View user's profile Send private message
tleichen
PostPosted: Mon Nov 27, 2006 12:31 pm    Post subject: Reply with quote

Yatiri

Joined: 11 Apr 2005
Posts: 663
Location: Center of the USA

cecil wrote:
Thanks, that seemed to clear it up. Strange that I was getting the error only sometimes. Most of the messages, >99%, seemed to work fine.
Theoretically, it would seem that any MQGet with convert would have gotten the same warning. Are you sending messages between different platforms? What are the Encoding and CCSIDs of the platform(s) involved?
_________________
IBM Certified MQSeries Specialist
IBM Certified MQSeries Developer
Back to top
View user's profile Send private message
cecil
PostPosted: Mon Nov 27, 2006 1:52 pm    Post subject: Reply with quote

Newbie

Joined: 17 Oct 2006
Posts: 3
Location: SF Bay Area

I'm using the default CCSID, 65534. Our platforms are XP and various flavors of linux, mostly RedHat. Our MQ server is RedHat Enterprise ES 4 on quad core Xeon's. Our apps are almost all C++. The strings are pure ASCII. Perhaps there was some buffer corruption or similar problems. I noticed the errors tended to group "clusters" of 5-10 and then none for awhile. It is entirely possible that some other thread was stomping on the buffer. We have occassionally had this problem, so it might not be an MQ problem at all!

Thank you very much for your kind observations! I hope to help others in repayment.
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 API Support » Sporadic 2110 error code
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.