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 » General IBM MQ Support » PYMQI DIS CONN RC=3015

Post new topic  Reply to topic
 PYMQI DIS CONN RC=3015 « View previous topic :: View next topic » 
Author Message
bobbee
PostPosted: Tue Mar 07, 2023 3:50 am    Post subject: PYMQI DIS CONN RC=3015 Reply with quote

Knight

Joined: 20 Sep 2001
Posts: 541
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
View user's profile Send private message Send e-mail AIM Address
fjb_saper
PostPosted: Wed Mar 08, 2023 7:05 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

Hi Bobee,

I believe before asking for the connection attributes you need to pass a CONNID...as in dis CONN(.......) all
The connection ID MQBACF_CONNECTION_ID | MQBACF_GENERIC_CONNECTION_ID is a required parameter and is missing

see https://www.ibm.com/docs/en/ibm-mq/9.3?topic=formats-mqcmd-inquire-connection-inquire-connection


_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
pnusch
PostPosted: Wed Mar 08, 2023 7:38 am    Post subject: Reply with quote

Newbie

Joined: 17 Aug 2020
Posts: 4

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
View user's profile Send private message
bobbee
PostPosted: Wed Mar 08, 2023 7:57 am    Post subject: Reply with quote

Knight

Joined: 20 Sep 2001
Posts: 541
Location: Tampa

Thanks, that was the solution.
Back to top
View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » PYMQI DIS CONN RC=3015
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.