Author |
Message
|
ucbus1 |
Posted: Thu Dec 19, 2002 7:52 am Post subject: [Solved]FMC00010E Unknown user ID |
|
|
Knight
Joined: 30 Jan 2002 Posts: 560
|
Curious question
I have an application started by user "XXX". In that application I am using method to put message in "EXEXMLINPUTQ" with userid "YYY". I am very much positive that "YYY" is authorized to put messages in the queue. However I am getting an error "FMC00010E Unknown user ID" and the user id is showing as "XXX" eventhough I am setting the PUT properties userid as "YYY"
Any suggestions? Please help |
|
Back to top |
|
 |
vennela |
Posted: Thu Dec 19, 2002 8:11 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
There is some problem with your code I guess. Because I always do this. I run a java program as user "fmc" and in the program I specify the userId of the message as "ADMIN" (or some workflow userId). I don't get any errors.
If you can post the peice of code where you are setting the UserId of the message we can pin point what's wrong.
---
Venny |
|
Back to top |
|
 |
jmac |
Posted: Thu Dec 19, 2002 8:26 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
Ucbus:
Did you have a look at the sample code in the Repository?
Pay special attention to the option MQC.MQOO_SET_IDENTITY_CONTEXT. _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
ucbus1 |
Posted: Thu Dec 19, 2002 9:43 am Post subject: |
|
|
Knight
Joined: 30 Jan 2002 Posts: 560
|
Jmac:
Could you please let me know where the sample repository is located?
Thanks |
|
Back to top |
|
 |
Ratan |
Posted: Thu Dec 19, 2002 9:47 am Post subject: |
|
|
 Grand Master
Joined: 18 Jul 2002 Posts: 1245
|
|
Back to top |
|
 |
kriersd |
Posted: Thu Dec 19, 2002 9:52 am Post subject: |
|
|
 Master
Joined: 22 Jul 2002 Posts: 209 Location: IA, USA
|
Another suggestion..
Stop the Workflow service and put the message to the EXEXMLINPUTQ. Go out to the MQSeries Explorer find the EXEXMLINPUTQ and look at the message descriptor. It's there you'll see what ID needs to be defined in Workflow.
Good Luck _________________ Dave Krier
IBM WebSphere MQ Workflow V3.4 Solution Designer |
|
Back to top |
|
 |
ucbus1 |
Posted: Thu Dec 19, 2002 12:45 pm Post subject: Code |
|
|
Knight
Joined: 30 Jan 2002 Posts: 560
|
Following is the code I am using :
*****open queue*****
MQEnvironment.hostname = "xxxxx ";
MQEnvironment.channel = "xxxx"
MQEnvironment.port = "xxxx"
MQEnvironment.userID="YYY"
MQEnvironment.password="xxxx"
QueueManager = new MQQueueManager(qMgrName);
int openOptions = MQC.MQOO_OUTPUT;
InputQ = QueueManager.accessQueue(qName,openOptions, qMgrName,null,null);
***********Put message******
MQMessage Msg = new MQMessage();
Msg.replyToQueueManagerName = replyToQueueManagerName;
Msg.replyToQueueName = replyToQueueName;
Msg.writeString(messageText);
Msg.format = MQC.MQFMT_STRING;
MQPutMessageOptions pmo = new MQPutMessageOptions();
InputQ.put(Msg,pmo);
*******************************
Like I mentioned earlier the application was running under "XXX" and I am trying to put the message with userid "YYY"
Please let me know if I have tochange anything
Thanks |
|
Back to top |
|
 |
vennela |
Posted: Thu Dec 19, 2002 1:00 pm Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
A few changes:
int openOptions = MQC.MQOO_OUTPUT | MQC.MQOO_SET_IDENTITY_CONTEXT;
Msg.userId = "YYY";
MQPutMessageOptions pmo = new MQPutMessageOptions();
pmo.options = MQC.MQPMO_SET_IDENTITY_CONTEXT;
---
Venny |
|
Back to top |
|
 |
ucbus1 |
Posted: Thu Jan 02, 2003 8:01 am Post subject: Solved FMC00010E Unknown user ID |
|
|
Knight
Joined: 30 Jan 2002 Posts: 560
|
Thanks Venny.Your solution works for me |
|
Back to top |
|
 |
|