Re: Application terminates when a session times out
Re: Application terminates when a session times out
- Subject: Re: Application terminates when a session times out
- From: Art Isbell <email@hidden>
- Date: Thu, 13 Feb 2003 08:45:52 -1000
On Thursday, February 13, 2003, at 06:37 AM, Seejo Pylappan wrote:
Check the code segment in : Session.isAnIAEmployee. That seems to be
where the problem is comming from. where are you getting the IA_User
from? Are you fetching it in a session and then setting it as a
universal user? in other words what is happening is the
EOEditingContext in which the IA_User is fetched has been finalized
when your session times out (check finalize code?) and then when you
reenter, you are messaging to the IA_User whose editingContext is no
longer around and is causing the crash.
If this is indeed the situation, you might consider fetching this
IA_User into an EOSharedEditingContext in Application. This shared
editing context isn't finalized with session termination. However,
shared objects are subject to some constraints that might eliminate
this suggestion from consideration. See the EOSharedEditingContext
JavaDoc for details.
Art
http://homepage.mac.com/aisbell/
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.