Re: Nested contexts deadlock

2012-09-10 Thread Andrus Adamchik
This conversation actually prompted me to take another look, and I just implemented a fix on 3.1 and 3.2 (trunk) branches. Cross context events are now posted in threads separate from commit threads, so this deadlock should be gone. In theory the fix can be applied to 3.0.x too… Andrus On S

Re: Nested contexts deadlock

2012-09-06 Thread Andrus Adamchik
Yeah, unfortunately this is a known problem that we need to solve: https://issues.apache.org/jira/browse/CAY-957 It was partially fixed in Cayenne 3.1: https://issues.apache.org/jira/browse/CAY-1653 But there's still a condition when that can happen. As a workaround you can create nested c

Nested contexts deadlock

2012-09-06 Thread Ramiro Aparicio
Hi, I have been debugging some strange errors in our web app that seems to be related to context and threads, let me explain, we are using Cayenne 3.0.1 using WebApplicationContextFilter to bind the context to threads, in some parts of the application is not so difficult to be processing seve