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 Java / JMS » Getting PCF Error 4091 on getting Q Usage Status

Post new topic  Reply to topic
 Getting PCF Error 4091 on getting Q Usage Status « View previous topic :: View next topic » 
Author Message
tapak
PostPosted: Tue Sep 05, 2006 11:22 am    Post subject: Getting PCF Error 4091 on getting Q Usage Status Reply with quote

Centurion

Joined: 26 Oct 2005
Posts: 149
Location: Hartford,CT

I am getting PCF Error 4091 on trying to get the QHandle . I dont find error code 4091 in PCF manual .

Error happens when I add the following line to get the Q handle
request.addParameter(CMQCFC.MQIACF_Q_STATUS_TYPE, CMQCFC.MQIACF_Q_HANDLE);

Has anyone faced similar error . Or is there anything wrong in the code.

Here is the code .
Code:

 // Convert the URL to a file object
            agent = new PCFMessageAgent(qMgr);
           
            System.out.println("Connected.");
           
            // Build the request
           
            request = new PCFMessage(CMQCFC.MQCMD_INQUIRE_Q_STATUS);
           
            request.addParameter(CMQC.MQCA_Q_NAME, qname);
           
            request.addParameter(CMQCFC.MQIACF_Q_STATUS_TYPE, CMQCFC.MQIACF_Q_HANDLE);
           
            //request.addParameter(CMQCFC.MQIACF_Q_STATUS_TYPE, CMQCFC.MQIACF_Q_HANDLE);
            System.out.print("Before Response... ");
           
            //  request.addParameter(CMQCFC.MQIACF_Q_ATTRS,                    new int [] { CMQCFC.MQIACF_ALL });
                       
             request.addParameter(CMQCFC.MQIACF_Q_ATTRS,                    new int [] { CMQC.MQCA_Q_NAME });
            // Use the agent to send the request
            System.out.print("Sending PCF request... ");
            responses = agent.send(request);
            System.out.println("Received reply.");



Here is the error

Code:
Connecting to queue managerConnected.

MQJE001: Completion Code 2, Reason 4091

Error in response:

Before Response... Sending PCF request... com.ibm.mq.pcf.PCFMessage:

com.ibm.mq.pcf.MQCFH:

   - type: 2

   - strucLength: 36

   - version: 1

   - command: 41

   - msgSeqNumber: 1

   - control: 1

   - compCode: 2

   - reason: 4091

   - parameterCount: 0
Back to top
View user's profile Send private message
wschutz
PostPosted: Tue Sep 05, 2006 11:30 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

Does this help:
Quote:
mqrc 4091

4091 0x00000ffb MQRCCF_Q_STATUS_NOT_FOUND

_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
tapak
PostPosted: Tue Sep 05, 2006 11:57 am    Post subject: Reply with quote

Centurion

Joined: 26 Oct 2005
Posts: 149
Location: Hartford,CT

Thanks Wayne . I created a client connection and it worked . I guess the manual need to be updated with the error code.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Sep 05, 2006 12:06 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

tapak wrote:
Thanks Wayne . I created a client connection and it worked . I guess the manual need to be updated with the error code.


There's a feedback button at the bottom of every page in the Info Center.

The documenters are fairly responsive to this.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
tapak
PostPosted: Tue Sep 05, 2006 12:35 pm    Post subject: Reply with quote

Centurion

Joined: 26 Oct 2005
Posts: 149
Location: Hartford,CT

Thanks Jeff . I send a feedback message.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Getting PCF Error 4091 on getting Q Usage Status
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.