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 / JMSPCF Inquire Authority Service Required Parameters

Post new topicReply to topic
PCF Inquire Authority Service Required Parameters View previous topic :: View next topic
Author Message
crazy4j
PostPosted: Mon Apr 18, 2011 7:34 pm Post subject: PCF Inquire Authority Service Required Parameters Reply with quote

Newbie

Joined: 18 Apr 2011
Posts: 6

I try to get Authority Service information through PCF java api,the following is my code:
Code:

      this.request = new PCFMessage(MQConstants.MQCMD_INQUIRE_AUTH_SERVICE);
this.request.addParameter(MQConstants.MQIACF_AUTH_SERVICE_ATTRS,MQConstants.MQIACF_ALL);
this.responses = agent.send(this.request);


but there is an exception MQRCCF_PARM_COUNT_TOO_SMALL:
com.ibm.mq.pcf.PCFException: MQJE001: 完成代码为“2”,原因为“3019”。
at com.ibm.mq.pcf.PCFMessageAgent.send(PCFMessageAgent.java:241)
at com.crazy4j.monitor.AuthorityService.a(AuthorityService.java:27)
at com.crazy4j.monitor.AuthorityService.main(AuthorityService.java:4


how can I modify my code to get it work fine? thanks
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Apr 19, 2011 2:15 am Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

The error says that you did not specify a required parameter.

But the documentation says that you specified the only required parameter.

So either it is a bug in the documentation or a bug in the java implementation of the PCF library.

try adding
Code:
this.request.addParameter(MQConstants.MQCACF_SERVICE_COMPONENT,null);


That will perform the same action you have requested, and may resolve the issue.

You might have to use an empty string instead of null.
Back to top
View user's profile Send private message
crazy4j
PostPosted: Tue Apr 19, 2011 8:16 pm Post subject: Reply with quote

Newbie

Joined: 18 Apr 2011
Posts: 6

thanks mqjeff,I will try latter and post the result. Thanks again~
Back to top
View user's profile Send private message
crazy4j
PostPosted: Tue Apr 19, 2011 9:35 pm Post subject: Reply with quote

Newbie

Joined: 18 Apr 2011
Posts: 6

as you said, i add the following code in my program
Code:

this.request.addParameter(MQConstants.MQCACF_SERVICE_COMPONENT,"*");

nomater the value is "*" , "" or others, there is still the same exception.
e.getLocalizedMessage() = MQJE001: 完成代码为“2”,原因为“3019”。
@Error ResonCode = MQRCCF_PARM_COUNT_TOO_SMALL
com.ibm.mq.pcf.PCFException: MQJE001: 完成代码为“2”,原因为“3019”。
at com.ibm.mq.pcf.PCFMessageAgent.send(PCFMessageAgent.java:241)
at com.crazy4j.monitor.AuthorityService.a(AuthorityService.java:2
at com.crazy4j.monitor.AuthorityService.main(AuthorityService.java:49)
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Apr 20, 2011 4:52 am Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

This seems to be a bug in the PCF libraries, or a failure in documentation.

I'd suggest opening a PMR...
Back to top
View user's profile Send private message
crazy4j
PostPosted: Sat May 07, 2011 1:46 am Post subject: Reply with quote

Newbie

Joined: 18 Apr 2011
Posts: 6

mqjeff wrote:
This seems to be a bug in the PCF libraries, or a failure in documentation.

I'd suggest opening a PMR...


I do this job as following:

Code:

this.request = new PCFMessage(MQConstants.MQCMD_INQUIRE_AUTH_SERVICE);
         this.request.addParameter(MQConstants.MQIACF_AUTH_SERVICE_ATTRS,
               new int[]{MQConstants.MQIACF_INTERFACE_VERSION,MQConstants.MQIACF_USER_ID_SUPPORT});



and it works fine now~ thanks for your help~
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 / JMSPCF Inquire Authority Service Required Parameters
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.