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 » MQ reason code 3171 trying to inquire authorization records

Post new topic  Reply to topic
 MQ reason code 3171 trying to inquire authorization records « View previous topic :: View next topic » 
Author Message
JosN
PostPosted: Wed Jan 23, 2008 2:03 am    Post subject: MQ reason code 3171 trying to inquire authorization records Reply with quote

Newbie

Joined: 23 Jan 2008
Posts: 3

Hello,

Extending on the WMQTest class provided by MQ Explorer v 6.0.2.2, I am trying to execute a PCF command (MQCMD_INQUIRE_AUTH_RECS) in order to retrieve the authority records for a queue manager.
But reason code 3171 (MQRCCF_AUTH_VALUE_ERROR) is returned doing so.
According to the PCFs and Admin manual, there are some required and some optional parameters. These are the ones I specify:

PCFMessage inquireQAuth = new PCFMessage(CMQCFC.MQCMD_INQUIRE_AUTH_RECS);
inquireQAuth.addParameter(CMQCFC.MQIACF_AUTH_OPTIONS,
CMQCFC.MQAUTHOPT_NAME_ALL_MATCHING);
inquireQAuth.addParameter(CMQCFC.MQIACF_AUTH_OPTIONS,
CMQCFC.MQAUTHOPT_ENTITY_EXPLICIT);
inquireQAuth.addParameter(CMQCFC.MQIACF_AUTH_OPTIONS,
CMQCFC.MQAUTHOPT_NAME_AS_WILDCARD);
inquireQAuth.addParameter(CMQCFC.MQCACF_AUTH_PROFILE_NAME, "*");
inquireQAuth.addParameter(CMQCFC.MQIACF_OBJECT_TYPE, CMQC.MQOT_Q);

Can anyone help me please, as I can't seem to figure out what's wrong here.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Jan 23, 2008 4:28 am    Post subject: Reply with quote

Grand High Poobah

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

Platform Version and CSD of the target Q manager please
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
JosN
PostPosted: Wed Jan 23, 2008 4:32 am    Post subject: Reply with quote

Newbie

Joined: 23 Jan 2008
Posts: 3

The platfom is Windows XP SP2, target queue manager runs locally, version is 6.0.2.2.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Jan 23, 2008 4:41 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You don't include more than one instance of CMQCFC.MQIACF_AUTH_OPTIONS.

From ms03
Code:

        pPCFInteger = (MQCFIN *)(pAdminMsg + MQCFH_STRUC_LENGTH);
        pPCFInteger->Type        = MQCFT_INTEGER;
        pPCFInteger->StrucLength = MQCFIN_STRUC_LENGTH;
        pPCFInteger->Parameter   = MQIACF_AUTH_OPTIONS;
        pPCFInteger->Value       = MQAUTHOPT_ENTITY_EXPLICIT+MQAUTHOPT_NAME_ALL_MATCHING;


So
Code:
 inquireQAuth.addParameter(CMQCFC.MQIACF_AUTH_OPTIONS,
CMQCFC.MQAUTHOPT_NAME_ALL_MATCHING +
CMQCFC.MQAUTHOPT_ENTITY_EXPLICIT  +
CMQCFC.MQAUTHOPT_NAME_AS_WILDCARD
);
inquireQAuth.addParameter(CMQCFC.MQCACF_AUTH_PROFILE_NAME, "*");
inquireQAuth.addParameter(CMQCFC.MQIACF_OBJECT_TYPE, CMQC.MQOT_Q);

_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
JosN
PostPosted: Wed Jan 23, 2008 5:04 am    Post subject: Reply with quote

Newbie

Joined: 23 Jan 2008
Posts: 3

Thanks, Jeff, this solved my problem.
I'm new to PCF (and to Java) programming, won't make this type of error again.
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 » MQ reason code 3171 trying to inquire authorization records
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.