Re: Deadlock with Derby and CreateIfNoSchemaStrategy

2011-12-20 Thread Mathias Clerc
Thanks Arnaud. I won't have time to try it before early January I am afraid but I definitely will. 2011/12/20 Arnaud Garcia : > Hi Mathias, > > It works for me with embedded derby, I don't remember why but I have > created my own CreateIfNoSchemaStrategy... > well here the code, hope it helps an

Re: Deadlock with Derby and CreateIfNoSchemaStrategy

2011-12-20 Thread Arnaud Garcia
Hi Mathias, It works for me with embedded derby, I don't remember why but I have created my own CreateIfNoSchemaStrategy... well here the code, hope it helps and if it works for you take it as my christmas gift ;-) Arnaud try { DataSource dataSource = new PoolManager("org

Re: Deadlock with Derby and CreateIfNoSchemaStrategy

2011-12-11 Thread Mathias Clerc
2011/12/10 Aristedes Maniatis : > On Sat Dec 10 16:39:50 2011, Andrus Adamchik wrote: >> >> Could be a bug (in Derby?). Probably worth opening a bug report at >> https://issues.apache.org/jira/browse/CAY ... Also would be helpful if you >> could take a thread dump when the app is frozen to see what

Re: Deadlock with Derby and CreateIfNoSchemaStrategy

2011-12-10 Thread Aristedes Maniatis
On Sat Dec 10 16:39:50 2011, Andrus Adamchik wrote: Could be a bug (in Derby?). Probably worth opening a bug report at https://issues.apache.org/jira/browse/CAY ... Also would be helpful if you could take a thread dump when the app is frozen to see what the app is doing at this moment. IIRC we

Re: Deadlock with Derby and CreateIfNoSchemaStrategy

2011-12-09 Thread Andrus Adamchik
Could be a bug (in Derby?). Probably worth opening a bug report at https://issues.apache.org/jira/browse/CAY ... Also would be helpful if you could take a thread dump when the app is frozen to see what the app is doing at this moment. IIRC we had people using CreateIfNoSchemaStrategy with Derby,

Deadlock with Derby and CreateIfNoSchemaStrategy

2011-12-09 Thread Mathias Clerc
I am using an embedded Derby DB together with Cayenne CreateIfNoSchemaStrategy feature. If I start with an empty DB, on the first query the DB is created but at the moment of actually running the query, Derby freezes waiting for a lock. If I use JDBC to manually create the table before the first c