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 IndexIBM MQ Java / JMSHow to use INQUIRE_ENTITY_AUTH in java?Why it's not working.

Post new topicReply to topic
How to use INQUIRE_ENTITY_AUTH in java?Why it's not working. View previous topic :: View next topic
Author Message
crazy4j
PostPosted: Sat May 07, 2011 6:23 pm Post subject: How to use INQUIRE_ENTITY_AUTH in java?Why it's not working. Reply with quote

Newbie

Joined: 18 Apr 2011
Posts: 6

the following is my code,but it's not working.
it run with error:MQJE001: 完成代码为“2”,原因为“3015”。
It means MQRCCF_CFST_PARM_ID_ERROR.
Who can tell me how should I use this command?
Thanks very much.
Code:

this.request = new PCFMessage(MQConstants.MQCMD_INQUIRE_ENTITY_AUTH);
this.request.addParameter(MQConstants.MQCACF_ENTITY_NAME,entityName.trim());
this.request.addParameter(MQConstants.MQIACF_ENTITY_TYPE, entityType);
this.request.addParameter(MQConstants.MQCACF_OBJECT_NAME, objectName);
this.request.addParameter(MQConstants.MQIACF_OBJECT_TYPE, objectType);
this.request.addParameter(MQConstants.MQIACF_AUTH_OPTIONS, MQConstants.MQAUTHOPT_CUMULATIVE);


this.responses = agent.send(this.request);
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sat May 07, 2011 7:41 pm Post subject: Reply with quote

Grand High Poobah

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

There was a post on exactly the same problem a few days ago. And IIRC it has been solved. Did you use search and see if the solution applies to you?

So you changed from AUTH_SERVICE to AUTH_ENTITY...
What parts of the manual did you research? What other parms are indicated on the exemples?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
crazy4j
PostPosted: Sun May 08, 2011 7:56 am Post subject: Reply with quote

Newbie

Joined: 18 Apr 2011
Posts: 6

http://www.mqseries.net/phpBB2/viewtopic.php?p=222637&sid=a6cf440d118596f6b3ac39e8603e8dba
It's the article I have searched, but it is not been solved.

ps: the post you said may be was posted by me.....MQCMD_INQUIRE_AUTH_SERVICE and MQCMD_INQUIRE_ENTITY_AUTH is 2 different commands。。。。although they are similar。

any way。thanks for your anwser
Back to top
View user's profile Send private message
mqjeff
PostPosted: Sun May 08, 2011 8:46 am Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

So,
Quote:
3015 (0BC7) (RC3015): MQRCCF_CFST_PARM_ID_ERROR

Explanation

Parameter identifier is not valid.

The MQCFST Parameter field value was not valid.
Programmer response

Specify a valid parameter identifier.


So one of your string parameters is not the correct parameter.

Try commenting out your this.request.addParameter lines until you get a different MQRC, and then look at the one you just commented out.

You seem to be in the process of writing your own MQ monitoring application? Are you sure you should be doing this, and it is not a better idea to look into buying one?
Back to top
View user's profile Send private message
aydink
PostPosted: Fri Aug 28, 2015 10:04 am Post subject: Reply with quote

Newbie

Joined: 28 Aug 2015
Posts: 2

I had the same problem and fixed it by setting the params in following order:

Code:
      PCFParameter[] parameters = {
            new MQCFIN(MQConstants.MQIACF_AUTH_OPTIONS, MQConstants.MQAUTHOPT_CUMULATIVE),
            new MQCFIN(MQConstants.MQIACF_OBJECT_TYPE, MQConstants.MQOT_Q),
            new MQCFIN(MQConstants.MQIACF_ENTITY_TYPE, MQConstants.MQZAET_GROUP),
            new MQCFST(MQConstants.MQCACF_ENTITY_NAME, entity.trim()),
            new MQCFST(MQConstants.MQCACF_OBJECT_NAME, qname),
            };


(THIS IS ONLY VALID FOR MQ V 7.0.1.*)
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Aug 28, 2015 10:34 am Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

In general you should expect to have to put PCF parameters in the right order.
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexIBM MQ Java / JMSHow to use INQUIRE_ENTITY_AUTH in java?Why it's not working.
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.