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 » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » FMC00119E Not authorized

Post new topic  Reply to topic
 FMC00119E Not authorized « View previous topic :: View next topic » 
Author Message
spprash
PostPosted: Wed Apr 14, 2004 2:05 am    Post subject: FMC00119E Not authorized Reply with quote

Apprentice

Joined: 29 Dec 2002
Posts: 25

We are using Workflow 4 in solaris environment. Ours is a java based application. I encounter a "FMC00119E Not authorized" occasionally while trying to view the workitems. This occurs occasionally only. For instance if it fails the first time, I could query again and view the workitems in the second try.

Attached below is the code snippet

WorkItem witem[] = service.queryWorkItems(listFilter,WIListSort,null);
for (int i=0;i<witem.length;i++) {
ReadOnlyContainer inputContainer = witem[i].inContainer();
xxxxx
xxxxx
}

The exact error message is shown below. The error occures at the code line "ReadOnlyContainer inputContainer = witem[i].inContainer();"

FMC38009E MQSeries Workflow API Error :
API Return Code : 119
Error Origin : /projects/fmc/drvl/lbld/v340/src/fmcjcesv.cxx, line 3120
Error Message : FMC00119E Not authorized
Nested Exception : None


According to the documentation Not authorized exceptions are supposed to occur only if the user has no access to the workitem. But that is not the case in my flow. Could this be a defect with workflow itself?
_________________
Prash
Back to top
View user's profile Send private message
jmac
PostPosted: Wed Apr 14, 2004 6:46 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Jun 2001
Posts: 3081
Location: EmeriCon, LLC

I have heard of no defect like this. I would double check that the logged in user is the owner of the workitem.

Also what is your version of MQWF, and OS?
_________________
John McDonald
RETIRED
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
spprash
PostPosted: Thu Apr 15, 2004 4:24 am    Post subject: Reply with quote

Apprentice

Joined: 29 Dec 2002
Posts: 25

My OS is solaris and Workflow version is 3.4.

This looks like a defect since it works fine if I try the second time.

In fact the error seldom occurs if I modify my code as below
try {
inputContainer = witem[i].inContainer();
} catch (FmcException fmce) {
if (fmce.rc == FmcException.FMC_ERROR_NOT_AUTHORIZED) {
inputContainer = witem[i].inContainer();
} else {
throw fmce;
}
}

The workitem is question is dispatched to multiple users. The problem also occurs for the below api call
witem = service.queryWorkItems(worklistFilter,WIListSort,null);

Is there any workaround for this problem.
_________________
Prash
Back to top
View user's profile Send private message
jmac
PostPosted: Thu Apr 15, 2004 5:46 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Jun 2001
Posts: 3081
Location: EmeriCon, LLC

Prash:

This is what COULD be happening... you are querying workitems, and it is possible that you are getting workitems returned that are NOT OWNED by the requestor. IF you attempt to start such a workitem you will always get a NOT AUTHORIZED. Try this: Before starting a workitem, check to see if the owner is equal to the current user. IF NOT bypass this workitem.
_________________
John McDonald
RETIRED
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Ratan
PostPosted: Thu Apr 15, 2004 6:46 am    Post subject: Reply with quote

Grand Master

Joined: 18 Jul 2002
Posts: 1245

set the Worklist Filter to 'Owner = Current_User'
_________________
-Ratan
Back to top
View user's profile Send private message Send e-mail
spprash
PostPosted: Thu Apr 15, 2004 7:54 pm    Post subject: Reply with quote

Apprentice

Joined: 29 Dec 2002
Posts: 25

Infact the filter used is as shown below..

Filter:OWNER = CURRENT_USER AND PROCESS_STATE = RUNNING AND STATE = READY AND NAME LIKE 'ACTION_*'


The problem is, it occurs intermittently. The same occurs while querying the worklist or even the process instances.

stacktrace 1.
com.ibm.workflow.api.FmcException:
FMC38009E MQSeries Workflow API Error :
API Return Code : 119
Error Origin : /projects/fmc/drvl/lbld/v340/src/fmcjcesv.cxx, line 3120
Error Message : FMC00119E Not authorized
Nested Exception : None
at com.ibm.workflow.api.loc.ExecutionServiceImpl.queryWorkItems(ExecutionServiceImpl.java:734)

stacktrace 2.
FMC38009E MQSeries Workflow API Error :
API Return Code : 119
Error Origin : /projects/fmc/drvl/lbld/v340/solaris/src/fmcjrsup.cxx, line 538
Error Message : FMC00119E Not authorized
Nested Exception : None
com.ibm.workflow.api.FmcException:
FMC38009E MQSeries Workflow API Error :
API Return Code : 119
Error Origin : /projects/fmc/drvl/lbld/v340/solaris/src/fmcjrsup.cxx, line 538
Error Message : FMC00119E Not authorized
Nested Exception : None
at com.ibm.workflow.api.loc.ExecutionServiceImpl.queryProcessInstances(ExecutionServiceImpl.java:644)
_________________
Prash
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 » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » FMC00119E Not authorized
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.