|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQI Error. Comp: 2, Reason 2067: FAILED: MQRC_SELECTOR_ERROR |
« View previous topic :: View next topic » |
Author |
Message
|
mlotfi |
Posted: Thu Dec 03, 2015 11:42 am Post subject: MQI Error. Comp: 2, Reason 2067: FAILED: MQRC_SELECTOR_ERROR |
|
|
Acolyte
Joined: 07 Jul 2015 Posts: 60
|
Hi,
I am new in Websphere MQ , I just tyried to read some info from MQ :
Code: |
import pymqi
qt1 = "TEST1"
channel = "TEST1.SVRCONN"
port = "51543"
test_queue_manager = "ISTP3MB"
test_host = "itdsai-test-mb.itd.state.ma.us"
test_conn_info = "%s(%s)" % (test_host, port)
qmgrtest = pymqi.connect(test_queue_manager, channel, test_conn_info)
qt = pymqi.Queue(qmgrtest,qt1)
print('Current Queue depth:', qt.inquire(pymqi.CMQC.MQIA_CURRENT_Q_DEPTH))
print('High Queue depth:', qt.inquire(pymqi.CMQC.MQIA_HIGH_Q_DEPTH)) # line 16
print('Max Queue depth:', qt.inquire(pymqi.CMQC.MQIA_MAX_Q_DEPTH))
print('MQIA_MSG_ENQ_COUNT:', qt.inquire(pymqi.CMQC.MQIA_MSG_ENQ_COUNT)) # line 18
print('Queue Manager platform:', qmgrtest.inquire(pymqi.CMQC.MQIA_PLATFORM))
|
but line 16 and 18 gives me this error :
pymqi.MQMIError: MQI Error. Comp: 2, Reason 2067: FAILED: MQRC_SELECTOR_ERROR
Thanks, your help is appreciated. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Dec 03, 2015 11:51 am Post subject: Re: MQI Error. Comp: 2, Reason 2067: FAILED: MQRC_SELECTOR_E |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mlotfi wrote: |
pymqi.MQMIError: MQI Error. Comp: 2, Reason 2067: FAILED: MQRC_SELECTOR_ERROR |
Well at it's simplest:
Quote: |
An MQINQ or MQSET call was issued, but the Selectors array contains a selector that is not valid for one of the following reasons:
•The selector is not supported or out of range.
•The selector is not applicable to the type of object with attributes that are being inquired upon or set.
|
I'd theorize that the object TEST1 doesn't have the necessary statistics enabled or available for those 2 values. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Dec 03, 2015 11:53 am Post subject: Re: MQI Error. Comp: 2, Reason 2067: FAILED: MQRC_SELECTOR_E |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mlotfi wrote: |
Code: |
qt = pymqi.Queue(qmgrtest,qt1)
print('Current Queue depth:', qt.inquire(pymqi.CMQC.MQIA_CURRENT_Q_DEPTH))
print('High Queue depth:', qt.inquire(pymqi.CMQC.MQIA_HIGH_Q_DEPTH)) # line 16
print('Max Queue depth:', qt.inquire(pymqi.CMQC.MQIA_MAX_Q_DEPTH))
print('MQIA_MSG_ENQ_COUNT:', qt.inquire(pymqi.CMQC.MQIA_MSG_ENQ_COUNT)) # line 18
print('Queue Manager platform:', qmgrtest.inquire(pymqi.CMQC.MQIA_PLATFORM))
|
|
Are those even queue attributes, or queue manager attributes? I could look it up if I was less lazy.  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mlotfi |
Posted: Thu Dec 03, 2015 12:25 pm Post subject: |
|
|
Acolyte
Joined: 07 Jul 2015 Posts: 60
|
To be honest, I don't know, I was given these :
qt1 = "TEST1"
channel = "TEST1.SVRCONN"
port = "51543"
test_queue_manager = "ISTP3MB"
test_host = "itdsai-test-mb.itd.state.ma.us"
and told to write a python program. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Dec 03, 2015 12:28 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mlotfi wrote: |
To be honest, I don't know, I was given these :
qt1 = "TEST1"
channel = "TEST1.SVRCONN"
port = "51543"
test_queue_manager = "ISTP3MB"
test_host = "itdsai-test-mb.itd.state.ma.us"
and told to write a python program. |
And clearly you've done a perfectly acceptable job; the code connects and returns some of the values.
My belief (to state it a different way) is that your code is using a perfectly acceptable syntax & call to ask for attributes the queue object doesn't have, hence the error. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mlotfi |
Posted: Thu Dec 03, 2015 12:47 pm Post subject: |
|
|
Acolyte
Joined: 07 Jul 2015 Posts: 60
|
Thank you Sir, I appreciate your help, I will talk to my manager about this. |
|
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
|
|
|
|