Author |
Message
|
spprash |
Posted: Wed Apr 14, 2004 2:05 am Post subject: FMC00119E Not authorized |
|
|
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 |
|
 |
jmac |
Posted: Wed Apr 14, 2004 6:46 am Post subject: |
|
|
 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 |
|
 |
spprash |
Posted: Thu Apr 15, 2004 4:24 am Post subject: |
|
|
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 |
|
 |
jmac |
Posted: Thu Apr 15, 2004 5:46 am Post subject: |
|
|
 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 |
|
 |
Ratan |
Posted: Thu Apr 15, 2004 6:46 am Post subject: |
|
|
 Grand Master
Joined: 18 Jul 2002 Posts: 1245
|
set the Worklist Filter to 'Owner = Current_User' _________________ -Ratan |
|
Back to top |
|
 |
spprash |
Posted: Thu Apr 15, 2004 7:54 pm Post subject: |
|
|
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 |
|
 |
|