cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: Deadlock with Derby and CreateIfNoSchemaStrategy
Date Sat, 10 Dec 2011 05:39:50 GMT
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,
so there may be a special case causing this condition.

Andrus

On Dec 8, 2011, at 10:04 PM, Mathias Clerc wrote:

> 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 connection
> (manually injecting a copy/paste of the debug output of cayenne), then
> the query works perfectly.
> 
> Any idea ?
> 


Mime
View raw message