Re: Unable to release locks when using MultiECLockManager

2008-04-30 Thread Chuck Hill
On Apr 30, 2008, at 8:45 PM, Owen McKerrow wrote: On 01/05/2008, at 1:27 PM, Chuck Hill wrote: Im willing to "donate" this problem to your "Best pratices" session at WOWODC Chuck, so that you can give us a real life example ; ) :-) Chuck So I take it from that smile then that you

Re: Unable to release locks when using MultiECLockManager

2008-04-30 Thread Owen McKerrow
On 01/05/2008, at 1:27 PM, Chuck Hill wrote: Im willing to "donate" this problem to your "Best pratices" session at WOWODC Chuck, so that you can give us a real life example ; ) :-) Chuck So I take it from that smile then that you would be happy to. Great I'll start taring up the p

Re: Unable to release locks when using MultiECLockManager

2008-04-30 Thread Chuck Hill
On Apr 29, 2008, at 10:48 PM, Owen McKerrow wrote: On 30/04/2008, at 3:09 PM, Chuck Hill wrote: On Apr 29, 2008, at 8:08 PM, Art Isbell wrote: On Apr 29, 2008, at 4:47 PM, Owen McKerrow wrote: I remember discussing MultiECLockManager on list last year with chuck Hill ( http://lists.appl

Re: Unable to release locks when using MultiECLockManager

2008-04-30 Thread Chuck Hill
On Apr 30, 2008, at 4:24 PM, Owen McKerrow wrote: Hi Again, Please see below Owen McKerrow WebMaster, emlab Ph : +61 02 4221 5517 http://emlab.uow.edu.au - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 'The test of a first-rate intelligence is t

Re: Unable to release locks when using MultiECLockManager

2008-04-30 Thread Lachlan Deck
You need to throw an instanceof RuntimeException. On 01/05/2008, at 9:24 AM, Owen McKerrow wrote: Now this may be a basic Java question and I tried to ask it yesterday, but probably in a very poor fashion. When your dealing with overriding a method and the original method does not throw an

Re: Unable to release locks when using MultiECLockManager

2008-04-30 Thread Owen McKerrow
Hi Again, Please see below Owen McKerrow WebMaster, emlab Ph : +61 02 4221 5517 http://emlab.uow.edu.au - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 'The test of a first-rate intelligence is the ability to hold two opposed ideas in the mind a

Re: Unable to release locks when using MultiECLockManager

2008-04-29 Thread Owen McKerrow
On 30/04/2008, at 3:09 PM, Chuck Hill wrote: On Apr 29, 2008, at 8:08 PM, Art Isbell wrote: On Apr 29, 2008, at 4:47 PM, Owen McKerrow wrote: I remember discussing MultiECLockManager on list last year with chuck Hill ( http://lists.apple.com/archives/Webobjects-dev/2007/ Apr/msg00609.html

Re: Unable to release locks when using MultiECLockManager

2008-04-29 Thread Chuck Hill
On Apr 29, 2008, at 8:08 PM, Art Isbell wrote: On Apr 29, 2008, at 4:47 PM, Owen McKerrow wrote: I remember discussing MultiECLockManager on list last year with chuck Hill ( http://lists.apple.com/archives/Webobjects-dev/2007/Apr/msg00609.html ) who pointed out that he'd tweaked MultiECLo

Re: Unable to release locks when using MultiECLockManager

2008-04-29 Thread Chuck Hill
On Apr 29, 2008, at 6:25 PM, Owen McKerrow wrote: Hi Art, Thats sounds like word for word the practices that we follow. Although I did just double check the code to make sure and I found a couple of places which had manual lock/unlock's in them which should not have. From Session.java

Re: Unable to release locks when using MultiECLockManager

2008-04-29 Thread Owen McKerrow
The were only 2 of them. One was . ec.lock(); ec.revert(); ec.unlock(); The Other was making a display group ( all be it my tweaked version of one ). getEc().lock(); rfcdDisplayGroup = new OMDisplayGroup( 10, 1, "RFCD", getEc (), null, null ); EODatabaseDataSource dataSource = (E

Re: Unable to release locks when using MultiECLockManager

2008-04-29 Thread Art Isbell
On Apr 29, 2008, at 4:47 PM, Owen McKerrow wrote: I remember discussing MultiECLockManager on list last year with chuck Hill ( http://lists.apple.com/archives/Webobjects-dev/2007/Apr/msg00609.html ) who pointed out that he'd tweaked MultiECLockManager inside his GVCWOExtensions framework.

Re: Unable to release locks when using MultiECLockManager

2008-04-29 Thread Owen McKerrow
On 30/04/2008, at 12:07 PM, Art Isbell wrote: On Apr 29, 2008, at 3:25 PM, Owen McKerrow wrote: public void sleep() { // Need to check as this gets called after terminate() when logging out synchronized (ecLockManager) { if (ecLockManager().isLocked())

Re: Unable to release locks when using MultiECLockManager

2008-04-29 Thread Art Isbell
On Apr 29, 2008, at 3:25 PM, Owen McKerrow wrote: public void sleep() { // Need to check as this gets called after terminate() when logging out synchronized (ecLockManager) { if (ecLockManager().isLocked()) { ecLockManager().unlock(

Re: Unable to release locks when using MultiECLockManager

2008-04-29 Thread Owen McKerrow
Hi Art, Thats sounds like word for word the practices that we follow. Although I did just double check the code to make sure and I found a couple of places which had manual lock/unlock's in them which should not have. From Session.java public void awake() { ecLock

Re: Unable to release locks when using MultiECLockManager

2008-04-29 Thread Art Isbell
On Apr 29, 2008, at 2:24 PM, Owen McKerrow wrote: Sorry all, I should have specified that further. Has anyone seen it whilst using MultiECLockManager ? No, but you must use MultiECLockManager correctly. Are you invoking MultiECLockManager.unlock() in Session.sleep() before any statement

Re: Unable to release locks when using MultiECLockManager

2008-04-29 Thread Owen McKerrow
Sorry all, I should have specified that further. Has anyone seen it whilst using MultiECLockManager ? Owen McKerrow WebMaster, emlab Ph : +61 02 4221 5517 http://emlab.uow.edu.au - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "I like the way this pr

Re: Unable to release locks when using MultiECLockManager

2008-04-29 Thread Chuck Hill
On Apr 29, 2008, at 5:13 PM, Owen McKerrow wrote: Hi All, Trawling through my log files I have found a number of instances of the following 2008,04.29 06:12:47,595 OFF [Finalizer] (Log.NSLogErr:1546 appendln) - Unable to release locks held by a deallocated EOEditingContext. 2008,04.2

Unable to release locks when using MultiECLockManager

2008-04-29 Thread Owen McKerrow
Hi All, Trawling through my log files I have found a number of instances of the following 2008,04.29 06:12:47,595 OFF [Finalizer] (Log.NSLogErr:1546 appendln) - Unable to release locks held by a deallocated EOEditingContext. 2008,04.29 06:12:47,596 DEBUG [Finalizer] (Log.NSLogDebug:1