• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Lock/Unlock problem with logout
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Lock/Unlock problem with logout


  • Subject: Lock/Unlock problem with logout
  • From: Marc-Alexis Côté <email@hidden>
  • Date: Sun, 24 Apr 2005 12:57:30 -0400

Hello,
I am supposed to deploy my application tomorrow and while doing some
testing, I stumbled across an annoying bug. Here is what happens:
-An administrative user creates a new "dealer". The dealer object is
inserted into a child editing context that is registered with a
MultiEClockManager. The manager is locked/unlocked in the awake/sleep
methods of the Session. The administrator is then presented with a few pages
where he fills out the dealer's information. This is the normal workflow and
it works fine.
-Everything also works fine if he click the cancel button.
-Things start to go wrong if he clicks a logout hyperlink. I get the
following exception:

[2005-04-24 12:48:48 EDT] <WorkerThread0> java.lang.IllegalStateException:
Illegal Lock usage: unlock() called without a lock().
    at
com.webobjects.foundation.NSRecursiveLock.unlock(NSRecursiveLock.java:210)
    at
com.webobjects.eocontrol.EOEditingContext.unlock(EOEditingContext.java:4660)
    at er.extensions.ERXEC.unlock(ERXEC.java:220)
    at
com.webobjects.eocontrol.EOEditingContext.unlock(EOEditingContext.java:4658)
    at MultiECLockManager.unlock(MultiECLockManager.java:94)
    at Session.sleep(Session.java:52)
    at
com.webobjects.appserver.WOSession._sleepInContext(WOSession.java:731)
[...clipped...]

This exception seems to be justified, because I have put trace statements in
the Session's sleep/awake methods, and awake wasn't called. Is this normal?
(In other words, sleep seems to have been called without a call to awake)

After that, I see a call to Session.awake and a trace statement in my logout
method. Then sleep is called and throws again...

Can anyone give me some thoughts on how to solve this problem?

Marc-Alexis


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Lock/Unlock problem with logout
      • From: Jacky Gagnon <email@hidden>
  • Prev by Date: Faulting Attributes of an Entity?
  • Next by Date: Re: Webobjects-dev Digest, Vol 2, Issue 198
  • Previous by thread: RE: Faulting Attributes of an Entity?
  • Next by thread: Re: Lock/Unlock problem with logout
  • Index(es):
    • Date
    • Thread