strange behavior with saveChanges

2013-07-10 Thread Jérémy DE ROYER
Hi all, Following a case that hang my application which blocks all transactions until we restart. I just managed to reproduce the case study below that hangs my application too. Case : I have to update objects outside the user request/response loop. Code A === I use an action inside a compone

Re: strange behavior with saveChanges

2013-07-10 Thread Chuck Hill
The best thing to do is to cause a deadlock and then get a thread dump with sudo jstack -F That should make it much faster to track down. Chuck On 2013-07-10, at 12:23 PM, Jérémy DE ROYER wrote: > Hi all, > > Following a case that hang my application which blocks all transactions until >

Re: strange behavior with saveChanges

2013-07-10 Thread Jérémy DE ROYER
(I've added the method mymethod() in the thread to find the right Thread in the stack) Conclusion : I think that to get the email() value of the contact, my app has to fetch a parameter value (using another editing context). Question, I replace EOEditingContext

Re: strange behavior with saveChanges

2013-07-10 Thread Chuck Hill
On 2013-07-10, at 12:58 PM, Jérémy DE ROYER wrote: > (I've added the method mymethod() in the thread to find the right Thread in > the stack) > > Conclusion : I think that to get the email() value of the contact, my app has > to fetch a parameter value (using another editing context). That doe

Re: strange behavior with saveChanges

2013-07-10 Thread Jérémy DE ROYER
public synchronized String getValeurForParametre(String keyIn) { String strOut = (String) _dictionnaireForParametres.objectForKey(keyIn); if (strOut == null) { // log.info("Fetch key '" +

Re: strange behavior with saveChanges

2013-07-10 Thread Chuck Hill
What would be best is if MyAppCRMAnnuaireContact.email() passed in its own editing context (using the editingContext() method) to MyAppCRMParametres.getValeurForParametre rather than keeping an editing context in the application object. Chuck On 2013-07-10, at 2:18 PM, Jérémy DE ROYER wrote:

Re: strange behavior with saveChanges

2013-07-10 Thread Jérémy DE ROYER
Yes, I will change it. Thank's Chuck. Jérémy Le 10 juil. 2013 à 23:52, Chuck Hill a écrit : > What would be best is if MyAppCRMAnnuaireContact.email() passed in its own > editing context (using the editingContext() method) to > MyAppCRMParametres.getValeurForParametre rather than keeping an e

[SOLVED] Re: strange behavior with saveChanges

2013-07-11 Thread Jérémy DE ROYER
Many thanks for the help. After 10 years of development with WebObjects, many times reading the holy book (Practical WebObjects !), I finaly understand EOEditingContext and EOObjectCoordinator and the reason why my app was deadlocked. It is a small step for Chuck (is it even a step ?), but a bi