|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
PYMQI DIS CONN RC=3015 |
« View previous topic :: View next topic » |
Author |
Message
|
bobbee |
Posted: Tue Mar 07, 2023 3:50 am Post subject: PYMQI DIS CONN RC=3015 |
|
|
 Knight
Joined: 20 Sep 2001 Posts: 545 Location: Tampa
|
I am issuing a MQCMD_INQUIRE_CONNECTION and getting a 3015. Looks like the rest of my command executions. Trying many variations. Any suggestions?
### pymqi.CMQCFC.MQIACF_CONNECTION_ATTRS: pymqi.CMQCFC.MQIACF_ALL
Code: |
###
### Issure MQCMD_INQUIRE_CONNECTION
###
try:
conn_response=pcf.MQCMD_INQUIRE_CONNECTION({pymqi.CMQCFC.MQBACF_GENERIC_CONNECTION_ID:'',pymqi.CMQCFC.MQIACF_CONNECTION_ATTRS:pymqi.CMQCFC.MQIACF_ALL})
except pymqi.MQMIError as e:
if e.comp == pymqi.CMQC.MQCC_FAILED and e.reason == pymqi.CMQC.MQRC_UNKNOWN_OBJECT_NAME:
logger.error('MQS-MQLUW-002 - No connections for MQCMD_INQUIRE_CONNECTION - 1')
rc=False
return rc
else:
logger.error('MQS-MQLUW-002 - No connections for MQCMD_INQUIRE_CONNECTION - 2')
raise
else:
logger.debug('MQS-MQLUW-002 - We got a response\n')
logger.debug('MQS-MQLUW-002 - Length of conn_response = {a}' .format(a=len(conn_response)))
for conn_info in conn_response:
logger.debug('MQS-MQLUW-002 - Response Line = {a}' .format(conn_info))
conn_channel_name = conn_info[pymqi.CMQCFC.MQCACH_CHANNEL_NAME].decode('utf-8').strip() |
Code: |
[mqm@fibbing1 scripts]$ python3 ./conn_luw.py conn_luw.config.properties
Queue Manager = BOBBEE
Traceback (most recent call last):
File "./conn_luw.py", line 260, in <module>
if conn_check(QueueMGR):
File "./conn_luw.py", line 170, in conn_check
conn_response=pcf.MQCMD_INQUIRE_CONNECTION({pymqi.CMQCFC.MQBACF_GENERIC_CONNECTION_ID:'',pymqi.CMQCFC.MQIACF_CONNECTION_ATTRS:pymqi.CMQCFC.MQIACF_ALL})
File "/usr/local/lib64/python3.6/site-packages/pymqi-1.12.0-py3.6-linux-x86_64.egg/pymqi/__init__.py", line 2770, in __call__
res, mqcfh_response = self.__pcf.unpack(message)
File "/usr/local/lib64/python3.6/site-packages/pymqi-1.12.0-py3.6-linux-x86_64.egg/pymqi/__init__.py", line 2919, in unpack
raise MQMIError(mqcfh.CompCode, mqcfh.Reason)
pymqi.MQMIError: MQI Error. Comp: 2, Reason 3015: FAILED: MQRCCF_CFST_PARM_ID_ERROR |
|
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Mar 08, 2023 7:05 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
|
Back to top |
|
 |
pnusch |
Posted: Wed Mar 08, 2023 7:38 am Post subject: |
|
|
Newbie
Joined: 17 Aug 2020 Posts: 5
|
Hi Bobee,
I found https://answers.launchpad.net/pymqi/+question/136313 the similar issue. When I understand it right, the issue is the String because the "GENERIC_CONNECTION_ID" need to be a Byte-String.
In the related bug is the follow row of code:
Code: |
MQBACF_GENERIC_CONNECTION_ID: pymqi.ByteString('') |
Replacing '' with pymqi.ByteString('') is probably the solution. |
|
Back to top |
|
 |
bobbee |
Posted: Wed Mar 08, 2023 7:57 am Post subject: |
|
|
 Knight
Joined: 20 Sep 2001 Posts: 545 Location: Tampa
|
Thanks, that was the solution. |
|
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
|
|
|
|