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 » MQRC_GMO_ERROR : reason 2186

Post new topic  Reply to topic
 MQRC_GMO_ERROR : reason 2186 « View previous topic :: View next topic » 
Author Message
tnse
PostPosted: Fri Oct 25, 2002 4:30 am    Post subject: MQRC_GMO_ERROR : reason 2186 Reply with quote

Newbie

Joined: 25 Oct 2002
Posts: 5

Hello,

I installed the .NET assembly MQ.dll and translated the C language into VB. Connecting to the queue manager and opening the queue seems to work but reading the messages from the queue is something else.
Following reason was displayed when doing a MQGET: MQRC_GMO_ERROR (2186)

This is the VB code related to the problem:
Dim gmo As MQ.MQGetMessageOptions
gmo = New MQ.MQGetMessageOptions()
gmo.Options = MQC.MQGMO_WAIT
gmo.WaitInterval = 15 * 1000
gmo.MatchOptions = MQC.MQMO_NONE
Dim message As MQ.MQMessage
message = New MQ.MQMessage()
queue.Get(message, gmo)

Any idee what is wrong?


Thanks
Back to top
View user's profile Send private message
ourtown
PostPosted: Tue Oct 29, 2002 1:16 pm    Post subject: Reply with quote

Acolyte

Joined: 05 Feb 2002
Posts: 67
Location: Somerset, NJ

You need to initialise gmo

MQGMO_DEFAULTS gmo
_________________
Brian S. Crabtree
WBI Consultant
Back to top
View user's profile Send private message Send e-mail
tnse
PostPosted: Wed Oct 30, 2002 12:22 am    Post subject: Reply with quote

Newbie

Joined: 25 Oct 2002
Posts: 5

I checked the MQC class but MQGMO_DEFAULT is not defined.

Only 3 properties are defined for the GetMessageOptions: options, waitinterval and matchoptions.

Can anyone tell me if the other properties (e.g. version, signal1, etc) are initialize or not, and if not how to do that?

I do not know if the problem has to do with the version of MQSeries. We have 2 versions running:
- one very old one (version 2.0) on a windows/NT server 3.51 (and yes it is still running); trying to read messages generated the error MQRC_GMO_ERROR (2186)
- one more recent (version 5.0) on a Sun Solaris; trying to read messages generated the error MQRC_CONNECTION_BROKEN (2009)

The client used is version 5.2

Connecting to the queue manager and opening the queue seems to work without problem.
Back to top
View user's profile Send private message
ourtown
PostPosted: Wed Oct 30, 2002 5:40 pm    Post subject: Reply with quote

Acolyte

Joined: 05 Feb 2002
Posts: 67
Location: Somerset, NJ

In cmqb.bas for VB6 MQGMO_DEFAULTS is a function that initialises gmo

Sub MQGMO_DEFAULTS(Struc As MQGMO)
Struc.StrucId = MQGMO_STRUC_ID
Struc.Version = MQGMO_VERSION_1
Struc.Options = MQGMO_NO_WAIT
Struc.WaitInterval = 0
Struc.Signal1 = 0
Struc.Signal2 = 0
Struc.ResolvedQName = ""
Struc.MatchOptions = MQMO_MATCH_MSG_ID + MQMO_MATCH_CORREL_ID
Struc.GroupStatus = MQGS_NOT_IN_GROUP
Struc.SegmentStatus = MQSS_NOT_A_SEGMENT
Struc.Segmentation = MQSEG_INHIBITED
Struc.Reserved1 = ""
Struc.MsgToken = MQMTOK_NONE
Struc.ReturnedLength = MQRL_UNDEFINED
End Sub
_________________
Brian S. Crabtree
WBI Consultant
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » MQRC_GMO_ERROR : reason 2186
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.