Posted: Wed May 16, 2007 11:04 am Post subject: FMC00106E error but isLoggedOn = true
Acolyte
Joined: 27 Dec 2004 Posts: 64
WF 3.6 on AIX. Java App on WAS 6.0 on the same box.
Hello all,
I get FMC00106E not-logged-on error sporadically when calling
processTemplate.initialInContainer() or
workItem.outContainer() or
workItem.transfer().
I am using PRESENT_HERE and execService.isLoggedOn() returns true right before these errors.
My application caches all the existing Process template OID's during its initializing phase. All createProcessInstance requests use these OID's to get the initialInContainer. Is it possible that these OIDs become stale after a period of time? If a newly created executionService object( new user logs-in) performs the same exact createProcessInstance, there is no error. Why did the first request fail even though execService.isLoggedOn() returns true? Is it possible that the actual error is different but the api throws an FMC00106E error? If have tried using a decompiler to see what piece of code throws this error, but the line numbers in the stack trace and the line numbers in the decompiled class file are not in sync. If anyone has the souce code for fmcjapi.jar..can you please pm me?
executionService.isLoggedOn returns the state as known by the client. If you need to check the current session status u need to include a refresh call before isLoggedOn is called. The executionService.refresh will also throw a not logged on exception if your session is invalid.
It is most likely that you are forced out by another logon with PRESENT_HERE session mode or your session might have expired.
Caching the proceess instance oid is not a good idea as it changes with every new version of the template. If some one imports a modified template then you would need to 'refresh' your cache.
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