|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQRC_GMO_ERROR : reason 2186 |
« View previous topic :: View next topic » |
Author |
Message
|
tnse |
Posted: Fri Oct 25, 2002 4:30 am Post subject: MQRC_GMO_ERROR : reason 2186 |
|
|
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 |
|
 |
ourtown |
Posted: Tue Oct 29, 2002 1:16 pm Post subject: |
|
|
 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 |
|
 |
tnse |
Posted: Wed Oct 30, 2002 12:22 am Post subject: |
|
|
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 |
|
 |
ourtown |
Posted: Wed Oct 30, 2002 5:40 pm Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|